branch: externals/org
commit cc36545264adc06f9c9492a7390471dc1d0a6b70
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

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

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index b54cd02f0f..f37f6b426c 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -496,7 +496,9 @@ you can escape ambiguous cases with a backward slash, e.g., 
\\%i."
                            (list :tag "File [ & Outline path ] & Date tree"
                                  (const :format "" file+olp+datetree)
                                  ,file-variants
-                                 ,olp-variants)
+                                  ,(append
+                                    olp-variants
+                                    ((const :tag "Date tree at top level" 
nil))))
                            (list :tag "File & function"
                                  (const :format "" file+function)
                                  ,file-variants

Reply via email to