diff options
author | Bastien Guerry <bzg@altern.org> | 2014-03-18 17:23:45 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2014-03-18 17:23:45 +0100 |
commit | c16e09e158367fdf7191f80c5b6a2d788ed099eb (patch) | |
tree | 40de2b7ac4519af678723182596a1f655facb14e | |
parent | 03bcfbe3d0dfdf934002c0f72c141e65e4267e0a (diff) | |
download | org-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.el | 3 |
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)) |