Subject: Re: bug#79358: etags-regen-mode doesn't work for remote projects

From: Michael Albinus <[email-masked]>
Date: Mon, 01 Sep 2025 12:46:27 +0200

Liu Hui <[email-masked]> writes:

> Hi,

Hi,

> The recipe is as follows:
>
> 1. create a test project on remote server, and install universal-ctags
>
> 2. emacs -Q /ssh:remote:~/test_project
>
> 3. (setq etags-regen-program "ctags -e"), then M-x etags-regen-mode
>
> 4. open a project file, press M-.
>
> Then emacs displays the buffer *etags-regen-tags-errors*
>
>    ctags: cannot open tag file : No such file or directory
>
> and a message:
>
>    File /ssh:remote:~/test_project/TAGS does not exist

I don't use etags, but my bet is that you need to change
etags-regen--choose-tags-file:

--8<---------------cut here---------------start------------->8---
...
(file-local-name (expand-file-name etags-regen-tags-file (project-root proj)))))
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.