diff options
author | Lin Sun <lin.sun@zoom.us> | 2020-01-16 16:08:54 -0800 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2020-01-17 10:15:23 +0200 |
commit | 4453acbdc987130e9967ef7afe90359ad7a48987 (patch) | |
tree | 409793c9a902d0212ddd9a148eebe9e0283b9056 /lisp | |
parent | 8d091f7fc20a70efd55aad688acc00490f1fe0cc (diff) | |
download | emacs-4453acbdc987130e9967ef7afe90359ad7a48987.tar.gz |
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).
(cherry picked from commit a36495da1ec1419998c17fd64fb7439eaf940f36)
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/cedet/ede/makefile-edit.el | 3 |
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 @@ If NEXT is non-nil, move to the next occurrence of MACRO." (let ((oldpt (point))) (when (not next) (goto-char (point-min))) - (if (re-search-forward (concat "^\\s-*" macro "\\s-*[+:?]?=") nil t) + (if (re-search-forward (concat "^\\s-*" (regexp-quote macro) "\\s-*[+:?]?=") + nil t) t (goto-char oldpt) nil))) |