From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.help Subject: Re: concat vs format Date: Sun, 9 Dec 2018 23:55:56 +0900 Message-ID: References: <6038B67F-98A7-42B9-8486-97DB99D63033@gmail.com> <4A03F880-46F5-47AA-BFA9-7CA09FB9D7AA@gmail.com> <87bm5vaqe1.fsf@mail.de> <957DD078-6F45-487F-84AA-09E2C54F5B9A@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1544367267 597 195.159.176.226 (9 Dec 2018 14:54:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2018 14:54:27 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 09 15:54:23 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW0TO-0008UF-LW for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Dec 2018 15:54:22 +0100 Original-Received: from localhost ([::1]:55679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW0VV-0004uP-2t for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Dec 2018 09:56:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW0V3-0004uA-6w for help-gnu-emacs@gnu.org; Sun, 09 Dec 2018 09:56:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gW0Uz-0003H3-5n for help-gnu-emacs@gnu.org; Sun, 09 Dec 2018 09:56:05 -0500 Original-Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:42755) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gW0Uy-0003Gp-UQ for help-gnu-emacs@gnu.org; Sun, 09 Dec 2018 09:56:01 -0500 Original-Received: by mail-pf1-x42b.google.com with SMTP id 64so4130423pfr.9 for ; Sun, 09 Dec 2018 06:56:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=p86G4thSvRw623shqDwi9vskIJ47Gm3LN75dTUo7Yg4=; b=pu5x0Oa9mwidoNIWpqoQ0WGrg1vVZKEneU8jD5CbWmChOOR1OkyOituuM7SQHIjsLO yiXC2fcMd2kaz0bLRXEr9tzWNQ4Y0c4M+h9kgnIVWFp3VB+0y5vCrRt3ILk3vwg3xTJr gdat7jx4DvwBU5jou0FcoMOxD33DiDayN7gKOFfhXwhqb53pI/JYiznLhzVUYyEw+JAj +F8oh5CegJoXpaZoPxfuM33Xne3s0lhlv7Om8ZAyOEvYe3XtzY1afshit5Vtayyk5TFd acrktfV28RHxpvrkh0y8aEI3IOBFOB7Ax/nSs6Pv/4Q+ze9nWJxn4/FYRNQ0baNWXeBL tJkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=p86G4thSvRw623shqDwi9vskIJ47Gm3LN75dTUo7Yg4=; b=TAgY+4NELvkf2ocwjMD7BdcMWZQ4AOYCJ7OJjl/6hPNZGnRZsJJbSbP5w/iVKJ6U2c DTqrCy9wsztrNqMw4/vZAkBy9n8D7PzygtCtevCrBfKwjSTkXmoCDax9dyHFlkftMfJ8 LVt50h+kv38xx0Bwo4JEUac5b3TuhgkQAlsvFbNhzhhi455dfwPVnpP0gcNSmlZM1+bs WpDxuoh6lVdCU0V9mPKi+5BSqK9diVvLp41jo7ok2aIRtjhVM4vNxS12cI0JyJlUwZsd cAKrxlp+snrHvJuvhHKclB7UjXsvwNG6xtKqox/nIAj37sU4cGJ2K2a8tUN/zWfH6wTv Fo2g== X-Gm-Message-State: AA+aEWb/rKl0vFqXRBkny2ik+aZkKgH0PW4P8UYwvOVwXJM0qG5e8ps6 SuY/F0q7z7vHHqTLHv+A+0htkJzc X-Google-Smtp-Source: AFSGD/UTSpvCz6LGXb8lP2N/w0wJyqRr+6Kw1BCmdPadevqmGnYpNNyvjeGXiE1/sLDm9YQasPoFlA== X-Received: by 2002:a63:e445:: with SMTP id i5mr7878133pgk.307.1544367359287; Sun, 09 Dec 2018 06:55:59 -0800 (PST) Original-Received: from [192.168.1.11] (pl16832.ag0304.nttpc.ne.jp. [128.53.251.192]) by smtp.gmail.com with ESMTPSA id r130sm15511098pfr.48.2018.12.09.06.55.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Dec 2018 06:55:58 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3445.101.1) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42b X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118935 Archived-At: > On Dec 9, 2018, at 23:15, Stefan Monnier 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