* VTags dynamic tags specification
@ 2008-09-27 7:40 Denis Golovan
0 siblings, 0 replies; 2+ messages in thread
From: Denis Golovan @ 2008-09-27 7:40 UTC (permalink / raw)
To: help-gnu-emacs
Hi, all
Does anybody uses VTags?
It works well, but I'd like to automate it's tags file adding.
Unfortunately, I have not managed to do that.
Every time after opening project file, it asks for tags file to enter
manually. In fact tags file lies in ./tmp/tags file relative to dpr.
Here is that .emacs part
;;======================VTAGS======================
(load "vtags")
(defun dsg-tags-add-table (file)
"add tags table"
(message "Tags %s" file)
;;That's where I try to tell it tags file <<<<<<<<<<<<<<
;(add-to-list 'tags-table-list file)
;(add-to-list 'tags-table-list (quote (file)))
;(setq tags-table-computed-list (tags-compute-list (get-tagfileinfo file)))
;(custom-set-variables
; '(tags-table-list (quote (file)))
;)
;;No way works actually :( <<<<<<<<<<<<<<
(vtags-mode)
(message "Tags %s" file)
)
(defun dsg-tags-add ()
"add tags table"
(if (string-match "\\.dpr$" (buffer-file-name))
(dsg-tags-add-table
(concat (file-name-directory (buffer-file-name)) "tmp/tags")
)
)
)
(defun dsg-tags ()
"add tags table"
(interactive)
(dsg-tags-add)
)
(add-hook 'find-file-hooks
(function
(lambda ()
(dsg-tags-add)
)
)
)
;;======================VTAGS======================
I'm not a elisp guru, as you see :). So, please help
Thanks.
--
Best regards,
Denis Golovan
^ permalink raw reply [flat|nested] 2+ messages in thread
* VTags dynamic tags specification
@ 2008-09-27 8:35 Denis Golovan
0 siblings, 0 replies; 2+ messages in thread
From: Denis Golovan @ 2008-09-27 8:35 UTC (permalink / raw)
To: help-gnu-emacs
Hi, all
Does anybody uses VTags?
It works well, but I'd like to automate it's tags file adding.
Unfortunately, I have not managed to do that.
Every time after opening project file, it asks for tags file to enter
manually. In fact tags file lies in ./tmp/tags file relative to dpr.
Here is that .emacs part
;;======================VTAGS======================
(load "vtags")
(defun dsg-tags-add-table (file)
"add tags table"
(message "Tags %s" file)
;;That's where I try to tell it tags file <<<<<<<<<<<<<<
;(add-to-list 'tags-table-list file)
;(add-to-list 'tags-table-list (quote (file)))
;(setq tags-table-computed-list (tags-compute-list (get-tagfileinfo file)))
;(custom-set-variables
; '(tags-table-list (quote (file)))
;)
;;No way works actually :( <<<<<<<<<<<<<<
(vtags-mode)
(message "Tags %s" file)
)
(defun dsg-tags-add ()
"add tags table"
(if (string-match "\\.dpr$" (buffer-file-name))
(dsg-tags-add-table
(concat (file-name-directory (buffer-file-name)) "tmp/tags")
)
)
)
(defun dsg-tags ()
"add tags table"
(interactive)
(dsg-tags-add)
)
(add-hook 'find-file-hooks
(function
(lambda ()
(dsg-tags-add)
)
)
)
;;======================VTAGS======================
I'm not a elisp guru, as you see :). So, please help
Thanks.
--
Best regards,
Denis Golovan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-27 8:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-27 7:40 VTags dynamic tags specification Denis Golovan
-- strict thread matches above, loose matches on Subject: below --
2008-09-27 8:35 Denis Golovan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).