Alyssa Ross <[email protected]> writes:
>> We will support such format in future, but not yet.
>> Currently, this will produce undefined behavior.
>> See
>> https://list.orgmode.org/orgmode/canvbq5mau9fk-43sms4x5kvz-jtsszfmrgzrh7eusptnrzh...@mail.gmail.com/
>
> I see. So is it a documentation bug that the example given by the Org
> Mode manual is the following?
>
> (setq org-capture-templates
> '(("t" "Todo" entry (file+headline "~/org/gtd.org" "Tasks")
> "* TODO %?\n %i\n %a")
> ("j" "Journal" entry (file+datetree "~/org/journal.org")
> "* %?\nEntered on %U\n %i\n %a")))
Yes, because file+datetree is deprecated.
Although, after checking again, it does look like file+olp+datetree
specifically should support nil just fine, without undefined behavior.
So, I now:
(1) Fixed the manual, on bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=100349411
(2) Fixed another problem with type specification - empty template, on bugfix
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6ca06afb3
(3) Fixed the problem with missing olp value, on main (this one is not
as trivial)
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=7da7d7ea1
Fixed.
> This also isn't providing an outline path for the journal, right? (And
> it produces the same type mismatch warning when I run it with setopt
> after loading org-capture.)
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>