From: Eli Zaretskii <eliz@gnu.org>
To: Siyuan Chen <chansey97@gmail.com>, Dmitry Gutov <dmitry@gutov.dev>
Cc: 71727@debbugs.gnu.org
Subject: bug#71727: Deleting TAGS buffer will cause `etags-regen--update-file` doesn't work
Date: Thu, 27 Jun 2024 11:49:46 +0300 [thread overview]
Message-ID: <86r0ci6a8l.fsf@gnu.org> (raw)
In-Reply-To: <CAHWTsY=Ef3+zoQZyHczBmcTZeLmti7ciaH6NPjSDZJwUSt6q4A@mail.gmail.com> (message from Siyuan Chen on Sun, 23 Jun 2024 07:55:49 +0800)
> From: Siyuan Chen <chansey97@gmail.com>
> Date: Sun, 23 Jun 2024 07:55:49 +0800
>
> Reproduce steps:
>
> 1. init.el
> ```
> (setq etags-regen-program "C:/green/emacs/emacs-29.3/bin/etags.exe")
> (require 'etags-regen)
> ```
>
> 2. Open test.c with the following code
> ```
> #define APPLICATION_WINDOW_WIDTH 320
> ```
>
> 3. M-x etags-regen-mode
>
> 4. Move the cursor to APPLICATION_WINDOW_WIDTH and M-x xref-find-definitions. Then the TAGS file is
> created and the APPLICATION_WINDOW_WIDTH line is highlighted (good).
>
> 5. M-x kill-buffer TAGS
>
> 6. Add `#define APPLICATION_WINDOW_HEIGHT 320` to test.c and M-x save-buffer
>
> 7. Move the cursor to APPLICATION_WINDOW_HEIGHT and M-x xref-find-definitions.
>
> The expected behavior: The TAGS file is updated and the APPLICATION_WINDOW_HEIGHT line is
> highlighted.
>
> The actual behavior: The echo area reports: "No definition found for: APPLICATION_WINDOW_HEIGHT"
>
> Note that if I don't do step-5 then everything is OK.
>
> Emacs 29.3 has no this feature, I make it available via copy & paste etags-regen.el to load-path. I think this
> issue has nothing to do with the Emacs version though.
Thanks.
Dmitry, could you please look into this?
next prev parent reply other threads:[~2024-06-27 8:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-22 23:55 bug#71727: Deleting TAGS buffer will cause `etags-regen--update-file` doesn't work Siyuan Chen
2024-06-27 8:49 ` Eli Zaretskii [this message]
2024-06-28 1:23 ` Dmitry Gutov
2024-06-29 11:49 ` Siyuan Chen
2024-07-09 2:50 ` Dmitry Gutov
2024-07-11 0:50 ` Dmitry Gutov
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86r0ci6a8l.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=71727@debbugs.gnu.org \
--cc=chansey97@gmail.com \
--cc=dmitry@gutov.dev \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).