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).
This commit is contained in:
Lin Sun 2020-01-16 16:08:54 -08:00 committed by Paul Eggert
parent f18c78e611
commit a36495da1e

View file

@ -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)))