unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: bkhl@elektrubadur.se (Björn Lindström)
Subject: Re: Escaping carets?
Date: Wed, 01 Oct 2003 14:14:19 +0200	[thread overview]
Message-ID: <877k3pkvdw.fsf@lucien.dreaming> (raw)
In-Reply-To: m3lls5rbgp.fsf@defun.localdomain

Jesper Harder <harder@myrealbox.com> writes:

>> (if (string-match "^nnfolder:" group)
>>     group
>>   "outgoing")
>
> You need a pair of parens wrapped around that.

That was just a part of the whole thing. The whole should look like this:

(setq gnus-message-archive-group '((if (equal group "")
                                       (if (message-news-p)
                                           "outgoing"
                                         "misc")
                                     (if (string-match "nnfolder:" group)
                                         group
                                       "outgoing")
                                     "outgoing")))

> 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")

It returns 0, which I assume is what should happen.

-- 
Björn Lindström <bkhl@elektrubadur.se>
http://bkhl.elektrubadur.se/

Download the new *Elektrubadur* demo from http://elektrubadur.se/

  reply	other threads:[~2003-10-01 12:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-29 18:32 Escaping carets? Björn Lindström
2003-10-01  1:30 ` Jesper Harder
2003-10-01 12:14   ` Björn Lindström [this message]
2003-10-01 23:51     ` Jesper Harder
2003-10-02  0:06       ` Björn Lindström

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877k3pkvdw.fsf@lucien.dreaming \
    --to=bkhl@elektrubadur.se \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).