* lisp/org-capture.el (org-capture): Ignore errors when creating a link.

Patch by Tassilo Horn.
This commit is contained in:
Carsten Dominik 2011-05-24 13:39:56 +02:00
parent 438536f615
commit af7aefe945
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ bypassed."
(annotation (if (and (boundp 'org-capture-link-is-already-stored)
org-capture-link-is-already-stored)
(plist-get org-store-link-plist :annotation)
(org-store-link nil)))
(ignore-errors (org-store-link nil))))
(initial (and (org-region-active-p)
(buffer-substring (point) (mark))))
(entry (org-capture-select-template keys)))