From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: LinSun Newsgroups: gmane.emacs.bugs Subject: bug#38416: 27.0.50; ; [PATCH] * makefile-edit.el: regexp-quote the param in makefile-move-to-macro to avoid error message Date: Thu, 28 Nov 2019 21:25:10 +0800 Message-ID: <5ddfcabc.1c69fb81.626d0.c7a5@mx.google.com> Mime-Version: 1.0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="131682"; mail-complaints-to="usenet@blaine.gmane.org" To: 38416@debbugs.gnu.org, ericludlam@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 28 20:05:52 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iaP6u-000Y8e-Fa for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Nov 2019 20:05:52 +0100 Original-Received: from localhost ([::1]:52468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaP6r-0000Qn-6B for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Nov 2019 14:05:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45684) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaMmu-0003Xk-Ft for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 11:37:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaMmt-0006Th-0X for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 11:37:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53085) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaMms-0006SX-Pm for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 11:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iaMms-0005ti-NG for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 11:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: LinSun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Nov 2019 16:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38416 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" , "ericludlam@gmail.com" Original-Received: via spool by submit@debbugs.gnu.org id=B.157495900522620 (code B ref -1); Thu, 28 Nov 2019 16:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Nov 2019 16:36:45 +0000 Original-Received: from localhost ([127.0.0.1]:59054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iaMmb-0005sm-8M for submit@debbugs.gnu.org; Thu, 28 Nov 2019 11:36:45 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:53277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iaJxK-00010b-IQ for submit@debbugs.gnu.org; Thu, 28 Nov 2019 08:35:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59564) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaJxG-0006R8-EO for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 08:35:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaJnP-0003sP-5X for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 08:25:26 -0500 Original-Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]:38683) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaJnO-0003WF-S1 for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 08:25:23 -0500 Original-Received: by mail-pg1-x531.google.com with SMTP id t3so12480251pgl.5 for ; Thu, 28 Nov 2019 05:25:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zoom.us; s=google; h=message-id:mime-version:date:from:subject:thread-topic:to :content-transfer-encoding; bh=2P5fyAi6Es7xc6b6D5hBZjYabxDlFInZfirP94Dxnl0=; b=chj/A85MQZTJPBx2v1VKO1yYqnY+AGg6ZLWqM0wj+MWzUMaoL7Zk821vPrIRUyk2jg +FqahCvOwvuq/QHyI46nQGmpn87nf/d7Sm8ylHmUnMmiMdtMHehoPGJscmw30HT/SMPh T9CPgq3bqylOIYpb1bjj8OBnu5/s/4rdAHy8M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version:date:from:subject :thread-topic:to:content-transfer-encoding; bh=2P5fyAi6Es7xc6b6D5hBZjYabxDlFInZfirP94Dxnl0=; b=hz9ntN7GB9OchXfGM8foKUPJSddxwTmEeCkzpEXtuzAUp7iGL8uSIrzIfJFrt3QRla j28JGxh5mTt8rwwnlK1VKhF8slzrn5SDmVhaj2bUKjZWiZVGVPPKi6CdwvCPQyEZx6Wk kS6dmyOz6H/H8vHXrSEJmIuQpClvlTfbYsnOzCvQrK3hqV6Urbm4tLlPlevahBf51SiO Rbdpj1/T1gh0X2T0LsuCU7XDbstacwNwTWVLuoQGb8iTG4VIsv2UFSfcFlG7/Rk2+YfY em6frwxnrGVfmumu3a4QXYR48j0WP40INyarkdfMiTs3BAYVccAyWTtIYkubGcemkcrf YYaQ== X-Gm-Message-State: APjAAAW2770iZj3R9In9fhbmvSEvKLLH4zdvGXU28HYa/e8Xtw4747L+ PZ+A5HbSWQpoDxkyRWBvbSIr7HoNQWH/vP4bSMwuKjGOdrNmFqH0fMINie8zkg/XUWSXsf2aXEP 6bchcJ3cOE9dmQmYD48ov+JkkHLBoW/DsuMp3E3JvpP7EqIR3YeuhMFzFGWZ9 X-Google-Smtp-Source: APXvYqwRfav3WDUklvFF+dSYh7C9+y68W18pixjaLiFSRhYAsXZSdB+KxOeA6SKEr07IF5nOAMYcXQ== X-Received: by 2002:a63:4547:: with SMTP id u7mr11446638pgk.423.1574947516802; Thu, 28 Nov 2019 05:25:16 -0800 (PST) Original-Received: from smtp.gmail.com ([38.99.100.2]) by smtp.gmail.com with ESMTPSA id k66sm20126308pgk.16.2019.11.28.05.25.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Nov 2019 05:25:16 -0800 (PST) Thread-Topic: 27.0.50;; [PATCH] * makefile-edit.el: regexp-quote the param in makefile-move-to-macro to avoid error message X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Thu, 28 Nov 2019 11:36:44 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172616 Archived-At:

[PATCH] * makefile-edit.el: regexp-q= uote the param in

makefile-move-to-macro.

 

Fix the error mess= age from `makefile-move-to-macro' when there is '$'

or '\\' in param for re-search-forward, with `(global-ede-mode t)' and

=

`(semantic-mode t)' enabled. Enable ede and semantic m= ode, then open a

Makefile.am in which has line 'AM_= LIBTMP_LIBS:=3D$(shell X \--libs)'

will trigger the= error message, and this patch fix that.

---

lisp/cedet/ede/makefile-edit.el | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

 

diff --git a/lisp/cedet/ede/ma= kefile-edit.el

b/lisp/cedet/ede/makefile-edit.el

index 7d8a44b..add1675 100644

--- a/lisp/cedet/ede/makefile-edit.el

+++ b/lisp/c= edet/ede/makefile-edit.el

@@ -78,7 +78,7 @@ makefil= e-move-to-macro

If NEXT is non-nil, move to the ne= xt occurrence of MACRO."

=C2=A0=C2=A0 (let ((o= ldpt (point)))

=C2=A0=C2=A0=C2=A0=C2=A0 (when (not = next) (goto-char (point-min)))

-=C2=A0=C2=A0=C2=A0 = (if (re-search-forward (concat "^\\s-*" macro "\\s-*[+:?]?= =3D") nil t)

+=C2=A0=C2=A0=C2=A0 (if (re-searc= h-forward (concat "^\\s-*" (regexp-quote macro)

"\\s-*[+:?]?=3D") nil t)

=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 t

=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 (goto-char oldpt)

=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 nil)))

--

2.2.0

 

 

 

=