Gnus development mailing list
 help / color / mirror / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: pmlists@free.fr (Peter Münster)
Cc: ding@gnus.org
Subject: Re: inheritatively specifying group parameters
Date: Thu, 14 Jul 2011 08:16:39 +0200	[thread overview]
Message-ID: <87zkkhcrp4.fsf@member.fsf.org> (raw)
In-Reply-To: <87hb6plw0g.fsf@micropit.couberia.bzh> ("Peter \=\?utf-8\?Q\?M\?\= \=\?utf-8\?Q\?\=C3\=BCnster\=22's\?\= message of "Wed, 13 Jul 2011 23:18:39 +0200")

pmlists@free.fr (Peter Münster) writes:

Hi Peter,

>>>>>>       `((,(rx (or "emacs" "gnus"))                ;; 1)
>
>> How comes that the following doesn't work:
>>
>>       '((,(rx (or "bogus" "mail"))
>
> '() is not the same as `().
> '(): everything is quoted, same as (quote ...)
> `(): not all is quoted, everything inside ,() is expanded
>
> (I'm a lisp-beginner, so my explanation might be wrong...)

You are totally correct.  In my code, I've used ` and the ,(rx "foo")
forms say that this form should be evaluated when expanding the macro,
resulting in a regular expression.

,----[ C-h v gnus-parameters RET ]
| gnus-parameters is a variable defined in `gnus.el'.
| Its value is shown below.
| 
| Documentation:
| Alist of group parameters.
| [...]
| 
| Value: (("\\(?:\\(?:emac\\|gnu\\)s\\)"
|   (gnus-button-emacs-level 10))
|  ("nnimap\\+"
|   (gnus-use-scoring nil)
|   (gcc-self . t))
|  ("nnimap\\+Uni:ml/"
|   (gcc-self . "nnimap+Uni:Sent"))
|  ("nnimap\\+Fastmail:INBOX\\.mailinglists\\."
|   (gcc-self . "nnimap+Fastmail:INBOX.Sent Items")
|   (gnus-use-scoring t)))
`----

See?  The rx forms are replaced by their results.

Bye,
Tassilo
-- 
Sent from my Emacs



  reply	other threads:[~2011-07-14  6:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-08 13:31 Where are group parameters stored? Dave Abrahams
2011-07-08 13:40 ` Tassilo Horn
2011-07-12 17:21   ` Dave Abrahams
2011-07-12 18:26     ` Tassilo Horn
2011-07-13  0:54       ` lee
2011-07-13  7:13         ` Tassilo Horn
2011-07-13 20:05           ` lee
2011-07-13 20:50             ` inheritatively specifying group parameters (was: Where are group parameters stored?) lee
2011-07-13 21:18               ` inheritatively specifying group parameters Peter Münster
2011-07-14  6:16                 ` Tassilo Horn [this message]
2011-07-14 16:05                   ` lee
2011-07-14  6:19             ` Where are group parameters stored? Tassilo Horn
2011-07-14 16:25               ` lee
2011-07-14 18:26                 ` Tassilo Horn
2011-07-14 19:18                   ` lee
2011-07-14 17:20       ` Dave Abrahams
2011-07-13  5:23     ` Steinar Bang
2011-07-19 16:49     ` Lars Magne Ingebrigtsen
2011-07-13  5:18 ` Steinar Bang

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=87zkkhcrp4.fsf@member.fsf.org \
    --to=tassilo@member.fsf.org \
    --cc=ding@gnus.org \
    --cc=pmlists@free.fr \
    /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).