From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76568 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: how gnus-parameter works when several regexps match Date: Fri, 11 Feb 2011 09:26:27 +0100 Message-ID: <871v3fnfik.fsf@member.fsf.org> References: <877hd8ujiq.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297412801 31754 80.91.229.12 (11 Feb 2011 08:26:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Feb 2011 08:26:41 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M24914@lists.math.uh.edu Fri Feb 11 09:26:36 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PnoKp-0005SX-L4 for ding-account@gmane.org; Fri, 11 Feb 2011 09:26:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PnoKn-0005q4-0K; Fri, 11 Feb 2011 02:26:33 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PnoKl-0005pg-FD for ding@lists.math.uh.edu; Fri, 11 Feb 2011 02:26:31 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PnoKj-0006zD-VE for ding@lists.math.uh.edu; Fri, 11 Feb 2011 02:26:31 -0600 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PnoKj-0004e1-3T for ding@gnus.org; Fri, 11 Feb 2011 09:26:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 93F7E7814EC7 for ; Fri, 11 Feb 2011 09:26:28 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24644-08 for ; Fri, 11 Feb 2011 09:26:27 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad (tsdh.uni-koblenz.de [141.26.67.142]) by deliver.uni-koblenz.de (Postfix) with ESMTP id D4F257814EC0 for ; Fri, 11 Feb 2011 09:26:27 +0100 (CET) In-Reply-To: (Francis Moreau's message of "Thu, 10 Feb 2011 23:09:08 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76568 Archived-At: Francis Moreau writes: Hi Francis, first of all, till some months ago, there was a difference in the handling of (foo . bar) parameters and (foo val) variables. In fact, one of them would override values from groups matched before and the others did not. Lars fixed that some time ago, so you should be sure that your Gnus version is pretty new. > But, it doesn't work for me (trademark. It's a long story between Gnus > and me, you know). > > For example doing this: > > (setq gnus-parameters '( > ("nnimap\\+foo:INBOX" > (gcc-self . t) > (posting-style > (name "toto") > (address "titi@foo.com"))) > > ("nnimap\\+foo" > (display . [not expire]) > (gnus-large-newsgroup 1000)))) > > In this case I expect to have name set to 'toto' and adress set to > 'titi@foo.com' in my INBOX group. However they are not. I think they > are set to user-full-name and user-mail-address values. Hm, I've never tried mixing posting-styles in the gnus-parameters... What if you swap the groups. At least I have my posting-styles and gnus-parameters configured starting with lax regexps (matching whole backends, or at least servers), and following regexps match only some groups to override some general parameters. > They are set to the expected values only if I comment the second rule > like the following: > > (setq gnus-parameters '( > ("nnimap\\+foo:INBOX" > (gcc-self . t) > (posting-style > (name "toto") > (address "titi@foo.com"))))) > > ; ("nnimap\\+foo" > ; (display . [not expire]) > ; (gnus-large-newsgroup 1000)))) > ; > > Do you have any idea why I get this behaviour ? I think that pretty much looks like the issue I described at the start of my mail. So you probably need a newer Gnus version. Oh, btw, gcc-ing is broken in the current gnus head. Currently, I use revision 0bca1908b8a435b5ade1dbebeb9f98207e81d9c4 which works for me. Bye, Tassilo