Article View: news.software.nn
Article #3929Re: Options to editor
From: Milt Epstein
Date: Fri, 26 Mar 1993 23:54
Date: Fri, 26 Mar 1993 23:54
39 lines
1950 bytes
1950 bytes
In <smith.733157021@news.larc.nasa.gov> smith@icat.larc.nasa.gov (Steven L. Smith) writes:
>Is there a way to pass command line options to my emacs editor
>used by nn. I tried the following:
>
>% setenv EDITOR '/usr/local/bin/emacs -nw -l'
>
>- when posting or replying in nn, I get the *scratch* buffer and
>"symbol's value as variable is void: To:" in the emacs minibuffer.
>
>- also, double quotes don't work either.
>
>Any ideas?
On some systems, EDITOR must actually point to an executable file, so
you can't give command line options like that (at least, some programs
that use EDITOR aren't happy when you do). I was on such a system,
and when I tried doing soemthing similar to what you have above, it
didn't work (although the error I got was different -- it wouldn't
even put me in the editor).
What I ended up doing was writing a little (very!) script that just
called emacs with the command line options I wanted, and then I set
EDITOR to point to that. Here's the script I use:
----------- cut here -------------
#! /bin/sh
/local/all/emacs -nw ${1+"$@"}
----------- cut here -------------
You can give this a try (you'll need to change the path to emacs, of
course).
--
Milt Epstein
Department of Computer Science
University of Illinois
epstein@cs.uiuc.edu
Technical Details
Message-ID:
<C4It23.MDC@cs.uiuc.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!usc!wupost!cs.uiuc.edu!sparc0b!epsteinReferences:
<smith.733157021@news.larc.nasa.gov>Show Full Headers
Complete Article Headers
Message-ID: <C4It23.MDC@cs.uiuc.edu> Subject: Re: Options to editor Date: Fri, 26 Mar 1993 23:54:03 GMT From: epstein@cs.uiuc.edu (Milt Epstein) References: <smith.733157021@news.larc.nasa.gov> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!usc!wupost!cs.uiuc.edu!sparc0b!epstein Newsgroups: news.software.nn Sender: news@cs.uiuc.edu Reply-To: epstein@cs.uiuc.edu Organization: University of Illinois at Urbana-Champaign Lines: 39