branch: externals-release/org
commit f8de8cf72a995549f208727b50dd47aab7465f63
Author: Derek Chen-Becker <[email protected]>
Commit: Ihor Radchenko <[email protected]>

    Fix org-set-font-lock-defaults priority cookie regular expression
    
    * lisp/org.el (org-set-font-lock-defaults): Replace hard-coded priority
    cookie regular expression with one based on `org-priority-value-regexp' in
    order to properly handle double-digit numeric values.
---
 lisp/org.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 5fe7667978..959d47d147 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6203,8 +6203,9 @@ needs to be inserted at a specific position in the 
font-lock sequence.")
           ;; Apply this last, after all the markup is highlighted, so
           ;; that even "bright" markup will become dim.
          (list (format
-                "^\\*+\\(?: +%s\\)?\\(?: +\\[#[A-Z0-9]\\]\\)? 
+\\(?9:%s\\)\\(?: \\|$\\)"
+                "^\\*+\\(?: +%s\\)?\\(?: +\\[#\\(?:%s\\)\\]\\)? 
+\\(?9:%s\\)\\(?: \\|$\\)"
                 org-todo-regexp
+                 org-priority-value-regexp
                 org-comment-string)
                '(9 'org-special-keyword prepend))
           '(org-activate-folds))))

Reply via email to