GNU bug report logs -
#21167
24.5; tags-search should ignore buffer restriction
Previous Next
Reported by: phs <phs <at> lsv.ens-cachan.fr>
Date: Fri, 31 Jul 2015 15:25:02 UTC
Severity: normal
Found in version 24.5
Fixed in version 25.1
Done: Dmitry Gutov <dgutov <at> yandex.ru>
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 21167 in the body.
You can then email your comments to 21167 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21167
; Package
emacs
.
(Fri, 31 Jul 2015 15:25:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
phs <phs <at> lsv.ens-cachan.fr>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 31 Jul 2015 15:25:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Description: tags-search when going through all files listed in the
current tags table, tags-search searches inside existing buffers for
files that are currently visited (this is where the latest version can
be found).
But when the visiting buffer has been restricted by a narrow-to-region,
tags-search will not look outside the narrowed-to scope.
I call this a bug. E.g., it can cause a global renaming of variables
miss some occurrences. It seems that a minimal fix is for tags-search to
warn the user that the buffer has been narrowed and offer to widen for
the search (and maybe reinstall the restriction after the search???).
I looked at the source code. It appears that the problem is located
within function next-file (in progmodes/etags.el). When it is found that
there already is a buffer visiting the file to be searched for tags,
next-file just uses it without checking for restrictions.
BTW, I don't understand why next-file passes the novisit flag to find-file?
--
Philippe SCHNOEBELEN, www.lsv.ens-cachan.fr/~phs
LSV, CNRS UMR 8643 & ENS de Cachan Tel: (+33/0) 147 407 530
"Algebraic symbols are used when you do not know what you are talking about"
Reply sent
to
Dmitry Gutov <dgutov <at> yandex.ru>
:
You have taken responsibility.
(Sat, 01 Aug 2015 11:44:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
phs <phs <at> lsv.ens-cachan.fr>
:
bug acknowledged by developer.
(Sat, 01 Aug 2015 11:44:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 21167-done <at> debbugs.gnu.org (full text, mbox):
Version: 25.1
On 07/31/2015 12:43 PM, phs wrote:
> I call this a bug. E.g., it can cause a global renaming of variables
> miss some occurrences. It seems that a minimal fix is for tags-search to
> warn the user that the buffer has been narrowed and offer to widen for
> the search (and maybe reinstall the restriction after the search???).
Thanks for the report. This is now performed automatically, without
warning, in tags-loop-continue.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 30 Aug 2015 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 299 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.