[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: concat vs format

From: Stefan Monnier
Subject: Re: concat vs format
Date: Sun, 09 Dec 2018 09:15:25 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

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


     (cssRoot (file-name-as-directory
               (expand-file-name (format-time-string "%Y" myToday)
                (expand-file-name "css" siteRoot))))

-- Stefan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]