From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: Escaping carets? Date: Thu, 02 Oct 2003 01:51:28 +0200 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <8765jbo37w.fsf@lucien.dreaming> <877k3pkvdw.fsf@lucien.dreaming> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1065065119 24086 80.91.224.253 (2 Oct 2003 03:25:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2003 03:25:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 02 05:25:17 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A4u5d-0003fD-00 for ; Thu, 02 Oct 2003 05:25:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A4r9R-000229-Tj for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Oct 2003 20:17:01 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12939 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12939 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".