From 035087777d0b4d91373466ed1a56f357c63f5465 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Sun, 12 Jan 2014 09:56:41 +0100 Subject: [PATCH] org.el (org-store-link): When a link has been stored, always returns it * org.el (org-store-link): When a link has been stored, always returns it. (Storing links from the agenda are broken otherwise.) --- lisp/org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index a11baddbf..7c1b291f3 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9608,8 +9608,8 @@ active region." (message "Stored: %s" (or desc link)) (when custom-id (setq link (concat "file:" (abbreviate-file-name - (buffer-file-name)) "::#" custom-id)) - (push (list link desc) org-stored-links))))))) + (buffer-file-name)) "::#" custom-id))) + (push (list link desc) org-stored-links)))))) (defun org-store-link-props (&rest plist) "Store link properties, extract names and addresses."