[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#53638: [PATCH] newsticker better path handling and data storage
From: |
Eli Zaretskii |
Subject: |
bug#53638: [PATCH] newsticker better path handling and data storage |
Date: |
Tue, 01 Feb 2022 05:25:56 +0200 |
> Cc: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Mon, 31 Jan 2022 20:09:58 +0000
> From: mailj2--- via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> "Lars Ingebrigtsen" <larsi@gnus.org> writes:
>
> > Can you rework the patch to use
> > `expand-file-name', which is how file names are supposed to be constructed?
>
> I've refactored it to use `expand-file-name' and `file-name-concat'. It
> appears the current convention (correct me if I'm wrong) is to use
> `expand-file-name' for joining only one path and one directory, and
> `file-name-concat' for multiple together.
No, you can chain calls to expand-file-name as you need:
(expand-file-name "foo" (expand-file-name "bar" my-directory))