emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master a36495d: Fix the error message from makefile-move-to-macro


From: Paul Eggert
Subject: master a36495d: Fix the error message from makefile-move-to-macro
Date: Thu, 16 Jan 2020 19:10:04 -0500 (EST)

branch: master
commit a36495da1ec1419998c17fd64fb7439eaf940f36
Author: Lin Sun <address@hidden>
Commit: Paul Eggert <address@hidden>

    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).
---
 lisp/cedet/ede/makefile-edit.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/cedet/ede/makefile-edit.el b/lisp/cedet/ede/makefile-edit.el
index b68d671..218e75c 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]