GNU bug report logs - #39094
27.0.50; ; [PATCH] * makefile-edit.el: regexp-quote the param in makefile-move-to-macro to avoid error message

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: <lin.sun@HIDDEN>; Keywords: patch; merged with #38014, #38416; dated Sun, 12 Jan 2020 08:07:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 38014 38416 39094. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> Full text available.

Message received at submit <at>

Received: (at submit) by; 12 Jan 2020 08:06:54 +0000
From debbugs-submit-bounces <at> Sun Jan 12 03:06:54 2020
Received: from localhost ([]:56994
	by with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1iqYGr-0006CH-EW
	for submit <at>; Sun, 12 Jan 2020 03:06:54 -0500
Received: from ([]:50540)
 by with esmtp (Exim 4.84_2)
 (envelope-from <lin.sun@HIDDEN>) id 1iqYGp-0006CA-Ut
 for submit <at>; Sun, 12 Jan 2020 03:06:52 -0500
Received: from ([2001:470:142:3::10]:38195)
 by with esmtp (Exim 4.90_1)
 (envelope-from <lin.sun@HIDDEN>) id 1iqYGo-0005sR-Uo
 for bug-gnu-emacs@HIDDEN; Sun, 12 Jan 2020 03:06:51 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED
 autolearn=disabled version=3.3.2
Received: from Debian-exim by with spam-scanned (Exim 4.71)
 (envelope-from <lin.sun@HIDDEN>) id 1iqYGn-0008Rw-IK
 for bug-gnu-emacs@HIDDEN; Sun, 12 Jan 2020 03:06:50 -0500
Received: from ([2607:f8b0:4864:20::436]:35503)
 by with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <lin.sun@HIDDEN>) id 1iqYGn-0008O3-92
 for bug-gnu-emacs@HIDDEN; Sun, 12 Jan 2020 03:06:49 -0500
Received: by with SMTP id i23so3336115pfo.2
 for <bug-gnu-emacs@HIDDEN>; Sun, 12 Jan 2020 00:06:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=google;
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20161025;
X-Gm-Message-State: APjAAAUzSwy0IeD02mBOqAEpxE6FbhXDh85UgiF22NCPAk4a8D2du2mq
X-Google-Smtp-Source: APXvYqzncRNVfmgh+rvGAvaQMvczEaJBbolxzaq7GaapG/pqj771/dpv0tU8ptq2+uYx5pCfYtRWUw==
X-Received: by 2002:a63:a53:: with SMTP id z19mr14895570pgk.267.1578816407274; 
 Sun, 12 Jan 2020 00:06:47 -0800 (PST)
Received: from DESKTOP71C1N5K ([])
 by with ESMTPSA id p35sm8971901pgl.47.2020.
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 12 Jan 2020 00:06:46 -0800 (PST)
From: <lin.sun@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>,
	"'Eli Zaretskii'" <eliz@HIDDEN>
References: <5ddfcabc.1c69fb81.626d0.c7a5@HIDDEN>
In-Reply-To: <5ddfcabc.1c69fb81.626d0.c7a5@HIDDEN>
Subject: 27.0.50; ; [PATCH] * makefile-edit.el: regexp-quote the param in
 makefile-move-to-macro to avoid error message
Date: Sun, 12 Jan 2020 16:06:43 +0800
Message-ID: <000201d5c91f$3bac3b90$b304b2b0$>
MIME-Version: 1.0
Content-Type: multipart/mixed;
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQJLQUOmqDIbovY9wIUTc2SKtL4kWKb7uLeQ
Content-Language: en-us
X-detected-operating-system: by Genre and OS details not
X-Received-From: 2607:f8b0:4864:20::436
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <>
List-Unsubscribe: <>, 
 <mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>, 
 <mailto:debbugs-submit-request <at>>
Errors-To: debbugs-submit-bounces <at>
Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
X-Spam-Score: -2.3 (--)

This is a multipart message in MIME format.

Content-Type: text/plain;
Content-Transfer-Encoding: quoted-printable

Hi Eli,

The attachment is a patch to fix the complaint message from =
`makefile-move-to-macro' for the param for re-search-forward isn't =
To reproduce the issue, just run follow commands in your shell,
$ echo 'AM_LIBTMP_LIBS:=3D$(shell X \--libs)' > /tmp/
$ emacs -Q --eval '(progn (global-ede-mode t)(semantic-mode t)(find-file =

Could you please review and apply the patch?=20
Thank you.

Lin Sun

Content-Type: application/octet-stream;
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;

From 9dfa710fd57095cceb025f665e71772f93e6bbe4 Mon Sep 17 00:00:00 2001=0A=
From: "lin.sun" <lin.sun@HIDDEN>=0A=
Date: Fri, 1 Nov 2019 10:25:17 +0800=0A=
Subject: [PATCH] Fix the error message from `makefile-move-to-macro'=0A=
* makefile-edit.el: regexp-quote the param in makefile-move-to-macro.=0A=
With `(global-ede-mode t)' and `(semantic-mode t)' enabled, error=0A=
happened when open a which has '$' or '\\' in its macro=0A=
list. Simply create a include the line=0A=
'AM_LIBTMP_LIBS:=3D$(shell X \--libs)', open the file with ede and=0A=
semantic mode enabled will trigger this issue. Escape the param for=0A=
re-search-forward in `makefile-move-to-macro' can fix this.=0A=
 lisp/cedet/ede/makefile-edit.el | 2 +-=0A=
 1 file changed, 1 insertion(+), 1 deletion(-)=0A=
diff --git a/lisp/cedet/ede/makefile-edit.el =
index 7d8a44b..add1675 100644=0A=
--- a/lisp/cedet/ede/makefile-edit.el=0A=
+++ b/lisp/cedet/ede/makefile-edit.el=0A=
@@ -78,7 +78,7 @@ makefile-move-to-macro=0A=
 If NEXT is non-nil, move to the next occurrence of MACRO."=0A=
   (let ((oldpt (point)))=0A=
     (when (not next) (goto-char (point-min)))=0A=
-    (if (re-search-forward (concat "^\\s-*" macro "\\s-*[+:?]?=3D") nil =
+    (if (re-search-forward (concat "^\\s-*" (regexp-quote macro) =
"\\s-*[+:?]?=3D") nil t)=0A=
       (goto-char oldpt)=0A=
-- =0A=


Acknowledgement sent to <lin.sun@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#39094; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2020 14:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.