Path: utzoo!utgpu!watserv1!watmath!att!rutgers!tut.cis.ohio-state.edu!snorkelwacker!spdcc!merk!alliant!linus!nixbur!nixpbe!ugun13!ugus21!fgth From: fgth@ugus21.uucp (Frank Ridderbusch Tel. 4685) Newsgroups: comp.emacs Subject: Re: Problem with rmail (maybe saveconf) Message-ID: <529@ugun13.UUCP> Date: 13 Jul 90 12:10:23 GMT References: <933@progress.UUCP> <1990Jul9.141448.15783@talos.pm.com> <1990Jul9.173737.26777@sics.se> Sender: bnews@ugun13.UUCP Reply-To: fgth@ugus21.UUCP (Frank Ridderbusch Tel. 4685) Organization: Nixdorf Computer AG, Paderborn, West Germany Lines: 107 In article <1990Jul9.173737.26777@sics.se> ag@sics.se (Anders G|ransson) writes: >>>>>> In article <1990Jul9.141448.15783@talos.pm.com>, kjones@talos.pm.com (Kyle Jones) writes: > >kjones> Eric R. Feigenson writes: > > I started using saveconf as someone recently suggested (I > > didn't even know it was around!) with GNU Emacs 18.55. > > However, as soon as I did I started having odd problems with > > "rmail", which had been working perfectly. It may be a > > coincidence, but the problems started almost exactly at the > > time I started using saveconf. > > > > The problem is that as soon as I do a "M-x rmail" I get a message: > > > > "Symbol's value as variable is void: rmail-inbox-list" > >kjones> As I recall, the problem is with RMAIL. If an uninitialized >kjones> ~/RMAIL file buffer exists when RMAIL is invoked, RMAIL will get >kjones> confused and die. > >kjones> saveconf.el stimulates the bug as follows: You exit Emacs with a >kjones> ~/RMAIL buffer present. You start a new Emacs session and >kjones> saveconf dutifully visits ~/RMAIL. When you subsequently start >kjones> RMAIL it sees the buffer and (mistakenly) assumes that certain >kjones> local variables have been initialized. > > > >I have the same problem (at least it seems to be related). I use >the code that was presented here some week ago. To be precise it >looks like this; > >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >;;Save buffer context so that the conf. shows upon entering emacs >(require 'saveconf) >(setq auto-save-and-recover-context t) >(setq save-buffer-context t) >(if (null (cdr command-line-args)) > (setq inhibit-startup-message (recover-context))) > >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Hi there. I run into the same problems, when running the PCMAIL mail reader. Saveconf.el had saved some buffers, but on new startup the respective packages are not loaded. So various variables and/or functions are void for that buffer. I made the following changes to saveconf.el, which basically modify the regexps for saving the windows and buffers. diff -c -r1.1 saveconf.el *** /tmp/,RCSt1a23437 Fri Jul 13 14:08:38 1990 --- saveconf.el Fri Jul 13 11:08:48 1990 *************** *** 31,37 **** (defvar save-context-predicate (function (lambda (w) (and (buffer-file-name (window-buffer w)) ! (not (string-match "^\\(/usr\\)?/tmp/" (buffer-file-name (window-buffer w))))))) "*Value is a predicate function which determines which windows' contexts are saved. When the `save-context' command is invoked, this function will --- 31,37 ---- (defvar save-context-predicate (function (lambda (w) (and (buffer-file-name (window-buffer w)) ! (not (string-match "^\\(/usr\\)?/tmp/\\|\\.pcmail/" (buffer-file-name (window-buffer w))))))) "*Value is a predicate function which determines which windows' contexts are saved. When the `save-context' command is invoked, this function will *************** *** 128,138 **** (function (lambda (b) (set-buffer b) ! (cond (buffer-file-name ! (prin1 buffer-file-name context-buffer) ! (princ " " context-buffer) ! (prin1 (point) context-buffer) ! (princ "\n" context-buffer))))) (buffer-list))) ;; --- 128,139 ---- (function (lambda (b) (set-buffer b) ! (if (and (buffer-file-name) ! (not (string-match "\\.pcmail/" buffer-file-name))) ! (progn (prin1 buffer-file-name context-buffer) ! (princ " " context-buffer) ! (prin1 (point) context-buffer) ! (princ "\n" context-buffer))))) (buffer-list))) ;; ---- MfG/Regards /==== Nixdorf Computer AG / Ridderbusch,PXD-S4 / , Heinz Nixdorf Ring / /./ 4790 Paderborn, West Germany /=== /,== ,===/ /,==, // Tel.: (+49) 5251/104685 / // / / // / / \ NERV:ridderbusch.pad / / `==/\ / / / \ BIX:fridder BTX:0525467066 UUCP: !USA ...!unido!nixpbe!ridderbusch.pad USA uunet!philabs!linus!nixbur!ridderbusch.pad