help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I reload etags project path


From: Richard Riley
Subject: Re: How can I reload etags project path
Date: Mon, 03 Nov 2008 16:56:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"yinglcs@gmail.com" <yinglcs@gmail.com> writes:

> Hi,
>
> In my .emacs I have defined the etags project path like this:
>
>
> (defvar etags-project-path "/media/storage/working" "*Base path for
> your project")
>
> (require 'etags)
> (setq tags-file-name (expand-file-name "TAGS" etags-project-path))
>
> After i open emacs, how can i point to a different project path,let's
> say i have multiple project etag files, how can i switch dynamically?
>
> Thank you.

visit-tags-table

,----
| visit-tags-table is an interactive autoloaded Lisp function in
| `etags.el'.
| 
| It is bound to <menu-bar> <edit> <goto> <set-tags-name>.
| 
| (visit-tags-table file &optional local)
| 
| Tell tags commands to use tags table file file.
| file should be the name of a file created with the `etags' program.
| A directory name is ok too; it means file TAGS in that directory.
| 
| Normally M-x visit-tags-table sets the global value of `tags-file-name'.
| With a prefix arg, set the buffer-local value instead.
| When you find a tag with M-., the buffer it finds the tag
| in is given a local value of this variable which is the name of the tags
| file the tag was in.
`----


reply via email to

[Prev in Thread] Current Thread [Next in Thread]