Hello, > - under emacs, gtags-find-rtag doesn't work through GTAGSLIBPATH
Yes. It is the specification of GLOBAL itself, it is unrelated to gtags.el. Please see: http://lists.gnu.org/archive/html/bug-global/2006-08/msg00012.html However, it is certain that the specification of GTAGSLIBPATH is not neatly written in the manual. I feel it apologize very much. > - to overcome this you must first gtags-find-tag and then at the point > of definition > execute again gtags-find-rtag ... which is not ok This occurring is because emacs changes the current directory at each file. You can fix the current project using gtags-visit-root command. > - in the documentation for gtags usage is not very clear that GTAGSLIBPATH > work > properly _only_ if the four G* files are found somewhere on the path > to the root from > the current point (that is if you are under some "project" files then > GTAGSLIBPATH is follow) In the present specification, you must invoke global(1) in a project. Global(1) looks for GTAGS file aiming at the system's root directory. If GTAGS file is not found then global(1) exits with a error message "global: GTAGS not found.". It is unrelated to GTAGSLIBPATH. Are you proposing the change in this specification? > - I use gtags for emacs to browse files and expect gtags to follow > GTAGSLIBPATH to search > other files despite that the four G* files are not present somewhere > on the path to the root. Is your wanting to do this? +------------------------------ |#!/bin/sh |for d in <directory list> |do | (cd $d && global -a $*) |done +------------------------------ -- Shigio YAMAGUCHI <[email protected]> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3 _______________________________________________ Bug-global mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-global
