Gnus development mailing list
 help / color / mirror / Atom feed
From: "Štěpán Němec" <stepnem@gmail.com>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: Tommy Kelly <tommy.kelly@verilab.com>,  ding@gnus.org
Subject: Re: Returning multiple groups from a fancy split
Date: Wed, 22 Dec 2010 07:52:10 +0100	[thread overview]
Message-ID: <87bp4e2tb9.fsf@gmail.com> (raw)
In-Reply-To: <87ipymap9b.fsf@member.fsf.org> (Tassilo Horn's message of "Tue, 21 Dec 2010 20:40:16 +0100")

Tassilo Horn <tassilo@member.fsf.org> writes:

> Tommy Kelly <tommy.kelly@verilab.com> writes:
>
> Hi Tommy,
>
> I have no clue about fancy mail splitting anymore (converted to
> server-side sieve splitting), so I only take the bonus question.
>
>> P.S. Bonus question to help a lisp newb. Is there a simple piece of
>> lisp I could have written as the body of my-function so as to answer
>> my own question?
>
> (defun tommy-split-fun (arg)
>   (message "SPLIT evaluated to %s" arg))

Better use %S instead of %s to e.g. distinguish between symbols and
strings as return values. This also assumes the function receives
exactly one argument; you could use (&rest args) instead of (arg) to get
the list of all arguments received.

  Štěpán



  reply	other threads:[~2010-12-22  6:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-21 18:50 Tommy Kelly
2010-12-21 19:40 ` Tassilo Horn
2010-12-22  6:52   ` Štěpán Němec [this message]
2010-12-22  9:37     ` Andreas Schwab
2010-12-21 20:53 ` Andreas Schwab

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=87bp4e2tb9.fsf@gmail.com \
    --to=stepnem@gmail.com \
    --cc=ding@gnus.org \
    --cc=tassilo@member.fsf.org \
    --cc=tommy.kelly@verilab.com \
    /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).