"critbase" <critb...@critbase.net> writes:

> (setf org-agenda-files '("~/org"))
> (setf org-todo-keywords '((sequence "TODO(t!)" "NOW(n!)" "WAIT(w!)" "|" 
> "DONE(d!)" "CANC(c!)")))
> (setq org-blank-before-new-entry '((heading . nil)
>                                   (plain-list-item . nil)))
> (setq org-capture-templates
>       '(("t" "todo" entry (file+olp+datetree "~/org/superbug.org")
>          "* TODO %?\n%U\n%a"
>        :time-prompt t)))

I do not have your ~/org/superbug.org file, so I instead used an empty
file. I did the following:

1. Create new file /tmp/bug.el with the following contents:
(setf org-todo-keywords '((sequence "TODO(t!)" "NOW(n!)" "WAIT(w!)" "|" 
"DONE(d!)" "CANC(c!)")))
(setq org-blank-before-new-entry '((heading . nil)
                                   (plain-list-item . nil)))
(setq org-capture-templates
      '(("t" "todo" entry (file+olp+datetree "/tmp/bug.org")
         "* TODO %?\n%U\n%a"
         :time-prompt t)))
2. cd /path/to/org/git/repo
3. make repro REPRO_ARGS="-l /tmp/bug.el"
4. M-x org-capture RET t +1 RET test C-c C-c
5. C-x C-f /tmp/bug.org
6. Observe

* 2025
** 2025-05 May
*** 2025-05-04 Sunday
**** TODO test
[2025-05-04 Sun 13:51]

No issues on my side using the latest main branch (Org 9.8-pre)

-- 
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>

Reply via email to