From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#2008: etags - file-of-tag-function setting has no effect Date: Sun, 10 Jul 2011 18:15:17 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310315251 19852 80.91.229.12 (10 Jul 2011 16:27:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2011 16:27:31 +0000 (UTC) Cc: 2008@debbugs.gnu.org To: Trey Jackson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 10 18:27:27 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qfwqs-0004eg-N9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2011 18:27:26 +0200 Original-Received: from localhost ([::1]:39882 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qfwqr-0002X3-O6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2011 12:27:25 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfwqX-0002Wn-7w for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2011 12:27:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QfwqV-00037c-IM for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2011 12:27:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfwqV-00037Q-D6 for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2011 12:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QfwqT-00050E-Pf; Sun, 10 Jul 2011 12:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jul 2011 16:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2008 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 2008-submit@debbugs.gnu.org id=B2008.131031518519176 (code B ref 2008); Sun, 10 Jul 2011 16:27:01 +0000 Original-Received: (at 2008) by debbugs.gnu.org; 10 Jul 2011 16:26:25 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qfwps-0004zE-FV for submit@debbugs.gnu.org; Sun, 10 Jul 2011 12:26:24 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qfwpp-0004yw-F8 for 2008@debbugs.gnu.org; Sun, 10 Jul 2011 12:26:22 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qfwpd-0002y2-Bo; Sun, 10 Jul 2011 18:26:09 +0200 In-Reply-To: (Trey Jackson's message of "Fri, 23 Jan 2009 13:42:07 -0800") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Erikm (Luc Ferrari) & Thomas Lehn's _Les Protorhythmiques_: "Les Protorhythmiques" X-Hashcash: 1:23:110710:2008@debbugs.gnu.org::f0tCmhNOupbAkJew:00000000000000000000000000000000000000000Uwb0 X-Hashcash: 1:23:110710:trey_jackson@mentor.com::8cJF70HOedTjlEPM:000000000000000000000000000000000000010l5E X-MailScanner-ID: 1Qfwpd-0002y2-Bo MailScanner-NULL-Check: 1310919969.84153@eyQydB+nEQMYmMTcG8wzuQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 10 Jul 2011 12:27:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:48483 Archived-At: Trey Jackson , Trey Jackson 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/