From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: bkhl@elektrubadur.se (=?iso-8859-1?q?Bj=F6rn_Lindstr=F6m?=) Newsgroups: gmane.emacs.help Subject: Re: Escaping carets? Date: Wed, 01 Oct 2003 14:14:19 +0200 Organization: Upsalafandom Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <877k3pkvdw.fsf@lucien.dreaming> References: <8765jbo37w.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 1065038921 25739 80.91.224.253 (1 Oct 2003 20:08:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2003 20:08:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 01 22:08:39 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 1A4nH5-000054-00 for ; Wed, 01 Oct 2003 22:08:39 +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 1A4ija-0001jb-JG for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Oct 2003 11:17:46 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.algonet.se!'newsfeed1.telenordia.se'!algonet!newsfeed.sunet.se!news01.sunet.se!news.utfors.se!lucien.dreaming!news Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: md4690c6f.utfors.se Original-X-Trace: yggdrasil.utfors.se 1065010159 7065 212.105.12.111 (1 Oct 2003 12:09:19 GMT) Original-X-Complaints-To: abuse@utfors.se Original-NNTP-Posting-Date: 1 Oct 2003 12:09:19 GMT X-PGP-Key: http://bkhl.elektrubadur.se/Key.html X-Home-Page: http://bkhl.elektrubadur.se/ User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:JKvWz3KlS8PenIoHF9Lg+Ai1I14= Original-Xref: shelby.stanford.edu gnu.emacs.help:116990 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:12926 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12926 Jesper Harder 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 http://bkhl.elektrubadur.se/ Download the new *Elektrubadur* demo from http://elektrubadur.se/