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: Michael Albinus
Subject: bug#25949: 26.0.50; process-file fails when visiting a file with a quoted file name
Date: Fri, 03 Mar 2017 20:31:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Philipp Stephani <p.stephani2@gmail.com> 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).

Best regards, Michael.





reply via email to

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