Re: make_ctags: use -I option to ignore pg_node_attr macro - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: make_ctags: use -I option to ignore pg_node_attr macro
Date
Msg-id Y0boB0yUaxVbvunt@momjian.us
Whole thread Raw
In response to Re: make_ctags: use -I option to ignore pg_node_attr macro  (Tatsuo Ishii <ishii@sraoss.co.jp>)
List pgsql-hackers
On Wed, Oct 12, 2022 at 10:26:03PM +0900, Tatsuo Ishii wrote:
> > However ... hmm ... 
> > 
> >>  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.

Yes, that is exactly the intent of why it uses symlinks in every
directory.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Indecision is a decision.  Inaction is an action.  Mark Batterson




pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Warning about using pg_stat_reset() and pg_stat_reset_shared()
Next
From: Andres Freund
Date:
Subject: Re: START_REPLICATION SLOT causing a crash in an assert build