help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Escaping carets?


From: Jesper Harder
Subject: Re: Escaping carets?
Date: Wed, 01 Oct 2003 03:30:30 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

address@hidden (Björn Lindström) writes:

> I want something like this in my gnus-message-archive-group. I seem to
> get something wrong concerning the caret in regexps however, since it
> doesn't match my nnfolders as long as I include it. If I just use
> "nnfolder:" instead it works, but it's not pretty. How do I escape that
> caret so that it works?

You shouldn't escape the caret -- I assume that your groups don't
actually include a literal caret.

What does string-match return when you insert the _full_ name of one
of your nnfolder groups, e.g.

      (string-match "^nnfolder:" "nnfolder:foo.bar")

> (if (string-match "^nnfolder:" group)
>     group
>   "outgoing")

You need a pair of parens wrapped around that.


reply via email to

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