GNU bug report logs - #37608
Patch for support in emacsclient for command-lline options in ALTERNATE_EDITOR breaks quoted paths on Windows

Previous Next

Package: emacs;

Reported by: Wilson Pete <Pete.Wilson <at> LPNT.net>

Date: Thu, 3 Oct 2019 17:41:02 UTC

Severity: normal

To reply to this bug, email your comments to 37608 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#37608; Package emacs. (Thu, 03 Oct 2019 17:41:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Wilson Pete <Pete.Wilson <at> LPNT.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 03 Oct 2019 17:41:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Wilson Pete <Pete.Wilson <at> LPNT.net>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Patch for support in emacsclient for command-lline options in
 ALTERNATE_EDITOR breaks quoted paths on Windows
Date: Thu, 3 Oct 2019 17:40:28 +0000
The patch for bug #25082 appears to have broken quoted paths being passed to emacsclientw on Windows.

w32_execvp doesn’t handle this because it doesn’t quote the path argument to execvp (ultimately to CreateProcess?).

So the patch prevents any possibility of passing a path with spaces as the alternate editor on Windows.

It would have been nice (perhaps) if this had been made a new different command line switch.

Pete Wilson


The information transmitted via this e-mail is intended only for the person or entity to which it is addressed and may contain confidential and/or proprietary information. Any use, review, retransmission, dissemination or other use of, or pursuing of any action in reliance upon this information by persons or entities other than the intended recipient is strictly prohibited. If you are the recipient of this e-mail transmission in error, please reply to the sender and delete the material from any computer. Thank you.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37608; Package emacs. (Thu, 03 Oct 2019 18:39:03 GMT) Full text and rfc822 format available.

Message #8 received at 37608 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Wilson Pete <Pete.Wilson <at> LPNT.net>
Cc: 37608 <at> debbugs.gnu.org
Subject: Re: bug#37608: Patch for support in emacsclient for command-lline
 options in ALTERNATE_EDITOR breaks quoted paths on Windows
Date: Thu, 03 Oct 2019 21:37:35 +0300
> From: Wilson Pete <Pete.Wilson <at> LPNT.net>
> Date: Thu, 3 Oct 2019 17:40:28 +0000
> 
> The patch for bug #25082 appears to have broken quoted paths being passed to emacsclientw on Windows.
> 
> w32_execvp doesn’t handle this because it doesn’t quote the path argument to execvp (ultimately to CreateProcess?).
> 
> So the patch prevents any possibility of passing a path with spaces as the alternate editor on Windows.

Could you please show a (non-)working example where this problem can
be seen?

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37608; Package emacs. (Thu, 03 Oct 2019 19:50:01 GMT) Full text and rfc822 format available.

Message #11 received at 37608 <at> debbugs.gnu.org (full text, mbox):

From: Wilson Pete <Pete.Wilson <at> LPNT.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "37608 <at> debbugs.gnu.org" <37608 <at> debbugs.gnu.org>
Subject: Re: bug#37608: Patch for support in emacsclient for command-lline
 options in ALTERNATE_EDITOR breaks quoted paths on Windows
Date: Thu, 3 Oct 2019 19:49:02 +0000
The following command used to work before the path was applied:

[C:\] "c:\Program Files\emacs\bin\emacsclient.exe"  -a "c:\Program Files\emacs\bin\runemacs.exe" n:\wilsonp\emacs.el
c:\Program Files\emacs\bin\emacsclient.exe: error executing alternate editor "c:\Program Files\emacs\bin\runemacs.exe"

PETE M. WILSON
SYSTEMS MANAGER, MANAGEMENT INFORMATION SYSTEMS
Sovah Health – Danville

The information transmitted via this e-mail is intended only for the person or entity to which it is addressed and may contain confidential and/or proprietary information. Any use, review, retransmission, dissemination or other use of, or pursuing of any action in reliance upon this information by persons or entities other than the intended recipient is strictly prohibited. If you are the recipient of this e-mail transmission in error, please reply to the sender and delete the material from any computer. Thank you.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37608; Package emacs. (Sat, 05 Oct 2019 07:35:02 GMT) Full text and rfc822 format available.

Message #14 received at 37608 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Wilson Pete <Pete.Wilson <at> LPNT.net>
Cc: 37608 <at> debbugs.gnu.org
Subject: Re: bug#37608: Patch for support in emacsclient for command-lline
 options in ALTERNATE_EDITOR breaks quoted paths on Windows
Date: Sat, 05 Oct 2019 10:34:42 +0300
> From: Wilson Pete <Pete.Wilson <at> LPNT.net>
> CC: "37608 <at> debbugs.gnu.org" <37608 <at> debbugs.gnu.org>
> Date: Thu, 3 Oct 2019 19:49:02 +0000
> 
> The following command used to work before the path was applied:
> 
> [C:\] "c:\Program Files\emacs\bin\emacsclient.exe"  -a "c:\Program Files\emacs\bin\runemacs.exe" n:\wilsonp\emacs.el
> c:\Program Files\emacs\bin\emacsclient.exe: error executing alternate editor "c:\Program Files\emacs\bin\runemacs.exe"

Thanks, I will look into this when I have time, if no one beats me to
it.




This bug report was last modified 5 years and 254 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.