Hi,I am living with this bug since a long time, I thought I was asking maybe something very special.
But then I find on a org-capture that goes to an inbox entry: 1. if prepend is nil, does not work on the first time (?) 2. works when number of entries is greater than 1 3. never works when prepend is tFind attached org-capture-cookies-bug.org which I think it makes it very easy to reproduce. Tested with ~emacs -Q~ with orgmode 9.7.10 and emacs-30 branch with commit 44c2614
Cheers, pinmacs [1] I mean, like running this function: (org-update-statistics-cookies nil)
#+TODO: TODO | DONE
* inbox ~:prepend nil~ works except first element (?) [3/3] [100%]
:PROPERTIES:
:CUSTOM_ID: inbox_prepend_nil
:END:
** DONE Test title
** DONE Test title
** DONE Test title
* inbox ~:prepend t~ never works (?) [0/0] [0%]
:PROPERTIES:
:CUSTOM_ID: inbox_prepend_t
:END:
** DONE Test title
** DONE Test title
** DONE Test title
* run this
with ~:prepend nil~, cookies are updated, *except for some reason, the first item*
#+name: prepend_t
#+begin_src emacs-lisp :results none
(defun my/goto ()
(org-link-open-from-string "[[#inbox_prepend_nil]]"))
(setq org-capture-templates
'(
("t" "test" entry (function my/goto) "** DONE Test title" :immediate-finish t :prepend nil)
))
;; run org-capture noninteractive
(org-capture nil "t")
#+end_src
with ~:prepend t~, cookies are *not* updated
#+name: prepend_nil
#+begin_src emacs-lisp :results none
(defun my/goto ()
(org-link-open-from-string "[[#inbox_prepend_t]]"))
(setq org-capture-templates
'(
("t" "test" entry (function my/goto) "** DONE Test title" :immediate-finish t :prepend t)
))
;; run org-capture noninteractive
(org-capture nil "t")
#+end_src
OpenPGP_0x9D64597C3A982DCA.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
