[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When I customize a group, where is that metadata stored?

From: Tassilo Horn
Subject: Re: When I customize a group, where is that metadata stored?
Date: Wed, 29 Oct 2008 10:37:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Andreas Davour <anteRUN@updateLIKE.uu.HELLse> writes:

Hi Andreas,

>>> But as you see, you can set `gnus-permanently-visible-groups' in
>>> your ~/.gnus.el to achieve your goal.
>> It always help to know where to start. That should do it. Many thanks
>> Tassilo!!
> Of course it wasn't all that simple.
> gnus-permanently-visible-groups wants a regexp. I want to set a bunch
> of groups as visible that's frankly impossible to create one regexp
> for. Now my lack of elisp skill is failing me. How to a make up a
> bunch of regexpes and attach them all to
> gnus-permanently-visible-groups? Is it even doable?

Of course it's doable!  For regexps I like the `rx' macro, which does
all the work for you while maintaining a much better structured view on
the regexp.

Here's an example:

--8<---------------cut here---------------start------------->8---
(setq gnus-permanently-visible-groups
      (rx (or ;; try all following matchers till one succeeds.
           ;; Match all groups starting with "de." or "comp."...
           (and bol (or "de." "comp."))
           ;; plus these two groups.
--8<---------------cut here---------------end--------------->8---

In that example all groups that start with "de." or "comp." would be
permanently visible, plus the two groups "" and

Hope that helps,
GNU Emacs is a text editor for Über-Geeks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]