<=
blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px=
#ccc solid;padding-left:1ex">Philipp Stephani <
p.stephani2@gmail.co=
m> writes:
Hi Philippe,
>=C2=A0 =C2=A0 =C2=A0emacs -Q
>=C2=A0 =C2=A0 =C2=A0C-x C-f /:/tmp/foobar.txt (it doesn't matter wh=
ether the file
>=C2=A0 =C2=A0 =C2=A0exists)
>=C2=A0 =C2=A0 =C2=A0M-: (process-file "true")
>
>=C2=A0 =C2=A0 =C2=A0will result in an error
There are other functions which behave similar wrong:
M-: (start-file-process "foo" (current-buffer) "true")<=
br class=3D"gmail_msg">
M-: (shell-command "true")
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; Some operations respect file na=
me handlers in
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; `default-directory'.=C2=A0 =
Because core function like
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; `call-process' don't ca=
re about file name handlers in
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; `default-directory', we her=
e have to resolve the
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; directory into a local one.=C2=
=A0 For `process-file', this
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; fixes Bug#25949.
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0(if (memq operation '(insert-directory=
process-file))
Maybe you could add them here (not tested).
Added and pushed as=C2=A0604eb02fff to master.