* Bug in python.el (at least for Windows OS)
@ 2014-12-06 4:41 David Strip
2014-12-06 8:04 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: David Strip @ 2014-12-06 4:41 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/html, Size: 1298 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug in python.el (at least for Windows OS)
2014-12-06 4:41 Bug in python.el (at least for Windows OS) David Strip
@ 2014-12-06 8:04 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2014-12-06 8:04 UTC (permalink / raw)
To: David Strip; +Cc: emacs-devel
> From: David Strip <david@stripfamily.net>
> Date: Sat, 06 Dec 2014 04:41:16 +0000
>
> If the path to the python executable contains an embedded space, any command
> that attempts to spawn a shell will fail with "invalid argument" since the
> space makes the command appear to contain extra args.
> In some sense, the root of the problem is locate-file, called by
> executable-find (both defined in files.el). locate-file does not return quoted
> paths. I'm not sure if the best fix is at the locate-files level, since I'm not
> sure what consequences this might have elsewhere, esp on non-Windows OS's. The
> most localized fix would be in python.el, changing python-shell-parse-command
> to add the required quotes. In the simplest case, this would be just change the
> format statement from
>
> (format "%s %s"
>
>
> to
>
> (format "\"%s\" %s"
>
>
> This definitely works on Windows, but I'm not certain how this would affect
> other OS's. Perhaps the format string has to be conditioned on the OS.
Thanks. Please submit a bug report about that, using the
'report-emacs-bug' command. If you do that from the same version of
Emacs where you have the problem, the command will collect some
auxiliary information that the maintainers need to be able to diagnose
and solve the problem.
TIA
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-06 8:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-06 4:41 Bug in python.el (at least for Windows OS) David Strip
2014-12-06 8:04 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.