🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98573

Re: Command line arguments: bug + style comments

#98573
From: Barry A. Warsaw
Date: Wed, 05 Jun 1991 15:22
38 lines
2191 bytes
>>>>> "Boaz" == Boaz Ben-Zvi <boaz@lcs.mit.edu> writes:

	Boaz> The reason I looked into this was that I wanted to add some
	Boaz> of my options to the command line (e.g. "emacs -foo").  I
	Boaz> think that another clean way to do that is by adding some
	Boaz> '(foo . my-foo) to command-switch-alist (in my init-file).
	Boaz> This way is not mentioned in the *info* .

This doesn't address the issue of how well written emacs' init stuff
is, but it may point you to some available mods that will give you the
functionality you're looking for:

				 Emacs Lisp Code Apropos -- "startup"


startup-2		  89-07-19
	 Johan Vromans, <jv@mh.nl>
	 tut.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive/misc/startup-2.el.Z
	 Automatic services performed upon startup.
startup-patch	  89-09-05
	 Barry A. Warsaw, <warsaw@rtg.cme.nist.gov>
	 tut.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive/misc/startup.patch.Z
	 Mods to startup.el for settable command line arguments, among others
startup			  88-07-10
	 18.55 dist
	 Process Emacs shell arguments.

The startup-patch is still valid for 18.57 (I know, I've re-installed
it in my emacs) and it gives you settable c-l-args, courtesy of Lynn
Slater.  The patch also contains my hacks to load a site-init file
*before* loading user's .emacs files.  This is great for handling
site-wide initializations administered from a central place.  Its also
great for adding packages, features, etc. without forcing a
rebuild/redump of emacs.

-Barry

"When in doubt, cout."
Technical Details
Message-ID: <WARSAW.91Jun5112203@warsaw.nlm.nih.gov>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,cec74292dedcf127
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-06-05 08:22:03 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage
From: warsaw@nlm.nih.gov (Barry A. Warsaw)
Newsgroups: gnu.emacs.bug
Subject: Re: Command line arguments: bug + style comments
Message-ID: <WARSAW.91Jun5112203@warsaw.nlm.nih.gov>
Date: 5 Jun 91 15:22:03 GMT
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: warsaw@nlm.nih.gov
Distribution: gnu
Organization: Century Computing, Inc.
Lines: 38
Approved: bug-gnu-emacs@prep.ai.mit.edu