aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLin Sun2020-01-16 16:08:54 -0800
committerPaul Eggert2020-01-16 16:09:59 -0800
commita36495da1ec1419998c17fd64fb7439eaf940f36 (patch)
treecbfce5ecb49a417dd8af9d9f034704c63ae501a9
parentf18c78e6117fe04370ba4888ddedc8a985cab471 (diff)
downloademacs-a36495da1ec1419998c17fd64fb7439eaf940f36.tar.gz
emacs-a36495da1ec1419998c17fd64fb7439eaf940f36.zip
Fix the error message from makefile-move-to-macro
* lisp/cedet/ede/makefile-edit.el (makefile-macro-file-list): regexp-quote the param in makefile-move-to-macro (Bug#39094).
-rw-r--r--lisp/cedet/ede/makefile-edit.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/cedet/ede/makefile-edit.el b/lisp/cedet/ede/makefile-edit.el
index b68d6712bb3..218e75c0a8a 100644
--- a/lisp/cedet/ede/makefile-edit.el
+++ b/lisp/cedet/ede/makefile-edit.el
@@ -78,7 +78,8 @@
78If NEXT is non-nil, move to the next occurrence of MACRO." 78If NEXT is non-nil, move to the next occurrence of MACRO."
79 (let ((oldpt (point))) 79 (let ((oldpt (point)))
80 (when (not next) (goto-char (point-min))) 80 (when (not next) (goto-char (point-min)))
81 (if (re-search-forward (concat "^\\s-*" macro "\\s-*[+:?]?=") nil t) 81 (if (re-search-forward (concat "^\\s-*" (regexp-quote macro) "\\s-*[+:?]?=")
82 nil t)
82 t 83 t
83 (goto-char oldpt) 84 (goto-char oldpt)
84 nil))) 85 nil)))