Nick Roberts <[EMAIL PROTECTED]> 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


_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to