all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Trey Jackson <trey_jackson@mentor.com>
Cc: 2008@debbugs.gnu.org
Subject: bug#2008: etags - file-of-tag-function setting has no effect
Date: Sun, 10 Jul 2011 18:15:17 +0200	[thread overview]
Message-ID: <m3k4bq159m.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <u273af9aeds.fsf@mentor.com> (Trey Jackson's message of "Fri, 23 Jan 2009 13:42:07 -0800")

Trey Jackson <bigfaceworm@gmail.com>, Trey Jackson
<bigfaceworm@gmail.com> 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	other threads:[~2011-07-10 16:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-23 21:42 bug#2008: etags - file-of-tag-function setting has no effect Trey Jackson
2011-07-10 16:15 ` Lars Magne Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3k4bq159m.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    --cc=2008@debbugs.gnu.org \
    --cc=trey_jackson@mentor.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.