bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Universal Ctags: Don't read config files; New 'ctagsoptfile' configu


From: Olivier Certner
Subject: Re: Universal Ctags: Don't read config files; New 'ctagsoptfile' configuration variable
Date: Tue, 11 Apr 2023 16:22:53 +0200

> Is it a bug fix?  If so, could you please let me know how to reproduce the 
> bug?

Yes. Use 'gtags --gtagslabel=new-ctags' while having a configuration file for 
Universal Ctags (e.g., "$HOME/.config/ctags/conf.ctags") containing:
--tag-relative=always
or:
--fields=+{extras}R{inherits}
--fields-all=+{properties}{macrodef}
and then try 'global -x' on any symbol. Only 'global -f' still works.
 
> How to use 'ctagsoptfile' configuration variable?  Could you please show me
> a concrete usage example?

I'm using:
':ctagsoptfile=$sysconfdir/ctags-gtags.conf:'
and I have a specific such file that doesn't contain the abovementioned lines.

I was considering putting this line in 'gtags.conf.in' instead of the empty 
one. But then, Universal Ctags would fail if the file doesn't exist. That's the 
behavior of '--option'. There is also a '--options-maybe' option, but that 
would mean that a typo in the config file would prevent loading the 
configuration file without the user knowing it.
 
> No problem. It is OK if tested on UNIX.

Fine.

Thanks and regards.

-- 
Olivier Certner





reply via email to

[Prev in Thread] Current Thread [Next in Thread]