[Top][All Lists]

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

bug#2008: etags - file-of-tag-function setting has no effect

From: Lars Magne Ingebrigtsen
Subject: bug#2008: etags - file-of-tag-function setting has no effect
Date: Sun, 10 Jul 2011 18:15:17 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Trey Jackson <address@hidden>, Trey Jackson
<address@hidden> writes:

> I tried setting file-of-tag-function, but it appears not to have any effect
> (it's never called) because the 'etags-recognize-tags-table function makes
> the variable buffer local to the TAGS file/buffer, and then sets it to
> 'etags-file-of-tag.  So my setting has no effect (unless I specifically set
> it in TAGS buffers *after* the tags file is loaded).
> Is this intentional?

Looking at the code, it looks intentional.  There are a whole bunch of
these variables that are local to each buffer, so they are probably
intended to allow per-file customisations.

> The workaround I used is to set the variable after the TAGS file is 
> recognized:
> (defadvice tags-table-mode (after tags-table-mode-after-commands activate)
>   "do some stuff after tags-table-mode has been run"
>   (setq file-of-tag-function 'tj-etags-file-of-tag))

I think that's probably the right way to do this.

(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

reply via email to

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