Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!sics.se!sics.se!ag From: ag@sics.se (Anders G|ransson) Newsgroups: comp.emacs Subject: Re: Problem with rmail (maybe saveconf) Message-ID: <1990Jul9.173737.26777@sics.se> Date: 9 Jul 90 17:37:37 GMT References: <933@progress.UUCP> <1990Jul9.141448.15783@talos.pm.com> Sender: news@sics.se Organization: GRAMMA Lines: 58 In-Reply-To: kjones@talos.pm.com's message of 9 Jul 90 14:14:48 GMT >>>>> 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))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Since then the files are there when I enter emacs BUT the buffer has forgotten which mode it was in. For exampel, if I exit emacs (with C-x C-c) from Rmail-mode, then when I enter emacs again there is the file RMAIL but the buffer is now in Fundamental-mode. This is not what I hoped for! There must be some way to tell emacs that the mode should be kept the same! Please let me know! Best regards Anders -- name(!): Anders G|ransson