[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: concat vs format
From: |
Jean-Christophe Helary |
Subject: |
Re: concat vs format |
Date: |
Sun, 9 Dec 2018 23:55:56 +0900 |
> On Dec 9, 2018, at 23:15, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
>> (cssRoot (concat siteRoot "css/" (format-time-string "%Y" myToday)
>> "/"))
>
> BTW, it's recommended to use `expand-file-name` instead of `concat` to
> combine a directory name and a relative file name.
I'll try this, but would that explain why my concat doesn't work ?
> E.g.
>
> (cssRoot (file-name-as-directory
> (expand-file-name (format-time-string "%Y" myToday)
> (expand-file-name "css" siteRoot))))
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune