From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Bob Floyd" 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 09:48:27 -0700 Message-ID: <000001d750bc$9f5301d0$ddf90570$@net> References: <004501d750b6$42458040$c6d080c0$@net> <83y2c4ccrb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2489"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48628@debbugs.gnu.org To: "'Eli Zaretskii'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 24 19:19:42 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 1llEEv-0000Sl-OY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 May 2021 19:19:41 +0200 Original-Received: from localhost ([::1]:34212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llEEu-0000rK-PR for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 May 2021 13:19:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llDlG-0004Ra-TI for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 12:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60483) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llDlG-00073k-8L for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 12:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llDlG-00009I-5V for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 12:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Bob Floyd" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 May 2021 16:49:02 +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.1621874920542 (code B ref 48628); Mon, 24 May 2021 16:49:02 +0000 Original-Received: (at 48628) by debbugs.gnu.org; 24 May 2021 16:48:40 +0000 Original-Received: from localhost ([127.0.0.1]:43796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llDkt-00008g-MI for submit@debbugs.gnu.org; Mon, 24 May 2021 12:48:39 -0400 Original-Received: from resqmta-po-08v.sys.comcast.net ([96.114.154.167]:37656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llDkp-00008R-PE for 48628@debbugs.gnu.org; Mon, 24 May 2021 12:48:38 -0400 Original-Received: from resomta-po-07v.sys.comcast.net ([96.114.154.231]) by resqmta-po-08v.sys.comcast.net with ESMTP id lCfnloT79ArcZlDkjlyMNI; Mon, 24 May 2021 16:48:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1621874909; bh=SSX2dPvtrfWv2d6shmoZni2kIW30mIPyLgPr4Cr0rg4=; h=Received:Received:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type; b=aQNGsd4a3wcpsJEcGrQHc/vOBvsYNyNafbn6wDh2ap1rq0ECdW7gUvNrjFtCDCPp4 IxfCg2Jsgo4Ahf29lF0VOaZt2HWSwenryIn8b53hQSNRP0VG9+aL5nki4W5c9aYrMZ P/AB/oxkI2uGWzjyyDPDTiFhZ2EQNRcbXjCcYMbWjGLJeh7aMjNm3A5lMvyhKTmfSZ Qg4Yw3tOMLsvA190Qk3c2RNjxmNk2YMn7F7JDJxbzsVp2o7scpk6/nKiuflPKKdTUP tea2EtT9pXNlLLQ7r2qtRt0QczZ3xhFnUMJWpUPCX5KB02PKKY+nHjvyyVsrUHUOLb uxtRNGBh02gLQ== Original-Received: from Cache ([IPv6:2601:647:6100:3b1c::87]) by resomta-po-07v.sys.comcast.net with ESMTPA id lDkhlP9Qtx2y5lDkilBHNc; Mon, 24 May 2021 16:48:28 +0000 X-Xfinity-VMeta: sc=-100.00;st=legit In-Reply-To: <83y2c4ccrb.fsf@gnu.org> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AddQupLvtlp9cAeHQBuH7cTPI5xdHQAAPIDA Content-Language: en-us 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:207136 Archived-At: No, not when using tags-search, tags-query-replace. They use the tags file only to identify what files to search in. However, you are correct when using things like M-. (xref-find-definitions) when the definition has been moved too far from its original location. The failure of tags-search (and the same sort of failure happens with tags-query-replace) is new to the 28 versions as best I can determine. -----Original Message----- From: Eli Zaretskii [mailto:eliz@gnu.org] Sent: Monday, May 24, 2021 9:34 AM To: Bob Floyd Cc: 48628@debbugs.gnu.org Subject: Re: bug#48628: tags-search fails to find all occurences and finds one that it shouldn't > 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?