mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 18:36:26 +00:00
Revert "org-capture.el: Don't throw an error abusively"
This reverts commit 26ba4f7d7f
.
This commit is contained in:
parent
26ba4f7d7f
commit
0b9fcc603f
|
@ -1576,11 +1576,11 @@ The template may still contain \"%?\" for cursor positioning."
|
|||
annotation
|
||||
(org-capture-get :annotation)
|
||||
;; When immediately finishing and %a cannot be
|
||||
;; expanded, warn the user:
|
||||
;; expanded, through a user error:
|
||||
(if (org-capture-get :immediate-finish)
|
||||
(warn "Missing initial annotation in this template: %s"
|
||||
(replace-regexp-in-string
|
||||
"\n" " " (org-capture-get :template)))
|
||||
(user-error "Missing initial annotation in this template: %s"
|
||||
(replace-regexp-in-string
|
||||
"\n" " " (org-capture-get :template)))
|
||||
""))))
|
||||
;; Is the link empty? Then we do not want it...
|
||||
(if (equal a "[[]]") "" a)))
|
||||
|
|
Loading…
Reference in a new issue