[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
bug#25949: 26.0.50; process-file fails when visiting a file with a quoted file name
Fri, 03 Mar 2017 20:31:06 +0100
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
Philipp Stephani <address@hidden> writes:
> emacs -Q
> C-x C-f /:/tmp/foobar.txt (it doesn't matter whether the file
> 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.