From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Stegemann Subject: Re: Problem with org-gnus-follow-link Date: Thu, 11 Dec 2008 14:52:28 +0100 Message-ID: References: <8763lt8euq.fsf@thinkpad.tsdh.de> <87oczjg85v.fsf@thinkpad.tsdh.de> <87zlj39dqj.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LAly6-0008FD-Q3 for emacs-orgmode@gnu.org; Thu, 11 Dec 2008 08:52:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LAly4-00088B-2D for emacs-orgmode@gnu.org; Thu, 11 Dec 2008 08:52:42 -0500 Received: from [199.232.76.173] (port=42904 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAly3-00087q-Tb for emacs-orgmode@gnu.org; Thu, 11 Dec 2008 08:52:39 -0500 Received: from main.gmane.org ([80.91.229.2]:48405 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LAly3-0002hC-9B for emacs-orgmode@gnu.org; Thu, 11 Dec 2008 08:52:39 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LAly0-0005fu-NV for emacs-orgmode@gnu.org; Thu, 11 Dec 2008 13:52:36 +0000 Received: from london.zeitform.net ([146.140.213.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Dec 2008 13:52:36 +0000 Received: from ulf-news by london.zeitform.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Dec 2008 13:52:36 +0000 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 Hi Tassilo, Tassilo Horn wrote: > Ulf Stegemann writes: > >>> please try this one: >>> >>> diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el >>> index 7231538..05bed5b 100644 >>> --- a/lisp/org-gnus.el >>> +++ b/lisp/org-gnus.el >>> @@ -157,12 +157,9 @@ If `org-store-link' was called with a prefix arg the meaning of >>> (funcall (cdr (assq 'gnus org-link-frame-setup))) >>> (if gnus-other-frame-object (select-frame gnus-other-frame-object)) >>> (cond ((and group article) >>> + (gnus-activate-group group t) >>> (gnus-group-read-group 1 nil group) >>> - (gnus-summary-goto-article >>> - (if (string-match "[^0-9]" article) >>> - article >>> - (string-to-number article)) >>> - nil t)) >>> + (gnus-summary-goto-article article nil t)) >>> (group (gnus-group-jump-to-group group)))) >>> >>> (defun org-gnus-no-new-news () >> >> Unfortunately, it doesn't work. The behaviour is the same as with the >> original version: jumping to the article works if the last article in >> the group in question hasn't been deleted, otherwise it fails. > > I tried exactly that and it solved the problem for me. Did you apply > the patch and eval the function thereafter? Or did you recompile > org-mode if you restarted emacs for the test? huh, that's strange. The patched version was really in effect here when the tests failed. I've just updated Gnus to the latest (CVS) version but again, it's not fixed for me ... and maybe it cannot be fixed. The whole subject reminds me of the old Gnus "wrong article count problem". AFAIK there was never a solution for this apart from moving articles into groups or temporarily renaming groups (see also `gnus-group-compact-group'). Ulf