From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Francesco =?UTF-8?Q?Potort=C3=AC?= Newsgroups: gmane.emacs.bugs Subject: bug#38511: etags seems to be confused by macros Date: Mon, 09 Dec 2019 14:30:10 +0100 Message-ID: References: <83sglwfvz4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="263300"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38511@debbugs.gnu.org To: Skip Montanaro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 09 14:31:12 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 1ieJ84-0016Ks-6Z for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Dec 2019 14:31:12 +0100 Original-Received: from localhost ([::1]:40160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ieJ82-0006Xo-Nc for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Dec 2019 08:31:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51132) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ieJ7v-0006VD-0Z for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2019 08:31:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ieJ7t-000622-RN for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2019 08:31:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46798) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ieJ7t-00061s-OK for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2019 08:31:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ieJ7t-0002Ae-Lk for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2019 08:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Dec 2019 13:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38511 X-GNU-PR-Package: emacs Original-Received: via spool by 38511-submit@debbugs.gnu.org id=B38511.15758982228298 (code B ref 38511); Mon, 09 Dec 2019 13:31:01 +0000 Original-Received: (at 38511) by debbugs.gnu.org; 9 Dec 2019 13:30:22 +0000 Original-Received: from localhost ([127.0.0.1]:52771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ieJ7G-00029l-DN for submit@debbugs.gnu.org; Mon, 09 Dec 2019 08:30:22 -0500 Original-Received: from blade3.isti.cnr.it ([194.119.192.3]:46138 helo=mx-all.isti.cnr.it) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ieJ7E-00029d-Qp for 38511@debbugs.gnu.org; Mon, 09 Dec 2019 08:30:21 -0500 Original-Received: from savesent-daemon.mx-all.isti.cnr.it by mx-all.isti.cnr.it (PMDF V6.7-x04 #1884) id <01RERTE1MX3KQ96LP4@mx-all.isti.cnr.it> for 38511@debbugs.gnu.org; Mon, 09 Dec 2019 14:30:15 +0100 (MET) Original-Received: from tucano.isti.cnr.it ([146.48.81.102]) by mx-all.isti.cnr.it (PMDF V6.7-x04 #1884) with ESMTPSA id <01RERTDY0CVOQ7XS3B@mx-all.isti.cnr.it>; Mon, 09 Dec 2019 14:30:12 +0100 (MET) Original-Received: from pot by tucano.isti.cnr.it with local (Exim 4.92.3) (envelope-from ) id 1ieJ74-005xdp-C5; Mon, 09 Dec 2019 14:30:10 +0100 In-reply-to: X-INSM-ip-source: 146.48.81.102 Auth Done X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 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:173104 Archived-At: >I read the documentation and didn't understand how the regex feature >would help. It seems to be useful to identify other constructs which >you'd like tagged (such as the DEFVAR macro in the Emacs source), not >transform the source in some way. Put another way, I need a >"find/replace" sort of feature, not just a "find" feature. Try this one, and let us know if it satisfies your needs: etags --regex='/Py_LOCAL_INLINE[ \t]*(.*)\n[^(]+(\([^)]+\)/m' It assumes that Py_LOCAL_INLINE and its arguments all stay on a single line, but it can be easily changed to waive this assumption. -- Francesco Potortì (ricercatore) Voice: +39.050.621.3058 ISTI - Area della ricerca CNR Mobile: +39.348.8283.107 via G. Moruzzi 1, I-56124 Pisa Skype: wnlabisti (gate 20, 1st floor, room C71) Web: http://fly.isti.cnr.it