Hi Org, On 2025-03-01 at 22:38 -05, Ken Mankoff <mank...@gmail.com> wrote... > I'm getting an error in *Messages* when I try to generate a monthly > clocktable report. If I remove ":step month" then there is no problem. > > The error is: org-dblock-write:clocktable: Search failed: "^[ > ]*#\\+END:"
I did some debugging with the help of a recent post I saw here https://emacsredux.com/blog/2025/02/03/debugging-emacs-commands/ And it seems like line 3061 of org-clock.el is the cause. It is currently this line from commit 100edaccd1 (Nicolas Goaziou 2018-10-13). (let ((case-fold-search t)) (re-search-forward "^[ \t]*#\\+END:")) I have not seen "#+END:" (with the colon) used in Org. Drawers end with :end:, but this code is not for a drawer. Anyway, if I remove the ":" then the bug goes away. I'd be happy to mail a patch, but I'm wary that this is the correct fix. It seems more likely that I'm doing something else wrong than that nobody else has come across this bug since 2018. -k.