|Subject:||[h-e-w] Problem with space in the path when yap.exe calls emacs as the editor of inverse DVI search|
|Date:||Fri, 14 Oct 2011 13:10:23 +0100|
The advice to put emacs in a directory without blanks in the file names is fine, but not an answer to your problem. What you need to do is ensure the command line in the Yap options is similar to
"C:\Program Files\GNU Emacs 23.3\bin\emacsclientw.exe" –n -a "C:\Program Files\GNU Emacs 23.3\bin\runemacs.exe" "+%l %f"
i.e., with the +%l %f in double quotes. Maybe you have to place both the %I and %f in double quotes or only %f. The main thing is to protect blanks in file names by placing the complete path between double quotes.
You can do the same if you want to specify emacsclientw as the program to be run by Explorer when you double-click a file. For example, in a command-box I specified
ftype txtfile=C:\emacs\bin\emacsclientw.exe -n -a C:\emacs\bin\runemacs.exe "%1"
and now .txt files no longer start up notepad but pop up in Emacs.
Hope this helps.
|[Prev in Thread]||Current Thread||[Next in Thread]|