[comp.emacs] Settable command line arguments

rbj@dsys.ncsl.nist.GOV (Root Boy Jim) (08/03/89)

? 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.