all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#2008: etags - file-of-tag-function setting has no effect
@ 2009-01-23 21:42 Trey Jackson
  2011-07-10 16:15 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Trey Jackson @ 2009-01-23 21:42 UTC (permalink / raw
  To: bug-gnu-emacs


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


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?

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))




If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/local/share/emacs/22.1/etc/DEBUG for instructions.


In GNU Emacs 22.1.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2007-06-13 on quartzville
Windowing system distributor `AT&T Laboratories Cambridge', version 11.0.3332
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Mail

Minor modes in effect:
  jabber-activity-mode: t
  server-mode: t
  global-pabbrev-mode: t
  pabbrev-mode: t
  shell-dirtrack-mode: t
  display-time-mode: t
  global-auto-revert-mode: t
  flyspell-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  abbrev-mode: t

Recent input:
a m e SPC u p <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> u s e d SPC i s 
: <return> <return> C-y C-p C-p C-p C-p C-b SPC t o 
SPC s e t SPC t h e SPC v a r i a b l e SPC a f t e 
r SPC t h e SPC T A G S S-SPC f i l e SPC i s SPC r 
e c o g n i z e d C-n C-a C-n C-n C-n C-n C-n C-p <return> 
<return> <return> C-p C-p C-p C-n C-n C-n t h a n k 
s , <return> <return> T J M-< C-n C-n C-e C-p M-b M-b 
M-b M-b M-b r e g a r d i n g M-d C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-p C-n C-n M-b M-b M-b M-b C-e M-b M-b M-b M-b 
s p e c i f i c a l l y SPC C-e <M-backspace> <backspace> 
T A G S M-q C-n C-n C-e <down-mouse-1> <mouse-movement> 
<mouse-movement> <drag-mouse-1> M-x e m a c SPC v e 
r <tab> <return> C-x C-f ~ / d o w n l o a d s / e 
m <tab> <tab> C-g M-x M-p <return> C-x o C-p C-p C-p 
C-p C-p C-p C-a C-p C-p M-f M-f <backspace> 2 <help-echo> 
C-x o C-p C-n C-x o C-x 1 C-a C-n C-n C-SPC C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p 
C-w M-x e m a c s SPC b u <tab> <backspace> <backspace> 
b u <tab> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> r e 
p o <tab> r <tab> b <tab> <return>

Recent messages:
Mark set [2 times]
Auto-saving...done
Mark set
GNU Emacs 22.1.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2007-06-13 on quartzville
Making completion list...
Quit
GNU Emacs 22.1.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2007-06-13 on quartzville
Mark set
Making completion list...
Loading emacsbug...done


-- 
Trey Jackson
bigfaceworm@gmail.com

Mean people suck.







^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#2008: etags - file-of-tag-function setting has no effect
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-10 16:15 UTC (permalink / raw
  To: Trey Jackson; +Cc: 2008

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/





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-10 16:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.