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

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

bug#25082: [PATCH] Add support to emacsclient for command-lline options


From: Reuben Thomas
Subject: bug#25082: [PATCH] Add support to emacsclient for command-lline options in ALTERNATE_EDITOR/--alternate-editor
Date: Tue, 29 Aug 2017 23:29:24 +0100

On 29 August 2017 at 17:49, Eli Zaretskii <eliz@gnu.org> wrote:

​[snip]

I attach an updated patch with the documentation changes (to manual and NEWS).​
 
The issue I alluded to is a subtle misfeature in the Windows
implementation of execvp (and similar Posix functions): the arguments
you pass via the argv array get concatenated into a single
command-line string, and that string is passed to the Windows system
API that actually invokes the program.  So argv[] elements that
include whitespace need to be quoted(!) to work correctly on
MS-Windows.  (Of course, this quoting must be ifdef'ed away for Posix
platforms.)

​I see, thanks for the explanation. Doesn't w32_execvp handle this already?

--

Attachment: 0001-Add-support-for-arguments-in-ALTERNATE_EDITOR-to-ema.patch
Description: Text Data


reply via email to

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