From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67033 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: What does gnus-group-get-new-news do with arg=nil? Date: Fri, 06 Jun 2008 16:20:04 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212736943 27195 80.91.229.12 (6 Jun 2008 07:22:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2008 07:22:23 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15501@lists.math.uh.edu Fri Jun 06 09:23:05 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 1K4WHq-0004f0-Bv for ding-account@gmane.org; Fri, 06 Jun 2008 09:22:58 +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 1K4WG2-0000iR-RE; Fri, 06 Jun 2008 02:21:06 -0500 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 1K4WG0-0000i9-Ek for ding@lists.math.uh.edu; Fri, 06 Jun 2008 02:21:04 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1K4WFu-0002Em-5c for ding@lists.math.uh.edu; Fri, 06 Jun 2008 02:21:04 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1K4WG8-0000a7-00 for ; Fri, 06 Jun 2008 09:21:14 +0200 Original-Received: from [66.225.201.151] (port=43907 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1K4WFD-0006H5-LT for ding@gnus.org; Fri, 06 Jun 2008 02:20:17 -0500 X-Hashcash: 1:20:080606:ding@gnus.org::qobTJ8U9+CcGUoER:00007a21 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:OafJY6SZtXszXseCOkeGElNSqyY= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67033 Archived-At: >>>>> David wrote: > 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)))) Probably I added those comments, that describe how Gnus works internally. Though I'll need much time by now to recall how Gnus works. > 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? Yes, maybe. Gnus has been continuing this behavior for a long time. I made two changes in 2007-11-21 (see lisp/ChangeLog). The first one was for the fix against a certain problem. However, I enbugged then; Gnus came not to do the behavior in question. So the second change was for fixing it. > 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. Though I don't know why it is done, the behavior is useful to me actually. I usually start Gnus with the prefix arg 2 (I use the level 1 for all the mail groups; 2 is for some newsgroups existing in the local news server). When I hit `l' in the group buffer, the foreign groups of which the levels are 3-5, such as Gmane groups, nnshimbun groups, etc., are listed without checking. It makes me easy to find groups that I don't read frequently. What I do next will be to hit `M-g' on such a group. Regards,