From: Stephen Berman <stephen.berman@gmx.net>
To: Jean-Christophe Helary <brandelune@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: concat vs format
Date: Sun, 09 Dec 2018 15:57:19 +0100 [thread overview]
Message-ID: <87lg4yoii8.fsf@gmx.net> (raw)
In-Reply-To: <957DD078-6F45-487F-84AA-09E2C54F5B9A@gmail.com> (Jean-Christophe Helary's message of "Sun, 9 Dec 2018 22:42:15 +0900")
On Sun, 9 Dec 2018 22:42:15 +0900 Jean-Christophe Helary <brandelune@gmail.com> wrote:
> I run edebug on this:
>
> (defun dailyTemplate (myDay)
> (interactive (list
> (read-number "Date: " (string-to-number (format-time-string "%d")))))
> (let* ((myToday (getMyDates myDay))
> ; (myTomorrow (+ (getMyDates myDay) 84600))
> ; (myYesterday (- (getMyDates myDay) 84600))
>
> (siteRoot "/Users/suzume/Documents/Code/brandelune.github.io/")
>
> (cssRoot (concat siteRoot "css/" (format-time-string "%Y" myToday) "/"))
>
> And here are the edebug messages:
>
> Edebug: dailyTemplate
> [4 times]
> Result: "09"
>
> Result: 9 (#o11, #x9, ?\C-i)
>
> Result: 9 (#o11, #x9, ?\C-i)
>
> Result: (9)
> [3 times]
> Result: 9 (#o11, #x9, ?\C-i)
>
> Result: 1544324400 (#o13403102460, #x5c0c8530)
> [2 times]
> Result: "/Users/suzume/Documents/Code/brandelune.github.io/"
> [2 times]
> Result: 1544324400 (#o13403102460, #x5c0c8530)
>
> Result: "2018"
>
> Result: "/Users/suzume/Documents/Code/brandelune.github.io/..."
>
> So, the last concat gives me a path that's not the result of a
> "concat" on the values that I feed it. Why ?
The length of the output in Edebug is constrained by the user option
edebug-print-length, which is 50 by default; by setting that variable to
nil, the output won't be cut off.
Steve Berman
next prev parent reply other threads:[~2018-12-09 14:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-09 3:50 concat vs format Jean-Christophe Helary
2018-12-09 4:09 ` Drew Adams
2018-12-09 10:02 ` Jean-Christophe Helary
2018-12-09 11:30 ` Stefan Huchler
2018-12-09 13:42 ` Jean-Christophe Helary
2018-12-09 14:15 ` Stefan Monnier
2018-12-09 14:55 ` Jean-Christophe Helary
2018-12-09 14:57 ` Stephen Berman [this message]
2018-12-09 15:44 ` Jean-Christophe Helary
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lg4yoii8.fsf@gmx.net \
--to=stephen.berman@gmx.net \
--cc=brandelune@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).