Re: emacsclient gets error with ALTERNATE_EDITOR on Windows 8.1
Eli Zaretskii <[email protected]>
| Newsgroups | gmane.emacs.windows |
|---|---|
| Message-ID | <[email protected]> |
> Date: Mon, 21 Apr 2014 23:22:44 +0000 > From: <[email protected]> > > If Emacs is already running, emacsclientw.exe works fine. (I have .txt files (for example) associated with it with the -n flag.) However, if Emacs is not already running, emacsclient reports an error executing alternate editor ""C:\Program Files (x86)\Emacs\bin\runemacs.exe"" (The redundant quotes are in the error message from emacsclient.) > > I believe that I have set ALTERNATE_EDITOR correctly in the environment variables. Indeed, I have the following line in the output of a SET command: > > ALTERNATE_EDITOR="C:\Program Files (x86)\Emacs\bin\runemacs.exe" What happens if you don't quote the string? What happens if you use a short 8+3 alias of that long name, so that the name does not include spaces? (You can find out the short alias by using "dir /x" at cmd prompt.)