Gnus development mailing list
 help / color / mirror / Atom feed
From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: format called for effect
Date: Tue, 07 Jan 2003 08:25:46 +0100	[thread overview]
Message-ID: <84y95xqv45.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: <m37kdj5893.fsf@quimbies.gnus.org>

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?  And if
> it doesn't, why is that code that way?  If nobody has an explanation,
> I'll just remove the `format'.

Thinking some more about it, maybe what was intended was to try to
insert one setq statement, and to insert another setq statement in
the case of an error.

So maybe the condition-case should be around the if and return
`whatever' in case of error?
-- 
Ambibibentists unite!



  reply	other threads:[~2003-01-07  7:25 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 [this message]
2003-01-08  3:52     ` Lars Magne Ingebrigtsen
2003-01-07 17:02   ` Raja R Harinath
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=84y95xqv45.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@uni-duisburg.de \
    /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).