From: Ted Zlatanov <tzz@lifelogs.com>
Cc: ding@gnus.org
Subject: Re: Fancy splitting getting headers from included text
Date: Tue, 15 Apr 2003 15:47:11 -0400 [thread overview]
Message-ID: <4nsmsja6gw.fsf@lockgroove.bwh.harvard.edu> (raw)
In-Reply-To: <87ptnntyt3.fsf@cag.lcs.mit.edu> (David Z. Maze's message of "Tue, 15 Apr 2003 14:12:24 -0400")
On Tue, 15 Apr 2003, dmaze@MIT.EDU wrote:
> Ted Zlatanov <tzz@lifelogs.com> writes:
>
>> Are you and Simon saying the code also needs a save-restriction
>> inside the save-excursion? If that's the case, try this
>> (improperly indented) version of spam-split and see how it works:
>
> Aah, that seems to have helped.
OK, fix committed to CVS. I hope it works for everyone.
>> I think the code you mean is this:
>>
>> (save-excursion
>> (dolist (check spam-list-of-statistical-checks)
>> (when (symbol-value check)
>> (widen) (gnus-message 8 "spam-split: widening the buffer (%s requires it)"
>> (symbol-name check))
>> (return)))
>> ...)
>
> Yeah, I might write something more like
>
> (if (memq nil
> (mapcar 'not
> (mapcar 'symbol-value spam-list-of-statistical-checks)))
> (widen))
>
> Though that eliminates the possibility of the gnus-message.
Ah, but mapcar, just like dolist, goes through the whole list, and I
wanted to optimize :) Looking back I see it's a pretty useless
optimization, but I was trying to learn Lisp and how to return from
forms at the time.
Ted
next prev parent reply other threads:[~2003-04-15 19:47 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-25 19:02 David Z Maze
2003-03-26 8:21 ` Niklas Morberg
2003-03-30 2:47 ` Lars Magne Ingebrigtsen
2003-03-30 9:31 ` Kai Großjohann
2003-03-30 12:08 ` Simon Josefsson
2003-04-05 13:29 ` Ted Zlatanov
2003-04-14 15:53 ` David Z Maze
2003-04-14 16:33 ` Simon Josefsson
2003-04-14 20:25 ` David Z Maze
2003-04-15 17:44 ` Ted Zlatanov
2003-04-15 18:12 ` David Z Maze
2003-04-15 19:47 ` Ted Zlatanov [this message]
2003-05-07 14:27 ` Niklas Morberg
2003-06-11 9:23 ` Niklas Morberg
2003-06-13 8:33 ` Niklas Morberg
2003-06-13 9:35 ` Niklas Morberg
2003-06-13 9:50 ` [PATCH] " Niklas Morberg
2003-06-13 21:07 ` Kai Großjohann
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=4nsmsja6gw.fsf@lockgroove.bwh.harvard.edu \
--to=tzz@lifelogs.com \
--cc=ding@gnus.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 NNTP newsgroup(s).