From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tatsuo Ishii <ishii@sraoss.co.jp>
Cc: nagata@sraoss.co.jp
Cc: pgsql-hackers@postgresql.org
Subject: Re: make_ctags: use -I option to ignore pg_node_attr macro
Date: Wed, 12 Oct 2022 16:24:40 +0200
Message-ID: <20221012142440.u2kmre2yp6p4fyr4@alvherre.pgsql> (raw)
In-Reply-To: <20221012.222603.1209235348946415695.t-ishii@sranhm.sra.co.jp>
On 2022-Oct-12, Tatsuo Ishii wrote:
> >> find . \( -name 'CVS' -prune \) -o \( -name .git -prune \) -o -type d -print |
> >> while read DIR
> >> -do [ "$DIR" != "." ] && ln -f -s `echo "$DIR" | sed 's;/[^/]*;/..;g'`/tags "$DIR"/tags
> >> +do [ "$DIR" != "." ] && ln -f -s `echo "$DIR" | sed 's;/[^/]*;/..;g'`/$tags_file "$DIR"/$tags_file
> >> done
> >
> > ... does this create a tags symlink on each directory? This seems
> > strange to me,
>
> I don't know the original author's intention for this but I think it
> makes use of the tag file in emacs a little bit easier. Emacs
> confirms for the first time the default location of tags file under
> the same directory where the source file resides. I can just hit
> return key if there's a symlink of tags. If we do not create the
> symlink, we have to specify the directory where the tags file was
> originally created, which is a little bit annoying.
OK, that sounds good then. I would make a feature request to have a
switch that supresses creation of these links, then.
> Well, I often visit different tags file for different development
> projects (for example Pgpool-II) and I don't want to have fixed
> location of tags file in emacs setting. For this reason make_etags's
> approach is acceptable for me.
Makes sense.
--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
Thou shalt study thy libraries and strive not to reinvent them without
cause, that thy code may be short and readable and thy days pleasant
and productive. (7th Commandment for C Programmers)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: alvherre@alvh.no-ip.org, ishii@sraoss.co.jp, nagata@sraoss.co.jp
Subject: Re: make_ctags: use -I option to ignore pg_node_attr macro
In-Reply-To: <20221012142440.u2kmre2yp6p4fyr4@alvherre.pgsql>
References: <20221012.222603.1209235348946415695.t-ishii@sranhm.sra.co.jp> <20221012142440.u2kmre2yp6p4fyr4@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox