From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Morgan Subject: Bug: Can't follow link to old Gnus nndoc article [6.34trans] Date: Sun, 07 Mar 2010 21:32:40 -0800 Message-ID: <87zl2jqsxz.fsf@ziiuu.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NoVaB-0001Gc-Gw for emacs-orgmode@gnu.org; Mon, 08 Mar 2010 00:32:47 -0500 Received: from [140.186.70.92] (port=56032 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NoVaA-0001Fq-B0 for emacs-orgmode@gnu.org; Mon, 08 Mar 2010 00:32:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NoVa8-0003fn-OQ for emacs-orgmode@gnu.org; Mon, 08 Mar 2010 00:32:46 -0500 Received: from mail-yw0-f178.google.com ([209.85.211.178]:37193) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NoVa8-0003fe-Lt for emacs-orgmode@gnu.org; Mon, 08 Mar 2010 00:32:44 -0500 Received: by ywh8 with SMTP id 8so2501478ywh.6 for ; Sun, 07 Mar 2010 21:32:43 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= I'm using development versions of Emacs and Org mode: Emacs : GNU Emacs 23.1.90.1 (i686-pc-linux-gnu, GTK+ Version 2.18.3) of 2010-03-03 on enif Package: Org-mode version 6.34trans When I try to follow (with `C-c C-o') a link to an already read article in a Gnus nndoc group, I get an error message like this: Couldn't fetch article <000001cabb88$b67f8fc0$237eaf40$@email.ne.jp> Here is the link location for that message: gnus:nndoc+/home/tlm/Mail/RMAIL-201003:RMAIL-201003#000001cabb88$b67f8fc0$237eaf40$@email.ne.jp I'm able to follow the link if the group is already open with all old articles visible. I've attached a patch which is probably not a proper fix. It solves the problem by making `org-gnus-follow-link' read the entire group from the start instead of beginning with one article and trying more if the group fails to open. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Make-org-gnus-follow-link-immediately-read-all-artic.patch >From 271f6880df3227764b090e5ad9b1c6ab16deee76 Mon Sep 17 00:00:00 2001 From: Thomas Morgan Date: Sun, 7 Mar 2010 20:43:41 -0800 Subject: [PATCH] Make `org-gnus-follow-link' immediately read all articles in group instead of starting with 1. --- lisp/org-gnus.el | 17 ++++------------- 1 files changed, 4 insertions(+), 13 deletions(-) diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el index dd357b7..370e535 100644 --- a/lisp/org-gnus.el +++ b/lisp/org-gnus.el @@ -169,19 +169,10 @@ If `org-store-link' was called with a prefix arg the meaning of (cond ((and group article) (gnus-activate-group group t) (condition-case nil - (let ((articles 1) - group-opened) - (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."))) + (if (gnus-group-read-group t nil group) + (gnus-summary-goto-article article nil t) + (message "Couldn't follow gnus link. %s" + "The summary couldn't be opened.")) (quit (message "Couldn't follow gnus link. %s" "The linked group is empty.")))) (group (gnus-group-jump-to-group group)))) -- 1.6.3.3 --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--