emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacsclient/server filename quoting error


From: Juanma Barranquero
Subject: Re: Emacsclient/server filename quoting error
Date: Tue, 12 Dec 2006 13:11:18 +0100

On 12/10/06, Francis Wright <address@hidden> wrote:

I execute all the following commands from a cmd command prompt (outside of
Emacs).

emacsclient -n -a runemacs "TO DO.txt"

works correctly if Emacs IS already running, but if it is not already
running then Emacs does not see the filename correctly; the quotes do
not appear to be passed on to runemacs.

Yeah. With an instrumented emacsclient:

 C:\emacs> emacsclient -a c:\emacs\bin\runemacs.exe "TO DO.txt"
 2: [c:\emacs\bin\runemacs.exe]
 3: [TO DO.txt]

So it would be necessary to re-quote args containing whitespaces
before calling execvp().

Question is: is that the right behavior in non-Windows environments?
(Quoting filenames with embedded spaces, I mean).

                   /L/e/k/t/u




reply via email to

[Prev in Thread] Current Thread [Next in Thread]