From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67017 Path: news.gmane.org!not-for-mail From: David Newsgroups: gmane.emacs.gnus.general Subject: What does gnus-group-get-new-news do with arg=nil? Date: Tue, 03 Jun 2008 16:55:10 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212505041 11396 80.91.229.12 (3 Jun 2008 14:57:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2008 14:57:21 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15488@lists.math.uh.edu Tue Jun 03 16:58:03 2008 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.50) id 1K3XxN-0007y8-1g for ding-account@gmane.org; Tue, 03 Jun 2008 16:57:49 +0200 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 1K3XvG-0007yV-55; Tue, 03 Jun 2008 09:55:38 -0500 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 1K3XvC-0007y8-Om for ding@lists.math.uh.edu; Tue, 03 Jun 2008 09:55:34 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1K3Xv6-00028J-IG for ding@lists.math.uh.edu; Tue, 03 Jun 2008 09:55:34 -0500 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 1K3XvI-0001c9-00 for ; Tue, 03 Jun 2008 16:55:40 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K3Xuw-0000mB-Ud for ding@gnus.org; Tue, 03 Jun 2008 14:55:19 +0000 Original-Received: from kafka.physik3.gwdg.de ([134.76.92.48]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Jun 2008 14:55:18 +0000 Original-Received: from de_bb by kafka.physik3.gwdg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Jun 2008 14:55:18 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: kafka.physik3.gwdg.de User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:0t2Dduct7BNXMjfzA/+SWos7wNM= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67017 Archived-At: I tried to figure out what gnus-group-get-new-news actually does without further arguments and with permanent levels unset, and I simply don't get it. Please also note that the doc-string carefully avoids this question. My impression was that gnus-activate-level would be used, but it doesn't seem to be that easy. The question boils down to what gnus-get-unread-articles does without arguments, i.e. level=nil. What I'd like in this case is that every group with a level greater than gnus-activate-level should be completely ignored, but this doesn't happen. If level is nil, 'active' is never set to 'ignore in the following code: (if (and level ;; If `active' is nil that means the group has ;; never been read, the group should be marked ;; as having never been checked (see below). active (> (gnus-info-level info) level)) ;; Don't check groups of which levels are higher ;; than the one that a user specified. (setq active 'ignore)))) Therefore, later in the code, gnus-get-unread-articles-in-group is called, even for foreign groups with a level greater than gnus-activate-group: (cond ((eq active 'ignore) ;; Don't do anything. ) (active (inline (gnus-get-unread-articles-in-group info active t))) Is this really the wanted behavior? It seems unnecessary to me - if I just hit 'g' without a prefix, I think everything greater than gnus-activate-level shouldn't be touched at all. -David