forked from mirrors/org-mode
Fix a docstring
* lisp/org.el (org-get-tag-face): Fix docstring. Small refactoring.
This commit is contained in:
parent
96b4e8f74b
commit
4f3b3ce3d9
14
lisp/org.el
14
lisp/org.el
|
@ -6541,13 +6541,13 @@ When FACE-OR-COLOR is not a string, just return it."
|
|||
'org-priority)
|
||||
'font-lock-fontified t)))))
|
||||
|
||||
(defun org-get-tag-face (kwd)
|
||||
"Get the right face for a TODO keyword KWD.
|
||||
If KWD is a number, get the corresponding match group."
|
||||
(if (numberp kwd) (setq kwd (match-string kwd)))
|
||||
(or (org-face-from-face-or-color
|
||||
'tag 'org-tag (cdr (assoc kwd org-tag-faces)))
|
||||
'org-tag))
|
||||
(defun org-get-tag-face (tag)
|
||||
"Get the right face for TAG.
|
||||
If TAG is a number, get the corresponding match group."
|
||||
(let ((tag (if (wholenump tag) (match-string tag) tag)))
|
||||
(or (org-face-from-face-or-color
|
||||
'tag 'org-tag (cdr (assoc kwd org-tag-faces)))
|
||||
'org-tag)))
|
||||
|
||||
(defun org-unfontify-region (beg end &optional maybe_loudly)
|
||||
"Remove fontification and activation overlays from links."
|
||||
|
|
Loading…
Reference in a new issue