summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Johansson <mejlaandersj@gmail.com>2019-01-31 15:04:30 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2019-02-02 22:50:07 +0100
commit4761fab2ff6a2f893c21c404a4ef48eae5eb3078 (patch)
tree8820e876c71471942f4dddcee132d73cb6932787
parent7c00e4fbd8d468817b57f094c453fc477d76ff3b (diff)
downloadorg-mode-4761fab2ff6a2f893c21c404a4ef48eae5eb3078.tar.gz
org-faces: Use regexp-opt in org-set-tag-faces
* org-faces.el (org-set-tag-faces): Use appropriate call to regexp-opt TINYCHANGE
-rw-r--r--lisp/org-faces.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-faces.el b/lisp/org-faces.el
index 1ba5b5e..8e9726c 100644
--- a/lisp/org-faces.el
+++ b/lisp/org-faces.el
@@ -311,7 +311,7 @@ determines if it is a foreground or a background color."
(if (not value)
(setq org-tags-special-faces-re nil)
(setq org-tags-special-faces-re
- (concat ":\\(" (mapconcat 'car value "\\|") "\\):"))))
+ (concat ":" (regexp-opt (mapcar #'car value) t) ":"))))
(defface org-checkbox '((t :inherit bold))
"Face for checkboxes."