I have a fix for this but I want to double check if we should update the
doc. The current doc for `org-heading-components' states that the
priority element is:

 the priority character, like ?A, or nil if no priority is given

I'm assuming we want to return a priority value, as we've updated that
meaning in the docs. Should I change the sentence to state:

the priority value, like ?A or 42, or nil if no priority is given

A patch is attached with the updated doc, but I can remove that or alter
the wording based on feedback.

Thanks,

Derek


On Sun, Jan 4, 2026 at 11:36 AM Ihor Radchenko <[email protected]> wrote:

> Ihor Radchenko <[email protected]> writes:
>
> > Looks like we are done with all problems with priority cookies.
>
> Well. Not really.
> * test tree
> ** [#10] ten
> ** [#2] two
>
> (nth 3 (org-heading-components))
>
> is still incorrect.
>
> --
> 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>
>


-- 
+---------------------------------------------------------------+
| Derek Chen-Becker                                             |
| GPG Key available at https://keybase.io/dchenbecker and       |
| https://pgp.mit.edu/pks/lookup?search=derek%40chen-becker.org |
| Fngrprnt: EB8A 6480 F0A3 C8EB C1E7  7F42 AFC5 AFEE 96E4 6ACC  |
+---------------------------------------------------------------+

Attachment: 0001-lisp-org.el-Handle-numeric-priorities-in-org-heading.patch
Description: Binary data

Reply via email to