From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.bugs Subject: bug#38014: 26.3.50; [PATCH] * makefile-edit.el: regexp-quote the param in makefile-move-to-macro to avoid error message Date: Fri, 1 Nov 2019 10:59:44 +0800 Message-ID: <001001d59060$6b8f6f00$42ae4d00$@zoom.us> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="163386"; mail-complaints-to="usenet@blaine.gmane.org" To: 38014@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 01 04:14:31 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 1iQNOP-000gOi-KY for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 04:14:29 +0100 Original-Received: from localhost ([::1]:55580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQNOO-0003RU-DQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2019 23:14:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33132) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQNO3-0003No-K3 for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 23:14:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQNNy-0003uB-Ju for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 23:14:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46061) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQNNy-0003tZ-Eg for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 23:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQNNy-0005vY-6Q for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 23:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2019 03:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38014 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.157257798522702 (code B ref -1); Fri, 01 Nov 2019 03:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Nov 2019 03:13:05 +0000 Original-Received: from localhost ([127.0.0.1]:54882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQNN2-0005u5-E6 for submit@debbugs.gnu.org; Thu, 31 Oct 2019 23:13:05 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQNAJ-0005ZQ-U4 for submit@debbugs.gnu.org; Thu, 31 Oct 2019 22:59:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58850) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQNAI-0000sf-OV for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 22:59:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQNAH-0006Ns-D5 for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 22:59:54 -0400 Original-Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:45463) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQNAH-0006Dg-4Z for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 22:59:53 -0400 Original-Received: by mail-pf1-x42d.google.com with SMTP id c7so5971316pfo.12 for ; Thu, 31 Oct 2019 19:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zoom.us; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding:thread-index:content-language; bh=ioi+3JPiSxE7D149Z9M2d4LF3uT4HeKV1e4DkH14q+s=; b=K+EtidbLjLa2apKKL5LS90MLe2ewrtzc+9YMA7YARJeUckFWLRVfQo5zkJJ+q7Rrwj gNzJvF5EPPdduIzPdZmXQCNKoBT93edLt9hgD+Ye+c1mVh8FoHbbrKaR4viD5B1+0ovy 7GSe15sDOFcB95Sy0XgnBWOgIFJEsXiV71SNM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding:thread-index:content-language; bh=ioi+3JPiSxE7D149Z9M2d4LF3uT4HeKV1e4DkH14q+s=; b=C6YtAdDrus5nJ4KCxZ6Zg308aLXUZqVzHIHt3PMjsXoFM6O2D6tCqu7YxzSdLtlD/5 aRTWb/1159dW+77p0XW1CVU62fIiGhocRVWlmAkwyVahfzZUAzFKzS62EJv0ykJAj4yt 41L4YRW0RmsQTP4NWhhWPHGgOJOiU3i5Y/xbxBIgldEHkkSiNlRygK7YR2PN69iNoP7m frYX4eewDQ6EYSoJysfbVXov4pXKfZCXHqA9OhgJtskFnRlAJ7jYzedBzQRrgJb36X+b hS3qmlwhIVLbNcedjhuIIofXzOZqu4J8GMXI+mcbVhQeeX7fqze++qeS9eCQP/c0O9S6 vH9g== X-Gm-Message-State: APjAAAWSzbJAytpSzRgtOVZynR0yEAWTGPJadPMTCl70IoTjXWPZuJP9 ppUVW3AI8e/7xqig2Lakry/eZNjdTjO6KYsyCoWE7X5ACj/exD5/OMPvdiKQq1roJwd1jB0cPMF wupBcwbJ/RW5anhlhk99W2m1Ez8jPRH/7HHiBIKi2MtdqD1J3hUFL+/AeYJGW X-Google-Smtp-Source: APXvYqxyPsxqGDOsVy6Pa67F1oDTSfmuvUwA90qm6lLhBRpEb2wEh4byd5MCNU7oS7FfRVdRiJ7GMA== X-Received: by 2002:a65:6085:: with SMTP id t5mr10710318pgu.450.1572577188532; Thu, 31 Oct 2019 19:59:48 -0700 (PDT) Original-Received: from DESKTOP71C1N5K ([38.99.100.2]) by smtp.gmail.com with ESMTPSA id b3sm4165117pfd.125.2019.10.31.19.59.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Oct 2019 19:59:47 -0700 (PDT) X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdWQYGfPPA5S9ipETzWH8oLyghe9sw== Content-Language: en-us X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Thu, 31 Oct 2019 23:13:03 -0400 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:170572 Archived-At: [PATCH] * makefile-edit.el: regexp-quote the param in makefile-move-to-macro. Fix the error message from `makefile-move-to-macro' when there is '$' or '\\' in param for re-search-forward, with `(global-ede-mode t)' and `(semantic-mode t)'. Enable ede and semantic mode, then open a Makefile.am in which has line 'AM_LIBTMP_LIBS:=$(shell X \--libs)' will trigger this issue. --- lisp/cedet/ede/makefile-edit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/cedet/ede/makefile-edit.el b/lisp/cedet/ede/makefile-edit.el index 7d8a44b..add1675 100644 --- a/lisp/cedet/ede/makefile-edit.el +++ b/lisp/cedet/ede/makefile-edit.el @@ -78,7 +78,7 @@ makefile-move-to-macro 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))) -- 2.2.0