forked from mirrors/org-mode
org.el (org-tags-expand): Use `with-syntax-table'
* org.el (org-tags-expand): Use `with-syntax-table'.
This commit is contained in:
parent
9deb5027e2
commit
f0c2a68056
|
@ -14147,9 +14147,10 @@ When DOWNCASE is non-nil, expand downcased TAGS."
|
||||||
(modify-syntax-entry ?@ "w" stable)
|
(modify-syntax-entry ?@ "w" stable)
|
||||||
(modify-syntax-entry ?_ "w" stable)
|
(modify-syntax-entry ?_ "w" stable)
|
||||||
(while (and tml
|
(while (and tml
|
||||||
(string-match
|
(with-syntax-table stable
|
||||||
(concat "\\(?1:[+-]?\\)\\(?2:\\<"
|
(string-match
|
||||||
(regexp-opt tml) "\\>\\)") rtnmatch))
|
(concat "\\(?1:[+-]?\\)\\(?2:\\<"
|
||||||
|
(regexp-opt tml) "\\>\\)") rtnmatch)))
|
||||||
(let* ((dir (match-string 1 rtnmatch))
|
(let* ((dir (match-string 1 rtnmatch))
|
||||||
(tag (match-string 2 rtnmatch))
|
(tag (match-string 2 rtnmatch))
|
||||||
(tag (if downcased (downcase tag) tag)))
|
(tag (if downcased (downcase tag) tag)))
|
||||||
|
|
Loading…
Reference in New Issue