# HG changeset patch # User Gerd Moellmann # Date 947684631 0 # Node ID e800c7e359129b3a9f2af5bf009a2c4acffdc6d0 # Parent 4161adef5fd377f2ad47fecc18610b99a7d9a0b3 New option --alternate-editor for emacsclient. diff -r 4161adef5fd3 -r e800c7e35912 man/misc.texi --- a/man/misc.texi Wed Jan 12 13:38:54 2000 +0000 +++ b/man/misc.texi Wed Jan 12 13:43:51 2000 +0000 @@ -1177,6 +1177,19 @@ returns immediately without waiting for you to ``finish'' the buffer in Emacs. + If you have forgotten to start Emacs, then the option +@samp{--alternate-editor=@var{command}} may be useful. It specifies a +command to run if @code{emacsclient} fails to contact Emacs. For +example, the following setting for the @var{EDITOR} environment variable +will always give an editor, even if Emacs is not running. + +@example +EDITOR="emacsclient --alternate-editor vi +%d %s" +@end example + +The environment variable @var{ALTERNATE_EDITOR} has the same effect, but +the value of the @samp{--alternate-editor} takes precedence. + @menu * Invoking emacsclient:: @end menu