all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>, 25949-done@debbugs.gnu.org
Subject: bug#25949: 26.0.50; process-file fails when visiting a file with a quoted file name
Date: Tue, 04 Apr 2017 12:35:11 +0000	[thread overview]
Message-ID: <CAArVCkRKR1qGV=2Pjh2N4GDw_8RFPJNVAAHnq7k5t3R6RdY=ig@mail.gmail.com> (raw)
In-Reply-To: <877f46yx6t.fsf@detlef>

[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]

Michael Albinus <michael.albinus@gmx.de> schrieb am Fr., 3. März 2017 um
20:31 Uhr:

> 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.

[-- Attachment #2: Type: text/html, Size: 2057 bytes --]

      reply	other threads:[~2017-04-04 12:35 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
2017-04-04 12:35     ` Philipp Stephani [this message]

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

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

  git send-email \
    --in-reply-to='CAArVCkRKR1qGV=2Pjh2N4GDw_8RFPJNVAAHnq7k5t3R6RdY=ig@mail.gmail.com' \
    --to=p.stephani2@gmail.com \
    --cc=25949-done@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.