# HG changeset patch # User Juanma Barranquero # Date 1162409174 0 # Node ID e243e9889b8b8bd1665d3b621aea704b1080be63 # Parent fe1f7fc1d1d66ee085ef9dd2a703883c2ae7b6d1 [WINDOWSNT]: Force the first argv passed to execvp to point to alternate_editor (otherwise .BAT scripts can't run). diff -r fe1f7fc1d1d6 -r e243e9889b8b lib-src/emacsclient.c --- a/lib-src/emacsclient.c Wed Nov 01 15:16:22 2006 +0000 +++ b/lib-src/emacsclient.c Wed Nov 01 19:26:14 2006 +0000 @@ -250,6 +250,9 @@ 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);