From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68952 Path: news.gmane.org!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.gnus.general Subject: Re: Listing inactive groups not working? Date: Thu, 03 Sep 2009 02:12:26 +0200 Message-ID: <87ab1cnsn1.fsf@fh-trier.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251979395 31113 80.91.229.12 (3 Sep 2009 12:03:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2009 12:03:15 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17370@lists.math.uh.edu Thu Sep 03 14:03:08 2009 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 1MjB1v-0005ao-BP for ding-account@gmane.org; Thu, 03 Sep 2009 14:03:07 +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 1MjB1h-0004a9-Qd; Thu, 03 Sep 2009 07:02:53 -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 1MjB1c-0004Zo-09 for ding@lists.math.uh.edu; Thu, 03 Sep 2009 07:02:48 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1MjB1a-0004X5-LY for ding@lists.math.uh.edu; Thu, 03 Sep 2009 07:02:47 -0500 Original-Received: from gateway-a.fh-trier.de ([143.93.54.181]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MjB2B-0001r7-00 for ; Thu, 03 Sep 2009 14:03:23 +0200 Original-Received: from raven (dslb-084-059-199-000.pools.arcor-ip.net [84.59.199.0]) (Authenticated sender: politza) by gateway-a.fh-trier.de (Postfix) with ESMTP id 333A416F3D66 for ; Thu, 3 Sep 2009 14:02:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=fh-trier.de; s=default; t=1251979331; bh=nYTSFbEMedt16r20kspW7ra63hM=; h=From:To:Subject: Date:References:Message-ID:MIME-Version:Content-Type; b=e9c0Dp3OT5 S+310P2piApHsGkjhaMA5O6F/JurQeSFgsPNXz9/64EvdberHUq2PQhsBI7vjEukzjf UAglERnpNFN6tUiyvR4ENEwk8h1xz0Cy6TiRgoxlznbRoJyV1+kavKf2Pe3CMxqD3q6 ft3LWger1xfrA6zAx311VPP196g= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:X9ItBqJE16oR38V2kV3TWT3nwSk= X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum FH-Trier (r/ft)] X-Spam-Score: -1.5 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68952 Archived-At: Justus-bulk@Piater.name writes: > Hi - > > [Using Gnus v5.13 with Emacs 23.1.1 on Debian testing] > > I want to inactivate some groups by setting their level to 7, but I > still want them to be listed in the *Group* buffer with 'L'. However, > they do not appear, even though gnus-group-list-inactive-groups is t > (the default). > [...] > Otherwise I'll go on: In gnus-group-prepare-flat, I think the following > code is broken: > [...] > Perhaps the real problem is elsewhere: The original code appears to make > perfect sense if gnus-group-unread returns t for inactive groups, but > for me it does not - it returns nil. > ,----[ (info "(gnus) Gnus Utility Functions") ] | `gnus-group-unread' | The number of unread articles in GROUP, or `t' if that is unknown. `---- Either this macro is broken and should be like this... (defmacro gnus-group-unread (group) "Get the currently computed number of unread articles in GROUP." `(or (car (gnus-gethash ,group gnus-newsrc-hashtb)) t)) , or it's the function/macro which fills the hash with the wrong value. Either way this would also fix the disappearance of certain unsubscribed groups. -ap