From: "Bob Floyd" <bobfloyd@comcast.net>
To: "'Eli Zaretskii'" <eliz@gnu.org>
Cc: 48628@debbugs.gnu.org
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 [thread overview]
Message-ID: <000001d750bc$9f5301d0$ddf90570$@net> (raw)
In-Reply-To: <83y2c4ccrb.fsf@gnu.org>
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" <bobfloyd@comcast.net>
> 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. <f3> (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?
next prev parent reply other threads:[~2021-05-24 16:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-24 16:02 bug#48628: tags-search fails to find all occurences and finds one that it shouldn't Bob Floyd
2021-05-24 16:33 ` Eli Zaretskii
2021-05-24 16:48 ` Bob Floyd [this message]
2021-06-06 11:01 ` Eli Zaretskii
2021-06-06 12:31 ` Eli Zaretskii
2021-06-06 18:05 ` Bob Floyd
2021-06-06 18:10 ` Eli Zaretskii
2021-06-06 18:03 ` Bob Floyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000001d750bc$9f5301d0$ddf90570$@net' \
--to=bobfloyd@comcast.net \
--cc=48628@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.