> Yes. Use 'gtags --gtagslabel=new-ctags' while having a configuration file ... > and then try 'global -x' on any symbol. Only 'global -f' still works.
I have confirmed the bug. Thank you. > I'm using: > ':ctagsoptfile=$sysconfdir/ctags-gtags.conf:' > and I have a specific such file that doesn't contain the abovementioned lines. Could you write a description about this variable for the CONFIGURATION section of gtags(1)? Could you explain the format of 'ctags-gtags.conf'? > 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. Should we use a file? How about putting the contents of the file directly into a variable (may be 'ctagsopt')? [gtags.conf] +------------------------------ |:ctagsoptfile=$sysconfdir/ctags-gtags.conf: [$sysconfdir/ctags-gtags.conf] +------------------------------ |XX@XX | v [gtags.conf] +------------------------------ |:ctagsopt=XX@XX: > 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. I'm not sure what you are talking about. What are '--option' and '--option-maybe'? Which command's options? Regards, Shigio On Tue, Apr 11, 2023 at 11:23 PM Olivier Certner <[email protected]> wrote: > > > 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 > > -- Shigio YAMAGUCHI <[email protected]> PGP fingerprint: 26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB
