langmap priority

Marcus Harnisch <[email protected]>
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <CAAmKruXSxaQyrkN2mfnD1QxtLMKgTfnGHH=mB9KS5FLtZB6RTA@mail.gmail.com>
   - What was occurred? (as is)

A custom label inherits from "exuberant-ctags", i.e. gets all its langmap
definitions. One is supposed to be replaced without modifying the
"exuberant-ctags" label.
Apparently, gtags processes the langmap in the way "first wins", as I have
to specify the replacement mapping before including the parent. This list
is then passed to the ctags parser in the same order. Ctags processes the
list in the way "last wins".
As a result, gtags --explain tells me the expected langmap result. Ctags,
however, which uses the original langmap, doesn't find any tags in the file.

   - What did you expect from it?

Not knowing anything about the gtags internals or the ctags parser in
particular, I'd suggest that gtags invokes ctags with the option
"--language-force", passing as an argument the language that gtags thought
was the correct one.

Thanks
Marcus

_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.