summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2014-03-18 17:23:45 +0100
committerBastien Guerry <bzg@altern.org>2014-03-18 17:23:45 +0100
commitc16e09e158367fdf7191f80c5b6a2d788ed099eb (patch)
tree40de2b7ac4519af678723182596a1f655facb14e
parent03bcfbe3d0dfdf934002c0f72c141e65e4267e0a (diff)
downloadorg-mode-c16e09e158367fdf7191f80c5b6a2d788ed099eb.tar.gz
org-agenda.el (org-agenda-open-link): Bugfix
* org-agenda.el (org-agenda-open-link): Don't throw an error when trying to open a link when the point is on a place that is not associated with a buffer.
-rw-r--r--lisp/org-agenda.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index b7d150b..54529d4 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -8484,7 +8484,8 @@ It also looks at the text of the entry itself."
(org-get-at-bol 'org-marker)))
(buffer (and marker (marker-buffer marker)))
(prefix (buffer-substring (point-at-bol) (point-at-eol)))
- (lkall (org-offer-links-in-entry buffer marker arg prefix))
+ (lkall (and buffer (org-offer-links-in-entry
+ buffer marker arg prefix)))
(lk0 (car lkall))
(lk (if (stringp lk0) (list lk0) lk0))
(lkend (cdr lkall))