Explorar el Código

org.el (org-tags-expand): Use `with-syntax-table'

* org.el (org-tags-expand): Use `with-syntax-table'.
Bastien Guerry hace 11 años
padre
commit
f0c2a68056
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      lisp/org.el

+ 4 - 3
lisp/org.el

@@ -14147,9 +14147,10 @@ When DOWNCASE is non-nil, expand downcased TAGS."
 	(modify-syntax-entry ?@ "w" stable)
 	(modify-syntax-entry ?_ "w" stable)
 	(while (and tml
-		    (string-match
-		     (concat "\\(?1:[+-]?\\)\\(?2:\\<"
-			     (regexp-opt tml) "\\>\\)") rtnmatch))
+		    (with-syntax-table stable
+		      (string-match
+		       (concat "\\(?1:[+-]?\\)\\(?2:\\<"
+			       (regexp-opt tml) "\\>\\)") rtnmatch)))
 	  (let* ((dir (match-string 1 rtnmatch))
 		 (tag (match-string 2 rtnmatch))
 		 (tag (if downcased (downcase tag) tag)))