On May 22, 2010, at 10:41 AM, Ralf Angeli wrote:
>> 
>> AUCTeX doesn't reliably install its tool-bars because it erroneously checks 
>> `tool-bar-mode' and uses a non-existing (Emacs 22/23) 
>> `tool-bar-mode-on-hook'.
> 
> Wrong.  Try this:
> 
> $ emacs -Q --eval "(progn (add-hook 'tool-bar-mode-on-hook (lambda () 
> (message \"XXXXXXXXXXXXX\"))) (tool-bar-mode) (tool-bar-mode))"

OK, something like that works.   However, what I tried was this:

emacs -Q   (Emacs 23, NS)

(tool-bar-mode 1)
(boundp 'tool-bar-mode-on-hook)

--> nil

And if you look at the definition of `define-minor-mode', you can find out why:

;; The on/off hooks are here for backward compatibility only.
(run-hooks ',hook (if ,mode ',hook-on ',hook-off))

Are those -on-hooks deprecated?

>> Note that the tool-bar can easily be enabled via frame parameter and also 
>> via the UI (for one frame) without ever touching `tool-bar-mode'.
> 
> But `tool-bar-mode' should be t if the tool bar is enabled.

Why is that?

Emacs -Q
(set-frame-parameter nil 'tool-bar-lines 1)
tool-bar-mode

--> nil

You can have individually controlled tool-bar parameters in each frame.
For example, I would use LaTeX-mode-hook to switch on a tool-bar there, but 
have it off generally.


>> I'm installing the change below in Aquamacs; let me know if you see a 
>> problem with it.  
> 
> Then the LaTeX tool bar will not show up if you start Emacs without a
> tool bar, load a LaTeX file and activate Tool Bar mode.

Ah, because (featurep 'toolbar) is nil.  So maybe that shouldn't be checked at 
all and the tool-bar should be installed no matter what.  That said, I don't 
know if you're supporting older Emacsen without a tool-bar, or if installing it 
would be harmful on non-window systems.


> By the way, speaking of nuisances, the lines in your mails are too long
> which makes them hard to read.

What mail client do you use? 
If in Emacs, try M-x visual-line-mode.  Or set word-wrap to t.

I can't predict how wide your window is today, so lines can't be broken here.


> Uh, plain-tex.el is not part of AUCTeX 11.86.  I hope you are not
> shipping Aquamacs with a CVS version of AUCTeX.

No that's not the intention.  But plain-tex is included, and I'll have to defer 
to Konrad who maintains the package within Aquamacs.  I'll investigate, thanks 
for point this out.
_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to