help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: concat vs format


From: Stephen Berman
Subject: Re: concat vs format
Date: Sun, 09 Dec 2018 15:57:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

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



reply via email to

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