branch: externals-release/org
commit 6ca06afb38f46494dd1a788a3e2d141bf0fb4395
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    org-capture-templates: Fix bug :type specification
    
    * lisp/org-capture.el (org-capture-templates): Specify that template
    can be nil, standing for "".
    
    Reported-by: Omar AntolĂ­n Camarena <o...@matem.unam.mx>
    Link: https://orgmode.org/list/877bzc62h7....@alyssa.is
---
 lisp/org-capture.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 156f4ec810..c3e86b4eda 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -461,6 +461,7 @@ you can escape ambiguous cases with a backward slash, e.g., 
\\%i."
                                  (function :tag "  Function")))
                    (choice :tag "Template       "
                            (string)
+                            (const :tag "Empty" nil)
                            (list :tag "File"
                                  (const :format "" file)
                                  (file :tag "Template file"))

Reply via email to