Article View: comp.emacs
Article #8394rmail mode auto-saves
From: Root Boy Jim
Date: Sat, 28 Jan 1989 01:23
Date: Sat, 28 Jan 1989 01:23
18 lines
1157 bytes
1157 bytes
? (setq rmail-mode-hook 'rmail:mode:hook) ? (defun rmail:mode:hook () ...) One fact that may not be widely known about lisp is that a symbol may have *both* a function *and* a variable binding. There is nothing wrong with saying "(setq rmail-mode-hook 'rmail-mode-hook)" followed by "(defun rmail-mode-hook () ...)". And it is even marginally more efficient, as you save a symbol, at the possible expense of confusion. In fact, once having done the above, you can now refer to rmail-mode-hook without the quote, since it evals to itself! Ain't LISP wonderful? ? John Interrante interran@marktwain.stanford.edu (Root Boy) Jim Cottrell (301) 975-5688 <rbj@nav.icst.nbs.gov> or <uunet!nav.icst.nbs.gov!rbj> Crackers and Worms -- Breakfast of Champions!
Technical Details
Message-ID:
<8901280123.AA14653@nav.icst.nbs.gov>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bbn!gateway!nav.icst.nbs.GOV!rbjShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bbn!gateway!nav.icst.nbs.GOV!rbj From: rbj@nav.icst.nbs.GOV (Root Boy Jim) Newsgroups: comp.emacs Subject: rmail mode auto-saves Message-ID: <8901280123.AA14653@nav.icst.nbs.gov> Date: 28 Jan 89 01:23:40 GMT Sender: news@bbn.COM Organization: National Institute of Standards and Technology Lines: 18