all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: master e315544: ; * src/fileio.c (Fdirectory_append): Doc fix.
Date: Wed, 28 Jul 2021 17:36:42 +0200	[thread overview]
Message-ID: <87fsvybgc5.fsf@gnus.org> (raw)
In-Reply-To: <87a6man7rj.fsf@gmx.de> (Michael Albinus's message of "Sun, 25 Jul 2021 09:59:44 +0200")

Michael Albinus <michael.albinus@gmx.de> writes:

> So (file-name-concat x y) is roughly equivalent to
>
> (let (file-name-handler-alist)
>   (concat (file-name-as-directory x) y))

Yes, I think so.

> Perhaps this could be mentioned somewhere in the manual?

In the file-name-concat bit in the manual?  I'm not sure that would be
all that informative for the readers, really...  (But it would explain
things to people who did do a concat/file-name-as-directory thing before
this function existed, so perhaps mentioning this in NEWS would make
sense.)

> This would also precise, that leading slashes in COMPONENTS are kept.

I'm not sure why we'd mention anything about leading slashes here at
all?  Or slashes in the middle of components, for that matter:

(file-name-concat "/tmp/" "//foo////bar")
=> "/tmp///foo////bar"

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



  reply	other threads:[~2021-07-28 15:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210724171858.1726.43078@vcs0.savannah.gnu.org>
     [not found] ` <20210724171900.4A26D20D0A@vcs0.savannah.gnu.org>
2021-07-24 18:39   ` master e315544: ; * src/fileio.c (Fdirectory_append): Doc fix Michael Albinus
2021-07-24 18:51     ` Lars Ingebrigtsen
2021-07-24 19:04       ` Michael Albinus
2021-07-25  5:19         ` Lars Ingebrigtsen
2021-07-25  5:27           ` Stefan Monnier
2021-07-25  6:54             ` Lars Ingebrigtsen
2021-07-25 10:01               ` Kévin Le Gouguec
2021-07-25 10:23                 ` Lars Ingebrigtsen
2021-07-25 11:50                 ` Andreas Schwab
2021-07-25 13:05                   ` Kévin Le Gouguec
2021-07-28 15:39                     ` Lars Ingebrigtsen
2021-07-28 17:28                       ` Michael Albinus
2021-07-30 11:36                         ` Lars Ingebrigtsen
2021-07-25  7:59           ` Michael Albinus
2021-07-28 15:36             ` Lars Ingebrigtsen [this message]
2021-07-28 17:13               ` Michael Albinus

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=87fsvybgc5.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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.