From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64174 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-parameters: Inconsitency between group parameters and group local variables Date: Thu, 28 Dec 2006 19:28:05 +0100 Message-ID: <87ejqjnadm.fsf@baldur.tsdh.de> References: <87irgiwr1g.fsf@baldur.tsdh.de> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1167338792 14207 80.91.229.10 (28 Dec 2006 20:46:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Dec 2006 20:46:32 +0000 (UTC) Original-X-From: ding-owner+M12697@lists.math.uh.edu Thu Dec 28 21:46:31 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by dough.gmane.org with esmtp (Exim 4.50) id 1H028w-0002zC-Bf for ding-account@gmane.org; Thu, 28 Dec 2006 21:46:26 +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 1H027V-0006Dr-HP; Thu, 28 Dec 2006 14:44:57 -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 1H00Fh-0005Zm-TQ for ding@lists.math.uh.edu; Thu, 28 Dec 2006 12:45:17 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1H00Fb-0008Fw-E9 for ding@lists.math.uh.edu; Thu, 28 Dec 2006 12:45:17 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1H00Fa-0008Pa-00 for ; Thu, 28 Dec 2006 19:45:10 +0100 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1H00FS-0004fX-Kl for ding@gnus.org; Thu, 28 Dec 2006 19:45:02 +0100 Original-Received: from dslb-084-063-009-250.pools.arcor-ip.net ([84.63.9.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Dec 2006 19:45:02 +0100 Original-Received: from tassilo by dslb-084-063-009-250.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Dec 2006 19:45:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 90 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-063-009-250.pools.arcor-ip.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVWVlFmseNrkqmgzeif v9JYdoX7Ctb5AAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABqUlE QVQ4y8WTy3KkMAxFVQT2Iz/2QOAD3CZ7jNV7YNr//ysjmWcqlUWyGVU11dzjK9myAPwm4P8A963D /TCV06dDeURzkQug8fFm8OYAIT5afRI/DAfQNbzcvhnn/Ud1gD/wTl7rvFHvNc7Fo2GgFJTRe8dA ay/gCV121NAZJto50TlhB0VgQFD4QCwNTMWAZgRCUCOUaMTCMGYHjvBihwC2xYmIoh+It2BZgozR Qo6K6he3oc1g5oTYjRsp4c1ha6BgwG8BSUCZH4SkoApgZigbnEaRBG+rignUDNUQROLiBCwh8dpJ istayMcfQDgrXEN9wB47kM3BwsXNDfjjv7SEi3wBuVfY7UQ6xQeRoNzdhiZeThugh5x/A9gEosHn 3ub+xtCc40OH6ocg8jVXelssj8+TKO+G73a/kRtgk0ySzMk9VYwhSEKDcvcXCFPgIW1aZVYey3AB 3fZpSctqU/FMf68a5rkWfaqWNbV1vya6QN83tWVPpeq6mpcTPNaEKfVpndXcV+kCtufsaeYsrKa0 niDZVi02Wf6lpb05cthffufLTxyfi/wD4S56Bxo/ZasAAAAmelRYdENvbW1lbnQAAHjacy5KTSxJ TVEozyzJUAjJSFVw9/QNAABS5wcjkMtlcAAAABp6VFh0SlBFRy1Db2xvcnNwYWNlAAB42jMCAAAz ADMRFn5jAAAAJ3pUWHRKUEVHLVNhbXBsaW5nLWZhY3RvcnMAAHjaM6ow0jGsMARhABGDAulkDxti AAAAAElFTkSuQmCC User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux) Cancel-Lock: sha1:5SXAxEoelup0XM+aZiaKkRm3T58= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64174 Archived-At: Reiner Steib writes: Hi Reiner, > You need to move the more general match "^nnimap\\+Fastmail:INBOX" to > the end of the list: > > (setq gnus-parameters > '(("^nnimap\\+Fastmail:INBOX\\.D-BARF$" > (to-address . "D-BARF@yahoogroups.de") > (subscribed . t) > (gnus-use-scoring t) > (gcc-self . "nnimap+Fastmail:INBOX.Sent Items")) > ;; [...] > ("^nnimap\\+Fastmail:INBOX" > (gnus-use-scoring nil) > (gcc-self . t)))) I tried that, and then the gcc-self works correct. Unfortunately then gnus-use-scoring in nil in D-BARF. So it seems the group parameters (dotted lists) have to be set for the most strict match first to the most general last. Instead group local variables need to be set the other way round. So I tried separating group parameters and group local variables strictly: ,----[ C-h v gnus-parameters RET ] | Value: | (("^nnimap\\+Fastmail:INBOX\\.D-BARF$" | (to-address . "D-BARF@yahoogroups.de") | (subscribed . t) | (gcc-self . none)) | ("^nnimap\\+Fastmail:INBOX\\.emms-patches$" | (to-address . "emms-patches@gnu.org") | (subscribed . t) | (gcc-self . none)) | ("^nnimap\\+Fastmail:INBOX" | (gnus-use-scoring nil) | (gcc-self . t)) | ("^nnimap\\+Fastmail:INBOX\\.D-BARF$" | (gnus-use-scoring t)) | ("^nnimap\\+Fastmail:INBOX\\.emms-patches$" | (gnus-use-scoring t) | (gnus-thread-sort-functions | '(gnus-thread-sort-by-number gnus-thread-sort-by-total-score | (not gnus-thread-sort-by-date))))) `---- I did some short testing and it seems to work. :-) >> Soring is enabled for the two groups, so the matches should be >> correct. > > The difference is that `gnus-use-scoring' is a group local variable, > whereas `gcc-self' is a group parameter (dotted list). Surprisingly, > they behave different: > > (setq gnus-parameters > '(("^nnimap\\+.*:INBOX" > (tmp-variable 11) > (display . 11)) > ("^nnimap\\+.*:INBOX\\.test$" > (tmp-variable 22) > (display . 22)))) > > When I enter INBOX.test `M-: tmp-variable RET' returns 22 whereas `M-: > (gnus-group-find-parameter gnus-newsgroup-name 'display) RET' returns > 11. > > I think this inconsistent behavior should be fixed. Please do that. > IMHO it would be better if we choose the same behavior > `gnus-posting-styles'. Yes. That's exactly what I expected when I did my setup because the docs don't tell a difference. In my first try I only used `gnus-parameters' and mixed my posting styles in with (posting-style ...) blocks. Of course it didn't work properly. If it had the same behavior as the posting styles, it should have worked. Bye and thanks, Tassilo -- My opinions may have changed, but not the fact that I am right.