org-capture.el (org-capture): Don't store multiple links over lines in the active...
authorBastien Guerry <bzg@altern.org>
Mon, 25 Mar 2013 22:49:39 +0000 (23:49 +0100)
committerBastien Guerry <bzg@altern.org>
Mon, 25 Mar 2013 22:49:39 +0000 (23:49 +0100)
* org-capture.el (org-capture): Don't store multiple links
over lines in the active region.

Thanks to Matt Lundin for reporting this.

lisp/org-capture.el

index 6a014b4..3eed9ca 100644 (file)
@@ -542,7 +542,7 @@ of the day at point (if any) or the current HH:MM time."
           (annotation (if (and (boundp 'org-capture-link-is-already-stored)
                                org-capture-link-is-already-stored)
                           (plist-get org-store-link-plist :annotation)
-                        (ignore-errors (org-store-link nil))))
+                        (ignore-errors (org-store-link nil t))))
           (entry (or org-capture-entry (org-capture-select-template keys)))
           initial)
       (setq initial (or org-capture-initial