On 20/05/2023 18:04, Ihor Radchenko wrote:
I am unable to reproduce. Could you please try to detail all the steps more precisely, starting from emacs -Q?
I have been able to create a minimal set of init.el and WORK.org which allows me to reproduce the problem: 1) start Emacs 2) F6 (shortcut for capture) 3) x 4) create a task in the capture buffer 5) press C-c C-q and enjoy the loop 6) C-g breaks the loop OTOH, using t at step 3 works well. As indicated, the only difference between the remplates x and t is that x uses 2 levels of heading, whereas t only uses one. --- WORK.org ;; -*- coding: utf-8 -*- #+TODO: WAIT(w) TODO(t) DELG(d) | DONE(x) #+STARTUP: show2levels hidestars nologrepeat #+ARCHIVE: %s_archive:: * CAPTURE ** Regulars *** TODO [#C] -- Empty CAP.org/CAPTURE SCHEDULED: <2023-05-26 Fri ++1w> ** Cap-X ** WAIT hello :test: ** DONE read "acceptable use" DEADLINE: <2023-05-19 Fri> --- init.el ;; custom variables (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(org-capture-templates '(("x" "Todo (test)" entry (file+olp "/Users/pu/Workcloud/org/WORK.org" "CAPTURE" "Cap-X") "* TODO %^{Task Description}" :prepend t) ("t" "Todo (work)" entry (file+olp "~/Workcloud/org/WORK.org" "CAPTURE")