0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-17 03:36:27 +00:00

org.el (org-tags-expand): Use word delimiters when building the tag search regexp

* org.el (org-tags-expand): Use word delimiters when building
the tag search regexp.

Thanks to Christian Moe for reporting this bug.
This commit is contained in:
Bastien Guerry 2013-04-12 10:45:31 +02:00
parent 78b5dd8d56
commit bccda67ce4

View file

@ -14118,7 +14118,7 @@ When DOWNCASE is non-nil, expand downcased TAGS."
(setq rpl (append (org-uniquify rpl) (assoc tag tal)))
(setq rtnmatch
(replace-match
(concat dir "{" (regexp-opt rpl) "}") t t rtnmatch))))
(concat dir "{\\<" (regexp-opt rpl) "\\>}") t t rtnmatch))))
(if single-as-list
(or (reverse rpl) (list rtnmatch))
rtnmatch))