From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81721 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.gnus.general Subject: Re: `C-u SPC' vs `/ o' odd behaviour Date: Wed, 11 Apr 2012 20:24:46 +0200 Message-ID: <857gxmdt3l.fsf@iznogoud.viz> References: <877gxm36al.fsf@dancingfrog.co.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334168715 13085 80.91.229.3 (11 Apr 2012 18:25:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2012 18:25:15 +0000 (UTC) Cc: ding@gnus.org To: Matt Ford Original-X-From: ding-owner+M30000@lists.math.uh.edu Wed Apr 11 20:25:14 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SI2EC-0005wI-Rt for ding-account@gmane.org; Wed, 11 Apr 2012 20:25:13 +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 1SI2Dz-0003lA-UI; Wed, 11 Apr 2012 13:24:59 -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 1SI2Dy-0003l1-Tx for ding@lists.math.uh.edu; Wed, 11 Apr 2012 13:24:58 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SI2Dv-0001mk-0v for ding@lists.math.uh.edu; Wed, 11 Apr 2012 13:24:56 -0500 Original-Received: from mx14.lb01.inode.at ([62.99.145.16] helo=mx.inode.at) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1SI2Ds-0004XM-Pp for ding@gnus.org; Wed, 11 Apr 2012 20:24:52 +0200 Original-Received: from [85.127.92.132] (port=2296 helo=iznogoud.viz) by smartmx-14.inode.at with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SI2Dn-0002ec-Ll; Wed, 11 Apr 2012 20:24:47 +0200 Original-Received: from wolfgang by iznogoud.viz with local (Exim 4.77 (FreeBSD)) (envelope-from ) id 1SI2Dm-0000bP-6s; Wed, 11 Apr 2012 20:24:46 +0200 Mail-Followup-To: Matt Ford , ding@gnus.org In-Reply-To: <877gxm36al.fsf@dancingfrog.co.uk> (Matt Ford's message of "Wed, 11 Apr 2012 11:35:14 +0100") User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (berkeley-unix) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81721 Archived-At: On Wed, Apr 11 2012, Matt Ford wrote: > Essentially with GNUs agent switched on both of my configured IMAP > servers (one google, one exchange) then the behaviour of `/ o' when in > the summary buffer is buggy. > > When in a summary buffer `/ o' reports the maximum UID in the prompt > rather than then correct number of articles and does not return the > requested amount of articles - typically I get far less. I have the following preliminary patch to fix A T with the agent (and the nntp backend). Could you try if it fixes your problem, too ? Wolfgang >From 73a7ab983ec5a850d2f7b786e074d7bbd2fe0bdf Mon Sep 17 00:00:00 2001 From: Wolfgang Jenkner Date: Thu, 23 Feb 2012 03:19:00 +0100 Subject: [PATCH] When the agent is active gnus-summary-refer-thread inserts only headers which are already in the agent cache but it doesn't try to fetch old headers. Check this fix: Using uncached-articles or (car articles) might not be quite right (but then again, it might). --- lisp/gnus-agent.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lisp/gnus-agent.el b/lisp/gnus-agent.el index 540a97b..f8baaf1 100644 --- a/lisp/gnus-agent.el +++ b/lisp/gnus-agent.el @@ -3743,6 +3743,13 @@ has been fetched." (gnus-make-directory (nnheader-translate-file-chars (file-name-directory file) t)) + (when fetch-old + (setq articles (gnus-uncompress-range + (cons (if (numberp fetch-old) + (max 1 (- (car articles) fetch-old)) + 1) + (car (last articles)))))) + ;; Populate temp buffer with known headers (when (file-exists-p file) (with-current-buffer gnus-agent-overview-buffer -- 1.7.9.6