Article View: gnu.emacs.bug
Article #98993Command line parameter setting
From: macrakis
Date: Tue, 18 Dec 1990 21:47
Date: Tue, 18 Dec 1990 21:47
23 lines
1741 bytes
1741 bytes
(I tried sending this last week, but the address bug-gnu-emacs@prep.ai.mit.edu wasn't working (!)) GNU Emacs 18.53.11 on NeXT 1.0.1 It is sometimes nice to pass some info into Emacs using the command line -- e.g. a flag or a string or numeric parameter. The standard way to do this is to write your own command line interpreter and put it in .emacs. The problem with this is that if you want to distribute a package which calls emacs (e.g. jgm's NeXT front end), then it will only work with specific .emacs mods. (In fact, the particular application I'm thinking of is having jgm's front end let Emacs know that it was auto-started at login....) The standard command line interpreter allows calling a 0-arg function. Why not allow also setting a variable? e.g. `emacs -set loserflag 3'. Alternatively, the standard command line interpreter could leave unknown command line args alone, instead of interpreting them as filenames (`emacs -foobar' loads file `-foobar'...). That way if a non-standard command line interpreter is present, it can interpret them. If not, it can ignore them. -s
Technical Details
Message-ID:
<9012171427.AA04826@dupuis.gr.osf.org>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!gr.osf.org!macrakisShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,951f7420c76d86a4,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-12-18 13:47:36 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!gr.osf.org!macrakis From: macrakis@gr.osf.org Newsgroups: gnu.emacs.bug Subject: Command line parameter setting Message-ID: <9012171427.AA04826@dupuis.gr.osf.org> Date: 18 Dec 90 21:47:36 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 23 Approved: bug-gnu-emacs@prep.ai.mit.edu X-Unparsable-Date: Mon, 17 Dec 90 15:31:46 GMT+0100