I have written what I want to do in Perl. open('IN', '<file'); while (<IN>) { delete $choose{$_} if exists $choose{$_}; } close('IN'); # choose one keys within %choose open('OUT', '>>file'); print OUT $chosen; close('OUT'); #add hook to delete $chosen from file when emacs is closed Could anybody translate that to lisp or point me to a resource where I will find those infos myself. XEmacs´ lisp info pages have not been really helpful. Andreas
|