From: Ihor Radchenko <yantar92@posteo.net>
To: Charles Pence <charles@charlespence.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: BUG: org-todo-keywords-for-agenda is nil in custom agenda view
Date: Wed, 29 May 2024 08:32:09 +0000 [thread overview]
Message-ID: <87ttihc92u.fsf@localhost> (raw)
In-Reply-To: <87ed9pnjhk.fsf@charlespence.net>
Charles Pence <charles@charlespence.net> writes:
> I was requested by the maintainer of org-modern to report this bug upstream. It looks like there’s a regression where org-todo-keywords-for-agenda is incorrectly set to nil during the display of custom agenda command views. This breaks org-modern’s TODO formatting (as well as other things, I assume).
>
> You can find a reasonably minimal config that will reproduce the bug with emacs -Q here:
>
> https://github.com/minad/org-modern/discussions/211
Thanks for reporting!
Please note that `org-todo-keywords-for-agenda' is a global variable
that is accumulating todo keywords in all the files contributing to
current agenda block. It is not guaranteed to contain all the keywords
in current agenda buffer - the value is cleaned every time a new agenda
block is computed, and can only be relied upon immediately after
building a single agenda block, not even multiple blocks.
Agenda stores information about todo keywords in the text properties for
each individual entry - see 'org-todo-regexp and 'org-not-done-regexp
text properties, which contain specific regexps to match todo/done
keywords specific to the buffer each agenda entry is coming from
(remember that keywords may or may not be the same in different buffers,
and that some keyword in one buffer may not be a keyword in another buffer).
Not a bug.
Canceled.
--
Ihor Radchenko // yantar92,
Org mode contributor,
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>
prev parent reply other threads:[~2024-05-29 8:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-26 7:02 BUG: org-todo-keywords-for-agenda is nil in custom agenda view Charles Pence
2024-05-29 8:32 ` Ihor Radchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ttihc92u.fsf@localhost \
--to=yantar92@posteo.net \
--cc=charles@charlespence.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).