From: Raja R Harinath <harinath@cs.umn.edu>
Subject: Re: format called for effect
Date: Tue, 07 Jan 2003 11:02:25 -0600 [thread overview]
Message-ID: <d9lm1w7v1a.fsf@bose.cs.umn.edu> (raw)
In-Reply-To: <m37kdj5893.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Mon, 06 Jan 2003 03:20:40 +0100")
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:
>
>> When byte-compiling Gnus, I see the message from subject. It comes
>> from gnus-msg.el, line 1497 or so, if I'm not mistaken.
>
> This code:
>
> (condition-case ()
> (pp `(setq ,(car olist)
> ,(if (or (consp (setq sym (symbol-value (car olist))))
> (and (symbolp sym)
> (not (or (eq sym nil)
> (eq sym t)))))
> (list 'quote (symbol-value (car olist)))
> (symbol-value (car olist))))
> (current-buffer))
> (error
> (format "(setq %s 'whatever)\n" (car olist))))
>
> First of all -- I have no idea why that `condition-case' is the way
> it is. I didn't know that `format' had any effect? Does it?
It doesn't. And that seems to be the point of the overly cleverly
worded warning. It think the warning says
"you want a side-effect there, but 'format' ain't gonna do it for you"
- Hari
--
Raja R Harinath ------------------------------ harinath@cs.umn.edu
next prev parent reply other threads:[~2003-01-07 17:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-05 19:38 Kai Großjohann
2003-01-06 2:20 ` Lars Magne Ingebrigtsen
2003-01-07 7:25 ` Kai Großjohann
2003-01-08 3:52 ` Lars Magne Ingebrigtsen
2003-01-07 17:02 ` Raja R Harinath [this message]
2003-01-08 3:53 ` Lars Magne Ingebrigtsen
2003-01-08 5:12 ` Raja R Harinath
2003-01-08 6:12 ` Kai Großjohann
2003-01-08 9:19 ` Lars Magne Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d9lm1w7v1a.fsf@bose.cs.umn.edu \
--to=harinath@cs.umn.edu \
/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 NNTP newsgroup(s).