Hey Lars, On 2025-06-03 09:19, Lars Frantzen wrote: > Is this a bug?
I believe it is. Tracing the function calls, when the priority is explicitly set on a heading, `org-entry-properties' extracts it as a /string/ according to `org-priority-regexp'. Otherwise, the default priority is taken as a /character/ and converted to a string: #+CAPTION: `lisp/org.el/org-entry-properties' #+begin_src emacs-lisp (push (cons "PRIORITY" (if (looking-at org-priority-regexp) (match-string-no-properties 2) (char-to-string org-priority-default))) props) #+end_src This is why the default renders correctly for characters, but not integers (your value of 7 is getting converted to a bell control character escaped as "^G"). Thanks, -- Jacob S. Gordon jacob.as.gor...@gmail.com ====================== Please avoid sending me HTML emails and MS Office documents. https://useplaintext.email/#etiquette https://www.gnu.org/philosophy/no-word-attachments.html