Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!talos!kjones From: kjones@talos.uucp (Kyle Jones) Newsgroups: gnu.emacs Subject: Re: save-context-predicate in saveconf.el Message-ID: <1989Jul25.145204.3015@talos.uucp> Date: 25 Jul 89 14:52:04 GMT References: Reply-To: kjones%talos.uucp@uunet.uu.net Distribution: na Lines: 15 Gilbert Harman writes: > This is what I tried in my .emacs file so as to prevent my > RMAIL file from being remembered. > > (setq save-context-predicate > (function (lambda (w) > (and (buffer-file-name (window-buffer w)) > (not (string-match "\\(^\\(/usr\\)?/tmp/\\)\\|RMAIL" > (buffer-file-name (window-buffer w))))))) > ) This won't work unless the RMAIL buffer is in a window. The value of save-context-predicate is called for each *window*, not each buffer. Perhaps save-context-predicate's semantics should be changed to the latter.