Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!usc!apple!bbn!gateway!dsys.ncsl.nist.GOV!rbj From: rbj@dsys.ncsl.nist.GOV (Root Boy Jim) Newsgroups: comp.emacs Subject: Settable command line arguments Message-ID: <8908022154.AA08340@dsys.ncsl.nist.gov> Date: 2 Aug 89 21:54:42 GMT Sender: news@bbn.COM Organization: National Institute of Standards and Technology formerly National Bureau of Standards Lines: 26 ? From: indetech!lrs@ai.mit.edu (Lynn Slater) ? The following changes to startup.el allow hooks to define new command line ? arguments without rebuilding emacs. Example: Very clever! However, I just saw a neat idiom in basic-save-buffer: ? (while (and hooks (not (and (funcall (car hooks)) ? (setq did-hook t)))) (setq hooks (cdr hooks))) use this instead: (while (and hooks (not (setq did-hook (funcall (car hooks))))) (setq hooks (cdr hooks))) Actually, you could even merge the setq's and have a null while body! ? -- Good hacking. -- Lynn ? =============================================================== ? Lynn Slater -- {sun, ames, pacbell}!indetech!lrs or lrs@indetech.uucp ? 42075 Lawrence Place, Fremont Ca 94538 ? Office (415) 438-2048; Home (415) 796-4149; Fax (415) 438-2034 ? =============================================================== Root Boy Jim Have GNU, Will Travel.