From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: concat vs format Date: Sun, 09 Dec 2018 15:57:19 +0100 Message-ID: <87lg4yoii8.fsf@gmx.net> 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 Content-Type: text/plain X-Trace: blaine.gmane.org 1544367349 6226 195.159.176.226 (9 Dec 2018 14:55:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2018 14:55:49 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs To: Jean-Christophe Helary Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 09 15:55:45 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 1gW0Uj-0001W7-Ee for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Dec 2018 15:55:45 +0100 Original-Received: from localhost ([::1]:55681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW0Wq-0005Rr-0a for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Dec 2018 09:57:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW0WP-0005Rm-Ez for help-gnu-emacs@gnu.org; Sun, 09 Dec 2018 09:57:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gW0WM-00040W-92 for help-gnu-emacs@gnu.org; Sun, 09 Dec 2018 09:57:29 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:41057) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gW0WL-0003zO-VT for help-gnu-emacs@gnu.org; Sun, 09 Dec 2018 09:57:26 -0500 Original-Received: from rosalinde ([88.74.23.82]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lv9lm-1hWKO23QIs-010I6u; Sun, 09 Dec 2018 15:57:21 +0100 In-Reply-To: <957DD078-6F45-487F-84AA-09E2C54F5B9A@gmail.com> (Jean-Christophe Helary's message of "Sun, 9 Dec 2018 22:42:15 +0900") X-Provags-ID: V03:K1:Q1/cKkE9t2jvr6X0NqHN4ACz83Wm6PaVtYfla9nPWI8V4U5kTXJ COR3IBySDf85dfuhswtjXgf7RdQBYrZoZLaNb7fyoruXMCAE6HwPCcn9yizNg78SAeYgw3Y xOU1nPf59871/bF+C/QxyZSxn4CyZpLUOAVNjLSWMntn8mffG0tHJvllWQ48HZ7mnY6Odat k/JCG57zbUZNnIw9rHE8g== X-UI-Out-Filterresults: notjunk:1;V03:K0:g5M2yA/otPY=:ttgdLe1xPk/zIFEhmiaxiL TBkodRheY8c+YUQ4tygAXiAtVcuj5q2oPnlpGzJ+mx/n5qOc4ndwieBSVKdL/8iKJMFqkV2RM tc7Da8/lDtsR31oJFMecfe/ys9Yu2opz/ghp6g5xI4KxFApALATxJXbAIkzzQt72k9G1U8jwx eEDp1Wtk3b1T+ejS9J6m0Fbj0O4Joug6PWTfQuQBEHN7j1DScbkoqFe6KRQ849+Trej2cu5D+ o9q1eYAN6G6FvCJMdkElnbPO4//L0IndmGB7sEMSZqM3xvwNq/b21Py7qVg2GwjWqLLKY7YlN 3hB7toLttfxNrnMqhsEMDT7Zny4EtYsLt8liU6I4JGzrxjemt1FBbbPSEWIjzd3+BSFxGaPam QPcLYKl4dN0D4s+eG6wdpcNqo3doPnaL99UVA4YJh6Ki1elmR5yrtaboh9XQXVJgc1Db0R/Er FvVcISmX+sBrJ9cb53YJU3l6xp62vfQIFAKpXNiW7HWkMT5Ek8J/ORBjm2J/DpIXEqurQoPOQ JSaWWzr9Y3BdnwZQt/+jJKxcItcNkb2IakvU2pvZcx6trgf4nah6gPhiJroRlxxRqADW2IjF+ MWP2lXs7jfP+U9FCfTOaaEY2tjcpkMvu3I+OFOR+61Cz73uOUXd05od9to95jM8+6fzn5vSQR hi/qz4lbysVeHNuZQ5pvIL5mg/b/3HBMzbQ4tKxfnbKjq6cgutO1FUyFVU+AaiEWSGUmEKhUx feNM7yh4nkaKkhIjwUHrAmg1c/RUHEFVrXPaBucgw6CliznbOwOugn1S4ociGBOJE8XYMGWE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.20 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:118936 Archived-At: On Sun, 9 Dec 2018 22:42:15 +0900 Jean-Christophe Helary 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