gtags-find-tag returns directory not found

LynX <[email protected]>
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <[email protected]>
Hello all,


 >What is your environment (OS)?

Windows

 >Which version of GLOBAL are you using?

GLOBAL 6.4

 >What did you do? (command line)

I am using gtags plugin for Emacs.

M-x gtags-visit-rootdir <dir with gtags>
M-x gtags-find-tag <tag>

 >What did you expect from it?

I would like to jump to the tag.

 >What was occurred? (as is)

I get: "directory not found" whereas the path is correct and it contains 
correct gtags meta files


It seems that GTAGSROOT (at least on Windows) should contain directory 
file name and not the directory name (so it should not contain last /):

c:\Users\LynX\workspace>set GTAGSROOT=c:\Users\LynX\workspace <-- ok

c:\Users\LynX\workspace>global -l df
rhino/src/org/mozilla/javascript/optimizer/DataFlowBitSet.java

c:\Users\LynX\workspace>set GTAGSROOT=c:/Users/LynX/workspace <-- ok

c:\Users\LynX\workspace>global -l df
rhino/src/org/mozilla/javascript/optimizer/DataFlowBitSet.java

c:\Users\LynX\workspace>set GTAGSROOT=c:\Users\LynX\workspace\ <-- fails

c:\Users\LynX\workspace>global -l df
global: directory 'c:\Users\LynX\workspace\' not found.

c:\Users\LynX\workspace>set GTAGSROOT=c:/Users/LynX/workspace/ <-- fails

c:\Users\LynX\workspace>global -l df
global: directory 'c:/Users/LynX/workspace/' not found.

I created the patch for gtags-visit-rootdir from gtags.el and tested it 
on Windows and Linux.

Please let me know if I can help any further.


lynx@:~/global$ cvs diff gtags.el
Index: gtags.el
===================================================================
RCS file: /sources/global/global/gtags.el,v
retrieving revision 1.53
diff -r1.53 gtags.el
524c524
<     (setq input (read-file-name "Visit root directory: " path path t))
---
 >     (setq input (directory-file-name (read-file-name "Visit root 
directory: " path path t)))
lynx@:~/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.