On 2026-02-22 08:14, Ihor Radchenko wrote: > "Jacob S. Gordon" <[email protected]> writes: > >> On 2026-02-06 14:52, Ihor Radchenko wrote: >>> Multiple #+PRIORITY keywords, just like multiple #+TODO keywords, >>> will lead to undefined behavior. Org will only respect one of the >>> keywords in the file. You do not need to worry about this on the >>> individual exporter level. >> >> This probably still doesn’t move the needle, but for posterity it can >> happen with a single ‘#+PRIORITY’ keyword, it just has to disagree >> with the user settings: >> >> ;; init.el >> (setopt org-priority-highest 1 >> org-priority-default 5 >> org-priority-lowest 10) >> >> # main.org >> #+OPTIONS: pri:t >> #+PRIORITIES: 1 3 2 >> #+INCLUDE: included.org >> * TODO [#2] Task >> >> # included.org >> * TODO [#5] Task > > Could you please elaborate?
I just meant that if you export ‘main.org’ to ODT the intermediate buffer will only contain one ‘#+PRIORITY’ keyword, but it includes a priority outside that range, so not everything is styled: >> #+OPTIONS: pri:t >> #+PRIORITIES: 1 3 2 >> * TODO [#5] Task >> * TODO [#2] Task Even though there’s no ambiguity about the limits, you could argue the intermediate buffer is still invalid (e.g., fails ‘org-lint’). Thanks, -- Jacob S. Gordon [email protected] Please don’t send me HTML emails or MS Office/Apple iWork documents. https://useplaintext.email/#etiquette https://www.fsf.org/campaigns/opendocument
