From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: Problem with org-gnus-follow-link Date: Tue, 09 Dec 2008 17:58:53 +0100 Message-ID: <8763lt8euq.fsf@thinkpad.tsdh.de> References: 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 1LA5vS-0000uu-Ji for emacs-orgmode@gnu.org; Tue, 09 Dec 2008 11:59:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LA5vQ-0000uW-OL for emacs-orgmode@gnu.org; Tue, 09 Dec 2008 11:59:09 -0500 Received: from [199.232.76.173] (port=60347 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LA5vQ-0000uT-I8 for emacs-orgmode@gnu.org; Tue, 09 Dec 2008 11:59:08 -0500 Received: from main.gmane.org ([80.91.229.2]:43418 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 1LA5vP-0000lQ-Uc for emacs-orgmode@gnu.org; Tue, 09 Dec 2008 11:59:08 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LA5vH-0006CQ-Lk for emacs-orgmode@gnu.org; Tue, 09 Dec 2008 16:59:00 +0000 Received: from dhcp171.uni-koblenz.de ([141.26.71.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Dec 2008 16:58:59 +0000 Received: from tassilo by dhcp171.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Dec 2008 16:58:59 +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 --=-=-= Ulf Stegemann writes: Hi Ulf, > After a bit of investigation I found out that the problem is > `gnus-group-read-group' which is called by `org-gnus-follow-link'. > `gnus-group-read-group' does not return an article but nil if the last > message of the group has been deleted (this is re-producable here). Not really. But it won't open the Summary buffer if the last article was deleted. Please try this patch and report back if it works. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=foo.patch diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el index 1058b0d..5adfd7e 100644 --- a/lisp/org-gnus.el +++ b/lisp/org-gnus.el @@ -144,6 +144,7 @@ If `org-store-link' was called with a prefix arg the meaning of (defun org-gnus-open (path) "Follow the Gnus message or folder link specified by PATH." + (setq path (substring-no-properties path)) (let (group article) (if (not (string-match "\\`\\([^#]+\\)\\(#\\(.*\\)\\)?" path)) (error "Error in Gnus link")) @@ -157,13 +158,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-group-read-group 1 nil group) - (gnus-summary-goto-article - (if (string-match "[^0-9]" article) - article - (string-to-number article)) - nil t)) - (group (gnus-group-jump-to-group group)))) + (gnus-group-read-group t nil group) + (gnus-summary-goto-article article nil t)) + (group (gnus-group-jump-to-group group)))) (defun org-gnus-no-new-news () "Like `M-x gnus' but doesn't check for new news." --=-=-= Bye, Tassilo --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--