Mykhailo Shevchuk <[email protected]> writes:

> Disclosure up front: the patch and this message were generated by an LLM and
> edited by me.
>
> The agenda skip functions silently ignore TODO keywords that begin
> or end with a character that is not a word constituent, such as
> "[ ]" and "[X]".
>
> MWE: in emacs -Q with Org 9.8.8 (also present on current bugfix,
> c75ffe4):
>
>   (let ((org-todo-keywords '((sequence "[ ]" "|" "[X]"))))
>     (with-temp-buffer
>       (insert "* [ ] hello\n")
>       (org-mode)
>       (goto-char (point-min))
>       (list (org-get-todo-state)
>             (org-agenda-skip-entry-if 'todo '("[ ]")))))
>
>   => ("[ ]" nil)
>
> Expected ("[ ]" 13).
>
> Org recognized the keyword, but the agenda skip function did not. The same 
> holds
> for 'nottodo, 'todo-unblocked and 'nottodo-unblocked, and for the 'todo / 
> 'done
> class symbols when every keyword is bracketed.
>
> The cause is in `org-agenda-skip-if-todo', which matches with
>
>   (regexp-opt keywords 'words)

Thanks for reporting!
The patch looks reasonable, but we currently cannot accept LLM-generated
patches as a matter of temporary GNU policy. See
https://orgmode.org/worg/org-contribute.html#llm

Could you rewrite the commit message in your own words and leave just
the most basic fix without tests? That way, I will be able to merge the
patch.

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