Re: What the [bleep] is this?

Ralf Angeli <[email protected]> Thu, 17 Mar 2005 12:47:30 +0100
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* David Kastrup (2005-03-17) writes:

> Can anybody figure out what the [bleep] is going on here?  I can't see
> anything in tex-bar.el that would account for that, except maybe the
> (require 'tex-buf), but what can _that_ have to do with it?

It looks like some sort of race condition.  If I start Emacs with
`emacs -Q', evaluate the statements

(require 'tex-site)
(load "preview-latex.el" nil t t)
(add-hook 'LaTeX-mode-hook 'LaTeX-install-toolbar)

and open a LaTeX file, the advice is gone.  But if one does not add
`LaTeX-install-toolbar' to `LaTeX-mode-hook' and activates the tool
bar after loading a LaTeX file via `M-: (LaTeX-install-toolbar) RET'
the advice remains intact.

-- 
Ralf