public inbox for [email protected]
help / color / mirror / Atom feedFrom: Michael Paquier <[email protected]>
To: Julien Rouhaud <[email protected]>
Cc: Postgres hackers <[email protected]>
Subject: Re: Backpatching make_ctags -e and -n to v15 and v14
Date: Fri, 10 Apr 2026 08:03:06 +0900
Message-ID: <[email protected]> (raw)
In-Reply-To: <adcSLzktzfi2zC8d@jrouhaud>
References: <[email protected]>
<adcSLzktzfi2zC8d@jrouhaud>
On Thu, Apr 09, 2026 at 10:42:55AM +0800, Julien Rouhaud wrote:
> Oh I missed the addition of the -n mode.
I have switched my stuff to use -n just a few hours ago with a trick
to tell emacs to look at the root of a git folder if we are in a git
repo for the location of a TAGS file:
(setq tags-table-list nil)
(defun my/set-tags-table-to-git-root ()
"Set TAGS file path to the root of the current git repository."
(let ((git-root (string-trim-right
(shell-command-to-string "git rev-parse --show-toplevel"))))
(when (and git-root (not (string-match-p "fatal" git-root)))
(setq tags-file-name (expand-file-name "TAGS" git-root)))))
(add-hook 'find-file-hook #'my/set-tags-table-to-git-root)
Perhaps there is a smarter way to set that, no idea. This works quite
nicely for me.
> Honestly the creation of the symlinks in all the subdirectories is the main
> reason why I never used the make_ctags script (and just used some local stuff
> instead), so since I now know that I can use it strong +1 to backporting that
> commit to v14 and v15.
Thanks. This is going to save time for the two of us, at least, so
done :)
--
Michael
Attachments:
[application/pgp-signature] signature.asc (833B, 2-signature.asc)
download
view thread (3+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Backpatching make_ctags -e and -n to v15 and v14
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox