From: "Ted Zlatanov" <tzz@lifelogs.com>
Cc: ding@gnus.org
Subject: Re: nnimap-generate-folder-list-from-bbdb, almost.
Date: 24 Feb 2005 15:12:42 -0500 [thread overview]
Message-ID: <4nekf5ogxx.fsf@lifelogs.com> (raw)
In-Reply-To: <87vf8hsa8o.fsf@mat.ucm.es> (Uwe Brauer's message of "Thu, 24 Feb 2005 20:23:51 -0500")
On Thu, 24 Feb 2005, oub@mat.ucm.es wrote:
> I works when (my:nnimap-folder-list-from-bbdb) would just return one
> entry however if there are more the above setting leads to
> `nnimap-split-fancy' is a variable declared in Lisp.
> -- loaded from "nnimap"
>
> Value: (|
> (("From" "oub@gmx\\.net" "imapgmx")
> ^evil par
> ("From" "oub@mat\\.ucm\\.es" "testimap"))
> ^evil par
> ("Subject" ".*\\[POSSILBLE
> SPAM\\].*" "SPAM.POSS")
> and this is evil
>
>
> So I was pointed out that ,(car (my:nnimap-folder-list-from-bbdb))
> might, work, it does, but of course it will add only *the first* of the above
> list entries not all of them. Lisp is made to deal with lists, but
> how?
Use the ,@ expansion instead of just ,
See the Elisp manual, section "Macros" for more information. It's
really not that complicated, and you'll understand it better from the
many examples. I tried to avoid it for a while, and my code turned
out much uglier without macros :)
Here's an example that returns (1 5 6 2 3) because the (list) function
call is flattened by the ,@ operator.
`(1 ,@(list 5 6) 2 3)
That should be exactly what you need.
Ted
next prev parent reply other threads:[~2005-02-24 20:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-24 1:38 Uwe Brauer
2005-02-24 17:46 ` Ted Zlatanov
2005-02-25 1:23 ` Uwe Brauer
2005-02-24 20:12 ` Ted Zlatanov [this message]
2005-02-25 16:06 ` Uwe Brauer
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=4nekf5ogxx.fsf@lifelogs.com \
--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).