From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Siyuan Chen Newsgroups: gmane.emacs.bugs Subject: bug#71727: Deleting TAGS buffer will cause `etags-regen--update-file` doesn't work Date: Sun, 23 Jun 2024 07:55:49 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000035fea2061b834a65" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1543"; mail-complaints-to="usenet@ciao.gmane.io" To: 71727@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 23 01:57:27 2024 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 1sLAbn-0000IJ-4X for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jun 2024 01:57:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLAbZ-0002gP-Sk; Sat, 22 Jun 2024 19:57:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLAbP-0002fb-Qh for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 19:57:05 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sLAbP-0006Qi-Ic for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 19:57:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLAbO-00018j-Nw for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 19:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Siyuan Chen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jun 2024 23:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71727 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17191005714260 (code B ref -1); Sat, 22 Jun 2024 23:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Jun 2024 23:56:11 +0000 Original-Received: from localhost ([127.0.0.1]:36591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLAaY-00016e-I2 for submit@debbugs.gnu.org; Sat, 22 Jun 2024 19:56:10 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLAaW-00016T-IU for submit@debbugs.gnu.org; Sat, 22 Jun 2024 19:56:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLAaW-0002Dn-3r for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 19:56:08 -0400 Original-Received: from mail-yw1-x1134.google.com ([2607:f8b0:4864:20::1134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sLAaQ-0006AQ-45 for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 19:56:06 -0400 Original-Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-63bb0ff142cso31616757b3.3 for ; Sat, 22 Jun 2024 16:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719100560; x=1719705360; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=XlzbVaYA6Q3jXI2cG8AA0NbMwAYtCuVSPikFMcUtjjA=; b=M3lQmK+AktonqJ+vRGHupALgU/V95/yGIbXfR7etuylUrLmQPG2I0GjdQG0pzdirQA 44LhhYJflN4R1s4mNXqPrp/XPAiyyV0LjhLLAtpX9/FatltABpgAUTCWeMfM1S8qls8k Gqv6SbcwXUbepyXeDk5naVsEo1dn2Q9zWUPJFUZDm6pZ0WOC0cG5tgSD5VpgXGLbq9sB 1K8d45qnoGtseGQNK5sw5WnW/IjFni1em7m+gh+F2/K8yYzsJ/Y/+xiOQ1Ge7qfomYZc /rf2075ElWVEwd63elaHwzxKgOoG1kgDbGJQPzQ5ACdYHFkCO1cJBQaaWON39xsyIMj1 NMDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719100560; x=1719705360; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XlzbVaYA6Q3jXI2cG8AA0NbMwAYtCuVSPikFMcUtjjA=; b=uAGTQV0y4QeHs0wH9dSUIbROQdpr+9mSoCfDbqr/xYXxuaHs4cjvNcLBeLJVfZZ3Qi 654KsOvIe14P1+/IAdTRkOgb8U7pIa2YXDyl3uPcvTcg9MTMrn+NFtlPY7X2rzfM7FkI 4l+jqtOxJci4a4woh7wd2CXtd1BjwO5AiVvibbxd7ob4tM0ve0Uwow+MwCD6Oinb1Di7 RcI21csHmuxcY/Nd0fEni7E/aKLOaLh0jY0F2+tr8POyKhY0uXgDjkeq8c4S55KEaL4s MrH/CvInlzGibJYCow1vivHlEAHmh9jwhgvRYqX8MIBR7yUluotuqfyc8Bx0osjgXBdh QWJQ== X-Gm-Message-State: AOJu0Yzng4cEIfW8WqeenL1oPqFKonEXy7iqmAHehE7jjuog2pFZB+KP TKTYQ1wZ2/G4Vs0yh1ZSt0ZaqgOIjeplrdJR1J5CaawB5QizK0j9j8OH4cJ0xr8ZLTE240HdLQn afJBNAd9uLw1PDaobptypRExAbYeWete8oJycLg== X-Google-Smtp-Source: AGHT+IG1RO1S1CGjtWe6sdVnFK9hrt/rPEDL4Axh5eOa3ueJwfSUAiJyzMwJ5iT2RnpW4Xryaw5teKzLiF6NWqCZcro= X-Received: by 2002:a81:5bd7:0:b0:610:1cd9:8c37 with SMTP id 00721157ae682-6429a7203bamr18933997b3.30.1719100559979; Sat, 22 Jun 2024 16:55:59 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::1134; envelope-from=chansey97@gmail.com; helo=mail-yw1-x1134.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287747 Archived-At: --00000000000035fea2061b834a65 Content-Type: text/plain; charset="UTF-8" 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. Best regards, Siyuan Chen --00000000000035fea2061b834a65 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Reproduce = steps:

1. init.el
```
(se= tq etags-regen-program=C2=A0"C:/green/emacs/emacs-29.3/bin/etags.exe&q= uot;)
(require 'etags-regen)
```

=
2. Open test.c with the following code
```
#= define APPLICATION_WINDOW_WIDTH 320
```

<= div>3. M-x etags-regen-mode

4. Move the cursor= to=20 APPLICATION_WINDOW_WIDTH and M-x xref-find-definitions. Then the TAGS file = is created and=20 the APPLICATION_WINDOW_WIDTH line is highlighted (good).

=
5. M-x kill-buffer TAGS

6. Add `#define= APPLICATION_WINDOW_HEIGHT 320` to=20 test.c and M-x save-buffer

7.=20 Move the cursor to APPLICATION_WINDOW_HEIGHT and M-x xref-find-definitions.

The expected behavior:= The TAGS file is updated and=20 =20 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 do= n'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 t= his issue has nothing to do with the Emacs version though.

Thanks.

Best regards,
Siyuan Chen

--00000000000035fea2061b834a65--