From: Stefan Monnier Date: Thu, 5 Feb 2004 00:02:04 +0000 (+0000) Subject: (decode_options): Fix handling of alternate editor. X-Git-Tag: ttn-vms-21-2-B4~7744 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b6b6d6d201c5203279a8267e49f9fce97e7a70e9;p=emacs.git (decode_options): Fix handling of alternate editor. --- diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index a3a73d9e067..c8b2596198f 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -92,6 +92,8 @@ decode_options (argc, argv) int argc; char **argv; { + alternate_editor = getenv ("ALTERNATE_EDITOR"); + while (1) { int opt = getopt_long (argc, argv, @@ -100,8 +102,6 @@ decode_options (argc, argv) if (opt == EOF) break; - alternate_editor = getenv ("ALTERNATE_EDITOR"); - switch (opt) { case 0: