I finally understand.
You probably have something like this set to disable C:

[~/.ctags.d/any.ctags]
-----------------------------------
--languages=-C
-----------------------------------

Right? With the above settings, I was able to reproduce
your results. It is a bug.

I agree with you. Since gtags only uses ctags as a parser,
I think it's easier to use if you ignore the ctags settings
and prioritize the gtags settings.

I'd like to wait a week or so to get other people's opinions
before I make any changes to the code.

Regards,
Shigio

On Sun, Oct 12, 2025 at 5:24 PM Przemysław Alexander Kamiński
<[email protected]> wrote:
>
> On Sun, Oct 12, 2025 at 09:53:35 (+0900), Shigio YAMAGUCHI wrote:
>
> > Hello,
> > Does quoting the pattern make any difference?
> >
> > find . -iname *.c   ---> find . -iname '*.c'
>
> No, this is still the same, this can be observed also without find at
> all, i.e.
>
>     [emacs-dev] xlii@omega> ctags -f -  test/manual/etags/rs-src/test.rs
>     IpAddrKind  test/manual/etags/rs-src/test.rs        /^enum IpAddrKind 
> {$/;" g       language:Rust
>     V4  test/manual/etags/rs-src/test.rs        /^    V4,$/;"   e       
> language:Rust   enum:IpAddrKind
>     V6  test/manual/etags/rs-src/test.rs        /^    V6,$/;"   e       
> language:Rust   enum:IpAddrKind
>     main        test/manual/etags/rs-src/test.rs        /^fn main() {$/;"     
>   f       language:Rust
>     test        test/manual/etags/rs-src/test.rs        /^mod test;$/;" n     
>   language:Rust
>     test1       test/manual/etags/rs-src/test.rs        /^fn test1() {$/;"    
>   f       language:Rust
>
>     [emacs-dev] xlii@omega> ctags -f - src/alloc.c
>     [emacs-dev] xlii@omega>
>
>     [emacs-dev] xlii@omega> ctags --languages=all -f - src/alloc.c | head -4
>     ABLOCKS_BASE        src/alloc.c     /^#define ABLOCKS_BASE(/;"      d     
>   language:C      file:
>     ABLOCKS_BUSY        src/alloc.c     /^#define ABLOCKS_BUSY(/;"      d     
>   language:C      file:
>     ABLOCKS_BYTES       src/alloc.c     /^#define ABLOCKS_BYTES /;"     d     
>   language:C      file:
>     ABLOCKS_SIZE        src/alloc.c     /^#define ABLOCKS_SIZE /;"      d     
>   language:C      file:
>
>     [emacs-dev] xlii@omega> ctags --version
>     Universal Ctags 6.2.0(p6.2.20250810.0), Copyright (C) 2015-2025 Universal 
> Ctags Team
>     Universal Ctags is derived from Exuberant Ctags.
>     Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
>       Compiled: Aug 13 2025, 19:44:31
>       URL: https://ctags.io/
>       Output version: 1.1
>       Optional compiled features: +wildcards, +regex, +gnulib_fnmatch, 
> +gnulib_regex, +iconv, +option-directory, +xpath, +yaml, 
> +case-insensitive-filenames, +packcc, +optscript, +pcre2
>
> I think it makes sense for universal tags to have some languages disabled,
> but also I believe that in GNU Global case everything should be found as
> long as it is configured and fed.
>
> Best,
> Przemysław Alexander Kamiński



-- 
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB

Reply via email to