Re: What the [bleep] is this?

David Kastrup <[email protected]> Thu, 17 Mar 2005 13:21:27 +0100
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
Ralf Angeli <[email protected]> writes:

> * 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.

This seems to be related to the "preactivate" flag.  Now we are having
two advices and it is stupid to preactivate in the first advice,
anyway (not that it would work by removing the first one).  I'll have
to see what other combination of flags can be made to work.  It might
be worth reporting to the Emacs-devel list.  The effect is the same
with 21.3, so it's nothing really new here.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum