unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: "Fabián E. Gallina" <fgallina@gnu.org>,
	"Noam Postavsky" <npostavs@gmail.com>,
	emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master 2291d9a: Fix python.el for Emacs 24, bump ELPA version to 0.26.1 (Bug#30633)
Date: Wed, 28 Feb 2018 08:55:26 +0100	[thread overview]
Message-ID: <87po4p5z0x.fsf@gmx.de> (raw)
In-Reply-To: <jwv4lm1q3p0.fsf-monnier+emacsdiffs@gnu.org> (Stefan Monnier's message of "Tue, 27 Feb 2018 21:03:03 -0500")

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>          (file-name (expand-file-name (file-local-name file-name)))
>          (temp-file-name (when temp-file-name
>                            (expand-file-name
>                             (file-local-name temp-file-name)))))
>
> I don't understand how/why it makes sense to apply expand-file-name on
> its return value.  Shouldn't this be
>
>          (file-name (file-local-name (expand-file-name file-name)))
>          (temp-file-name (when temp-file-name
>                            (file-local-name
>                             (expand-file-name temp-file-name)))))
>
> ?

Yes. If, for example, file-name is "/ssh:user@host:~/what/ever", the
former forms might fail, because "~/what/ever" could be expanded
differently on local and remote hosts.

>         Stefan

Best regards, Michael.



  parent reply	other threads:[~2018-02-28  7:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180228012154.1636.19993@vcs0.savannah.gnu.org>
     [not found] ` <20180228012156.38869207B1@vcs0.savannah.gnu.org>
2018-02-28  2:03   ` [Emacs-diffs] master 2291d9a: Fix python.el for Emacs 24, bump ELPA version to 0.26.1 (Bug#30633) Stefan Monnier
2018-02-28  3:33     ` Noam Postavsky
2018-02-28  5:10       ` Stefan Monnier
2018-02-28  7:55     ` Michael Albinus [this message]
2018-03-02  3:15       ` Noam Postavsky

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=87po4p5z0x.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=fgallina@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    --cc=npostavs@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).