bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 11.83; AUCTeX toolbar


From: David Kastrup
Subject: Re: [Bug-AUCTeX] 11.83; AUCTeX toolbar
Date: Thu, 09 Nov 2006 23:42:18 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Nick Roberts <address@hidden> writes:

> Load AUCTeX is e.g by visiting a LaTeX file.  Turn tool-bar-mode on, then off
> and on again.  Then every buffer has AucTeX buttons in its toolbar and all
> local icons/buttons are overwritten.  If I load AUCTeX by visiting a LaTeX 
> file
> and then switch buffer before turning on tool-bar-mode then that buffer has
> AucTeX buttons and that of the LaTeX file doesn't!
>
> I only have byte compiled lisp for AucTeX but the problem seems to be with
> tool-bar-mode-on-hook which is set to LaTeX-maybe-install-toolbar.  This
> seems to be an AucTeX variable (in which case it shouldn't pollute the
> tool-bar- namespace) and it interferes with the local values of tool-bar-map.
>
> Why not just do `something like':
>
>  (if some-AucTeX-variable
>    (set (make-local-variable 'tool-bar-map) LaTeX-tool-bar-map))
>
> in LaTeX mode?

More likely something like

(dolist (buf (buffer-list))
  (with-current-buffer buf
    (if TeX-mode-p
       (...

In short: do this operation in all buffers instead of just possibly
the current one.

Maybe TeX-mode-p needs to be something else, not sure about that.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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