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: Thu, 02 Oct 2003 01:51:28 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

bkhl@elektrubadur.se (Björn Lindström) writes:

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

But this will never return the group name -- unless `group' is the
empty string it will always return "outgoing",

(let ((group "nnfolder:foo.bar"))
  (if (equal group "")
      (if (message-news-p)
          "outgoing"
        "misc")
    (if (string-match "nnfolder:" group)
        group
      "outgoing")
    "outgoing"))

=> "outgoing"

You need to remove the last "outgoing".


reply via email to

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