[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gtags.el. work with links.
From: |
Ivan Romanov |
Subject: |
gtags.el. work with links. |
Date: |
Tue, 06 Oct 2009 22:13:33 +0600 |
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.
- gtags.el. work with links.,
Ivan Romanov <=