From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#48628: tags-search fails to find all occurences and finds one that it shouldn't Date: Mon, 24 May 2021 19:33:44 +0300 Message-ID: <83y2c4ccrb.fsf@gnu.org> References: <004501d750b6$42458040$c6d080c0$@net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23594"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48628@debbugs.gnu.org To: "Bob Floyd" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 24 18:37:19 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1llDZt-00060M-UI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 May 2021 18:37:17 +0200 Original-Received: from localhost ([::1]:47812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llDZs-00070f-Ub for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 May 2021 12:37:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llDWk-00047G-GW for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 12:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60475) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llDWk-0001sX-3i for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 12:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llDWk-0008Eb-0o for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 12:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 May 2021 16:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48628 X-GNU-PR-Package: emacs Original-Received: via spool by 48628-submit@debbugs.gnu.org id=B48628.162187403431640 (code B ref 48628); Mon, 24 May 2021 16:34:01 +0000 Original-Received: (at 48628) by debbugs.gnu.org; 24 May 2021 16:33:54 +0000 Original-Received: from localhost ([127.0.0.1]:43788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llDWc-0008EF-66 for submit@debbugs.gnu.org; Mon, 24 May 2021 12:33:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llDWa-0008E2-3T for 48628@debbugs.gnu.org; Mon, 24 May 2021 12:33:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43086) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llDWU-0001nw-OW; Mon, 24 May 2021 12:33:46 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2576 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llDWU-0003B8-2F; Mon, 24 May 2021 12:33:46 -0400 In-Reply-To: <004501d750b6$42458040$c6d080c0$@net> (bobfloyd@comcast.net) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207133 Archived-At: > From: "Bob Floyd" > Date: Mon, 24 May 2021 09:02:54 -0700 > > 1. C-x 2 (split-window-below) > > 2. C-x C-f (find-file) "f1.cpp" in the upper window > > 3. C-x C-f (find-file) "f2.cpp" in the lower window > > 4. left-mouse click in the upper window top left (location of the search start) > > 5. (tags-search) the string "_cu" using the attached TAGS file > > Tags search (regexp): _cu > > 6. M-, (fileloop-continue) until reaching "All files processed" > > The matches are on lines: > > f1.cpp: 7, 25, 65, 104, 121 > > f2.cpp: 7, 25, 65, 104, 121 > > (both f1 and f2 have identical contents). > > 7. In the upper window, switch to buffer f1.cpp and go to line 53: > > 8. mark line 53 and move down to line 72, then delete the selection: When you change the file, and you want exact results, you need to re-run etags, right?