Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!labrea!rutgers!njin!princeton!phoenix!eliot From: eliot@phoenix.Princeton.EDU (Eliot Handelman) Newsgroups: comp.emacs Subject: switch-to-buffer NORECORD Message-ID: <6314@phoenix.Princeton.EDU> Date: 12 Feb 89 03:20:48 GMT Reply-To: eliot@phoenix.Princeton.EDU (Eliot Handelman) Organization: Princeton University, NJ Lines: 25 If I'm bapping around between two files that I'm editing and a lisp process, I want the default value sent to switch-to-buffer to be the last file visited, not the *lisp* buffer. It turns out that switch to buffer has a second optional value, called NORECORD, which should do what I want. Now if only I could figure out how to use it. There has got to be some variable bound to the default buffer (the last one visited), but what's it called? How do I prevent buffers like *lisp* from getting bound to it? How do I make sure that it only records buffers whose name ends in .lisp? In case it's not clear what I'm looking for, here's an example: 1. I'm editing dog.lisp. 2. Now I go into the lisp process, called *lisp* -- the default buffer is now dog.lisp. 3. I now leave *lisp* and edit mazurka.lisp. the default buffer is now *lisp*. This is what I'm trying to prevent -- I want the default buffer to still be dog.lisp. I want whoever records the name of the last visted buffer (or however it works) to ignore everything that doesn't end in .lisp. Help, anyone? -Eliot