From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75325 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: Wrong number of articles from completely read group Date: Mon, 20 Dec 2010 19:54:05 +0100 Message-ID: <874oa8xoky.fsf@member.fsf.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292871273 30575 80.91.229.12 (20 Dec 2010 18:54:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2010 18:54:33 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23677@lists.math.uh.edu Mon Dec 20 19:54:24 2010 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 1PUksI-0004PQ-LC for ding-account@gmane.org; Mon, 20 Dec 2010 19:54:22 +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 1PUks7-0002Dn-O5; Mon, 20 Dec 2010 12:54:11 -0600 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 1PUks6-0002Dd-Jb for ding@lists.math.uh.edu; Mon, 20 Dec 2010 12:54:10 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PUks5-00064M-9x for ding@lists.math.uh.edu; Mon, 20 Dec 2010 12:54:10 -0600 Original-Received: from out3.smtp.messagingengine.com ([66.111.4.27]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PUks4-0006n8-7x for ding@gnus.org; Mon, 20 Dec 2010 19:54:08 +0100 Original-Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 7C38C6A9 for ; Mon, 20 Dec 2010 13:54:07 -0500 (EST) Original-Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 20 Dec 2010 13:54:07 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:subject:references:date:in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=44sTkSHowLdAg+QNp2nmPQpxvCk=; b=ZwTsroNpeu6kdftvUbj4vVkc6JU96m+iXTNGrxCs3kihEyBsRngVifYL95pPT0q862xVDSQi9WWiE8U2BroAZ+TLcd2jgD7EzYRPDhoOZw4vm4J4u1F1Wvfn+U9uoFZUfEYZuuKXQ+lVjC4fPucYEe0QVw994BbwfElifeAmpoo= X-Sasl-enc: XnDnn3GbEBy9BuXQFY82FTVQxvBTSAc1HwAaS+Qqv0VO 1292871247 Original-Received: from thinkpad (95-88-32-105-dynip.superkabel.de [95.88.32.105]) by mail.messagingengine.com (Postfix) with ESMTPA id E9E3B401FE5 for ; Mon, 20 Dec 2010 13:54:06 -0500 (EST) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 20 Dec 2010 18:05:21 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75325 Archived-At: Lars Magne Ingebrigtsen writes: Hi Lars, >> If I have a group where all the articles are read and I open it, I get >> asked how many articles I want to show. The number I'm actually shown is >> always less than the number I ask for (unless I ask for 1). For example, >> asking for 2 gives me 1. Asking for 4 gives me three. But it's not >> always n-1. For example, asking for 20 gives me 16. > > Gnus doesn't know what articles exist, so it asks for articles in the > range of n-x to n. For IMAP, there's often fewer than x+1 articles in > that range. I think that applies to any backend that allows for modifications, right? In org-gnus.el, I have this really beatiful snippet to reliably open a summary buffer at least showing ARTICLE (article number or message id). ;; articles is 1 and group-opened nil initially (while (and (not group-opened) ;; stop on integer overflows (> articles 0)) (setq group-opened (gnus-group-read-group articles nil group) articles (if (< articles 16) (1+ articles) (* articles 2)))) (if group-opened (gnus-summary-goto-article article nil t) (message "Couldn't follow gnus link. %s" "The summary couldn't be opened.")) It works, but is there something better that doesn't rely on some optional feature (like the registry) and works independently from the used backend? Bye, Tassilo