Explorar o código

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.)
Bastien Guerry %!s(int64=11) %!d(string=hai) anos
pai
achega
035087777d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      lisp/org.el

+ 2 - 2
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."