Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!bloom-beacon!ptt.lcs.mit.edu!markl From: markl@PTT.LCS.MIT.EDU Newsgroups: comp.emacs Subject: Re: Buffer Local Variables Message-ID: <8802051345.AA28219@PTT.LCS.MIT.EDU> Date: 5 Feb 88 13:45:29 GMT Sender: daemon@bloom-beacon.MIT.EDU Reply-To: markl@PTT.LCS.MIT.EDU Lines: 33 To: nntp-poster@PTT.LCS.MIT.EDU Repository: PTT Originating-Client: thyme From: mikep@ism780c.UUCP (Michael A. Petonic) Date: 29 Jan 88 17:25:07 GMT Reply-To: mikep@ism780c.UUCP (Michael A. Petonic) Organization: Interactive Systems Corp., Santa Monica CA I've notices a peculiarity with GNU Emacs version 18.40.4 on BSD. Say that I define a variable FOO and make that variable buffer local. Say I store a value of "BAR" into FOO. Fine, it takes and acts like what a well behaved buffer-local-variable should act like. However, when I change modes, say from Emacs-lisp to Fundemental in that buffer... BOOM! It wipes out the value of FOO. It's now set to nil. Any way I can overcome this problem so that the variable stays set even across mode switches? The problem is probably kill-all-local-variables, a LISP function that resets all buffer-local variables to their default values. I believe it is called by most mode-setup functions. -MikeP markl Internet: markl@ptt.lcs.mit.edu Mark L. Lambert MIT Laboratory for Computer Science Distributed Systems Group ----------