gtags.el. work with links.

View: New views
2 Messages — Rating Filter:   Alert me  

gtags.el. work with links.

by Ivan Romanov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello. In emacs 23.1 gtags.el don't work with links.
I have my source code in '/data/dev/parabola'.
cd /data/dev
ln -s parabola link-parabola
cd link-parabola
emacs main.cpp
In buffer issue command 'gtags-find-tag-by-event' on any function and
get message 'global: '/data/dev/link-parabola/Function.cpp' is out of
source tree.'.

I fix it. See below.

diff gtags.el /usr/share/gtags/gtags.el
362c362
< nil nil t (file-name-nondirectory buffer-file-name)))
---
> nil nil t (file-name-nondirectory (file-truename
buffer-file-name))))
382c382
<   (call-process "gozilla"  nil nil nil (concat "+" (number-to-string
(gtags-current-lineno))) buffer-file-name))
---
>   (call-process "gozilla"  nil nil nil (concat "+" (number-to-string
(gtags-current-lineno))) (file-truename buffer-file-name)))
477c477
<         (setq context (concat "--from-here=" (number-to-string
(gtags-current-lineno)) ":" buffer-file-name))
---
>         (setq context (concat "--from-here=" (number-to-string
(gtags-current-lineno)) ":" (file-truename buffer-file-name)))

With regards. Taurus.



_______________________________________________
Bug-global mailing list
Bug-global@...
http://lists.gnu.org/mailman/listinfo/bug-global

Re: gtags.el. work with links.

by Shigio YAMAGUCHI-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
> Hello. In emacs 23.1 gtags.el don't work with links.
> I have my source code in '/data/dev/parabola'.
> cd /data/dev
> ln -s parabola link-parabola
> cd link-parabola
> emacs main.cpp
> In buffer issue command 'gtags-find-tag-by-event' on any function and
> get message 'global: '/data/dev/link-parabola/Function.cpp' is out of
> source tree.'.

Though I don't understand the situation well, I think it is necessary
to make tag files again after the link is made.
--
Shigio YAMAGUCHI <shigio@...>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


_______________________________________________
Bug-global mailing list
Bug-global@...
http://lists.gnu.org/mailman/listinfo/bug-global