From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bert Burgemeister Subject: [PATCH] Bugfix: org-agenda-open-link Date: Sun, 13 Mar 2011 16:18:44 +0100 Message-ID: <87lj0jf3qj.fsf@ID-264851.user.dfncis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=44709 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PynAK-00011Y-3o for emacs-orgmode@gnu.org; Sun, 13 Mar 2011 11:25:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PynAI-0004wS-Ti for emacs-orgmode@gnu.org; Sun, 13 Mar 2011 11:25:07 -0400 Received: from lo.gmane.org ([80.91.229.12]:56554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PynAI-0004wF-N0 for emacs-orgmode@gnu.org; Sun, 13 Mar 2011 11:25:06 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PynAH-00063I-9U for emacs-orgmode@gnu.org; Sun, 13 Mar 2011 16:25:05 +0100 Received: from port-92-206-14-196.dynamic.qsc.de ([92.206.14.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 Mar 2011 16:25:05 +0100 Received: from trebbu by port-92-206-14-196.dynamic.qsc.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 Mar 2011 16:25:05 +0100 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 * Org-agenda.el (org-agenda-open-link): C-c C-o didn't open links inserted via the `%%( )' mechanism, affecting usability of `%%(org-bbdb-anniversaries). TINYCHANGE --- The bug was apparently introduced in commit ba1e90893d128d8004e4cb6763af692c5a6cd677. -- Bert lisp/org-agenda.el | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 4b4dd68..123668c 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -6742,13 +6742,13 @@ at the text of the entry itself." (+ (point-at-bol) (or (org-get-at-bol 'prefix-length) 0))))) (cond - (buffer - (with-current-buffer buffer - (save-excursion - (save-restriction - (widen) - (goto-char marker) - (org-offer-links-in-entry arg prefix))))) + ((and buffer + (with-current-buffer buffer + (save-excursion + (save-restriction + (widen) + (goto-char marker) + (org-offer-links-in-entry arg prefix)))))) ((or (org-in-regexp (concat "\\(" org-bracket-link-regexp "\\)")) (save-excursion (beginning-of-line 1) -- 1.7.2.3