]> code.delx.au - gnu-emacs/commitdiff
(decode_options): Fix handling of alternate editor.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 5 Feb 2004 00:02:04 +0000 (00:02 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 5 Feb 2004 00:02:04 +0000 (00:02 +0000)
lib-src/emacsclient.c

index a3a73d9e067e485dd061dd495f7739c39b808fe8..c8b2596198f7772587fca579c2a5c33f825ac755 100644 (file)
@@ -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: