unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9051: alternate editor does not allow program with arguments
@ 2011-07-11 10:37 Peter Eisentraut
  0 siblings, 0 replies; only message in thread
From: Peter Eisentraut @ 2011-07-11 10:37 UTC (permalink / raw)
  To: 9051

I set

ALTERNATE_EDITOR='nano -t'

but that fails when it is being invoked:

emacsclient test.c
emacsclient: connect: Connection refused
emacsclient: error executing alternate editor "nano -t"

(Side issue: It might be nice to append strerror() to that error
message.)

The problem is that emacsclient interprets the alternate editor setting
as an executable name rather than a shell command.  This is in contrast
with the usual handling of the EDITOR environment variable, which is not
rarely set to values such as

EDITOR='nano -t'
EDITOR='emacsclient -t'
EDITOR='emacs -nw'

It would be very convenient and useful if the ALTERNATE_EDITOR
environment variable had the same behavior as the EDITOR variable in
that regard.







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-11 10:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-11 10:37 bug#9051: alternate editor does not allow program with arguments Peter Eisentraut

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).