Path: 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 ? (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 or Crackers and Worms -- Breakfast of Champions!