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

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

bug#25949: 26.0.50; process-file fails when visiting a file with a quote


From: Philipp Stephani
Subject: bug#25949: 26.0.50; process-file fails when visiting a file with a quoted file name
Date: Tue, 04 Apr 2017 12:35:11 +0000



Michael Albinus <address@hidden> schrieb am Fr., 3. März 2017 um 20:31 Uhr:
Philipp Stephani <address@hidden> writes:

Hi Philippe,

>     emacs -Q
>     C-x C-f /:/tmp/foobar.txt (it doesn't matter whether the file
>     exists)
>     M-: (process-file "true")
>
>     will result in an error

There are other functions which behave similar wrong:

M-: (start-file-process "foo" (current-buffer) "true")
M-: (shell-command "true")

> +          ;; Some operations respect file name handlers in
> +          ;; `default-directory'.  Because core function like
> +          ;; `call-process' don't care about file name handlers in
> +          ;; `default-directory', we here have to resolve the
> +          ;; directory into a local one.  For `process-file', this
> +          ;; fixes Bug#25949.
> +       (if (memq operation '(insert-directory process-file))

Maybe you could add them here (not tested).

Added and pushed as 604eb02fff to master.

reply via email to

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