From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76569 Path: news.gmane.org!not-for-mail From: Francis Moreau Newsgroups: gmane.emacs.gnus.general Subject: Re: how gnus-parameter works when several regexps match Date: Fri, 11 Feb 2011 11:45:41 +0100 Message-ID: References: <877hd8ujiq.fsf@member.fsf.org> <871v3fnfik.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1297421197 8882 80.91.229.12 (11 Feb 2011 10:46:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Feb 2011 10:46:37 +0000 (UTC) Cc: ding@gnus.org To: Tassilo Horn Original-X-From: ding-owner+M24915@lists.math.uh.edu Fri Feb 11 11:46:32 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 1PnqWG-0004RE-Ek for ding-account@gmane.org; Fri, 11 Feb 2011 11:46:32 +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 1PnqVi-0006Ob-Oc; Fri, 11 Feb 2011 04:45:58 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PnqVf-0006OD-HJ for ding@lists.math.uh.edu; Fri, 11 Feb 2011 04:45:55 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PnqVd-0001Ha-MV for ding@lists.math.uh.edu; Fri, 11 Feb 2011 04:45:55 -0600 Original-Received: from mail-bw0-f44.google.com ([209.85.214.44]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PnqVc-00071u-OF for ding@gnus.org; Fri, 11 Feb 2011 11:45:52 +0100 Original-Received: by bwz12 with SMTP id 12so2917708bwz.17 for ; Fri, 11 Feb 2011 02:45:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:mail-followup-to :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=UVV2OX4mj3QLQOfAA6+6WRAfoHfqqrQesDs4dLA8WuY=; b=CRMHkirC8QonCT0Hbdsg8snRDhh/hrviyFFOQIr5bZKBCmwZXMtriShF9uuCSBTQie vx+JIpYIIF5GjULpy4zgn/qYvHSrO2WnSrkATgH1dtstdgEIgmDI/jlWdVJaU+uieQaA m6b3ieoT7JAST8Ji+iEKzKp5ILKaYmuCNxvuQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=GW6bXrsAcz2jI9SOkJHkPVMgakO4IusqeHIJhQX26jaJaP5H4aimP3hR6FL7ko7XNg 4gxxO6JueUnX1zdZDO67ishMwFfrbmo3DWAtTk8WaZfZbPkc+GNeYBQi82NeLU8UlWP6 VXSTezS0eWdQoC3IAczgf3IeH23NEAasBLKFo= Original-Received: by 10.204.58.80 with SMTP id f16mr6292488bkh.148.1297421146976; Fri, 11 Feb 2011 02:45:46 -0800 (PST) Original-Received: from localhost (au213-1-82-235-205-153.fbx.proxad.net [82.235.205.153]) by mx.google.com with ESMTPS id b6sm367584bkb.10.2011.02.11.02.45.43 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Feb 2011 02:45:44 -0800 (PST) Mail-Followup-To: Tassilo Horn , ding@gnus.org In-Reply-To: <871v3fnfik.fsf@member.fsf.org> (Tassilo Horn's message of "Fri, 11 Feb 2011 09:26:27 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76569 Archived-At: Hi Tassilo, Tassilo Horn writes: > Francis Moreau writes: > > 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. Thanks for the info, I was using a revision made at the end of January but I've now updated to the one you mentionned. > > >> 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... > It seems that posting-styles doesn't work very well in this case. If the last rule doesn't have posting-style definition then it ignores all previous definition given by matched previous rules and use user-mail-address and co... Well I just gave a test with gcc-self and it's the same... BTW I looked at your example and I think it doesn't fit my case since any last rules define gcc-self in your case. Would be interesting to see if you remove gcc-self in one last rule then you herit the value of the previous matching rule. > > What if you swap the groups. same behaviour. > 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. Done, but still the same behaviour Thanks for your help. -- Francis