unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: 25949@debbugs.gnu.org
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	[thread overview]
Message-ID: <877f46yx6t.fsf@detlef> (raw)
In-Reply-To: <CAArVCkRNpOS-rKOrJte81mDWn2CLanwvDS9QCYy-4cEznU0r_w@mail.gmail.com> (Philipp Stephani's message of "Fri, 03 Mar 2017 16:59:49 +0000")

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	other threads:[~2017-03-03 19:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-03 13:38 bug#25949: 26.0.50; process-file fails when visiting a file with a quoted file name Philipp Stephani
2017-03-03 16:37 ` Philipp Stephani
2017-03-03 16:59 ` Philipp Stephani
2017-03-03 19:31   ` Michael Albinus [this message]
2017-04-04 12:35     ` Philipp Stephani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877f46yx6t.fsf@detlef \
    --to=michael.albinus@gmx.de \
    --cc=25949@debbugs.gnu.org \
    --cc=p.stephani2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).