]> git.eshelyaron.com Git - emacs.git/commitdiff
[WINDOWSNT]: Force the first argv passed to execvp to point to alternate_editor
authorJuanma Barranquero <lekktu@gmail.com>
Wed, 1 Nov 2006 19:26:14 +0000 (19:26 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Wed, 1 Nov 2006 19:26:14 +0000 (19:26 +0000)
(otherwise .BAT scripts can't run).

lib-src/emacsclient.c

index a155073c0726dd5a9d1ec9c3f72ae5887040d2ab..28e626f77d0ca98be14a54f24b3b36579582484b 100644 (file)
@@ -250,6 +250,9 @@ fail (argc, argv)
   if (alternate_editor)
     {
       int i = optind - 1;
+#ifdef WINDOWSNT
+      argv[i] = (char *)alternate_editor;
+#endif
       execvp (alternate_editor, argv + i);
       fprintf (stderr, "%s: error executing alternate editor \"%s\"\n",
                progname, alternate_editor);