1 Nov 2006 11:45
Re: Customizing ctags Behaviour
G. Milde <g.milde <at> web.de>
2006-11-01 10:45:37 GMT
2006-11-01 10:45:37 GMT
On 31.10.06, John E. Davis wrote:
> Hagemann, Robert <rhagemann <at> psipenta.com> wrote:
> >
> > 1. In several of our modes, the hyphen ('-') is part of a name,
...
> > 2. I'd like to have the tags-file in a directory like
> > $HOME/e/develop/tags.
> You will need to patch ctags.sl. I have appended a patch that
> addresses these issues. The patch modifies ctags.sl to use
> the buffer-local variables Word_Chars and Tags_File when they exist
...
> To use it, create a mode-specific hook that sets buffer-local
> variables to the desired values. For example,
> define c_mode_hook ()
> {
> .
> .
> if (path_basename (buffer_filename ()) == "/some/path")
> {
> create_blocal_var ("Word_Chars");
> set_blocal_var ("Word_Chars", "-A-Za-z0-9");
> create_blocal_var ("Tags_File");
> set_blocal_var ("Tags_File", "/path/to/tags/file");
> }
> .
> .
(Continue reading)
RSS Feed