emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] Bugfix: org-agenda-open-link


From: Bert Burgemeister
Subject: [O] [PATCH] Bugfix: org-agenda-open-link
Date: Sun, 13 Mar 2011 16:18:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

* 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]