GNU bug report logs - #73225
Repeating tags-search from the start doesn't work

Previous Next

Package: emacs;

Reported by: Roger Sewell <roger.sewell <at> cantab.net>

Date: Fri, 13 Sep 2024 11:15:01 UTC

Severity: normal

Fixed in version 28.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 73225 in the body.
You can then email your comments to 73225 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#73225; Package emacs. (Fri, 13 Sep 2024 11:15:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Roger Sewell <roger.sewell <at> cantab.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 13 Sep 2024 11:15:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Roger Sewell <roger.sewell <at> cantab.net>
To: <bug-gnu-emacs <at> gnu.org>
Subject: Repeating tags-search from the start doesn't work
Date: Fri, 13 Sep 2024 10:15:21 +0100
Package: emacs

I'm using emacs 1:27.2-10.el9_4 on Rocky Linux 9.4, which I realise is
not the latest available version of emacs but is the latest package
available for this distro.

If I put two files in a directory, each containing multiple occurrences
of foo-bar, run etags on them, and run tags-search for foo-bar, then the
first time it correctly goes through every occurrence in both files.

If I then repeat the tags-search for foo-bar, this time it only takes me
to the LAST occurrence in each file.

It makes no difference if I run tags-reset-tags-tables before the second
search, nor if I tags-search for some other string that is found in a
third file.

Moreover, if after having done the first search I search for some other
string found in one of the first two files, then instead of taking me to
that other string, it takes me to the last occurrence of foo-bar.

If you need any further information please let me know. 

If there is a workaround available, I'd be grateful to be told that also.

Thanks,
Roger Sewell.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73225; Package emacs. (Fri, 13 Sep 2024 11:54:02 GMT) Full text and rfc822 format available.

Message #8 received at 73225 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Roger Sewell <roger.sewell <at> cantab.net>
Cc: 73225 <at> debbugs.gnu.org
Subject: Re: bug#73225: Repeating tags-search from the start doesn't work
Date: Fri, 13 Sep 2024 14:53:26 +0300
> From: Roger Sewell <roger.sewell <at> cantab.net>
> Date: Fri, 13 Sep 2024 10:15:21 +0100
> 
> Package: emacs
> 
> I'm using emacs 1:27.2-10.el9_4 on Rocky Linux 9.4, which I realise is
> not the latest available version of emacs but is the latest package
> available for this distro.
> 
> If I put two files in a directory, each containing multiple occurrences
> of foo-bar, run etags on them, and run tags-search for foo-bar, then the
> first time it correctly goes through every occurrence in both files.
> 
> If I then repeat the tags-search for foo-bar, this time it only takes me
> to the LAST occurrence in each file.

Could you please post the files which can be used to reproduce this
issue?  It is otherwise hard to investigate this problem, since you
didn't even say in what programming language were the source files
written (tags-search and etags support quite a few of them, and each
one might present unique problems).

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73225; Package emacs. (Fri, 13 Sep 2024 15:30:03 GMT) Full text and rfc822 format available.

Message #11 received at 73225 <at> debbugs.gnu.org (full text, mbox):

From: Roger Sewell <roger.sewell <at> cantab.net>
To: "Eli Zaretskii" <eliz <at> gnu.org>,<73225 <at> debbugs.gnu.org>
Subject: Re: bug#73225: Repeating tags-search from the start doesn't work
Date: Fri, 13 Sep 2024 13:02:03 +0100
[Message part 1 (text/plain, inline)]
Eli,

> Could you please post the files which can be used to reproduce this
> issue?  It is otherwise hard to investigate this problem, since you
> didn't even say in what programming language were the source files
> written (tags-search and etags support quite a few of them, and each
> one might present unique problems).

These particular files are just text files, created to be as simple as
possible while still demonstrating the bug. But I originally noticed it
using Matlab code, but without any special Matlab mode enabled in emacs,
just text mode.

Thanks,
Roger.

[tempdir.tar.gz (application/gzip, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73225; Package emacs. (Sun, 15 Sep 2024 08:40:02 GMT) Full text and rfc822 format available.

Message #14 received at 73225 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Roger Sewell <roger.sewell <at> cantab.net>
Cc: 73225 <at> debbugs.gnu.org
Subject: Re: bug#73225: Repeating tags-search from the start doesn't work
Date: Sun, 15 Sep 2024 11:39:04 +0300
close 73225 28.1
thanks

> From: Roger Sewell <roger.sewell <at> cantab.net>
> Date: Fri, 13 Sep 2024 13:02:03 +0100
> 
> > Could you please post the files which can be used to reproduce this
> > issue?  It is otherwise hard to investigate this problem, since you
> > didn't even say in what programming language were the source files
> > written (tags-search and etags support quite a few of them, and each
> > one might present unique problems).
> 
> These particular files are just text files, created to be as simple as
> possible while still demonstrating the bug. But I originally noticed it
> using Matlab code, but without any special Matlab mode enabled in emacs,
> just text mode.

Thanks.  This is bug#48628, which was fixed in Emacs 28.

So we have fixed this already, and upgrading to a newer version of
Emacs will fix it for you.  So I'm therefore closing this bug as
fixed.




bug marked as fixed in version 28.1, send any further explanations to 73225 <at> debbugs.gnu.org and Roger Sewell <roger.sewell <at> cantab.net> Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 15 Sep 2024 08:40:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 13 Oct 2024 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 252 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.