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).
Added and pushed as 604eb02fff to master.