[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX] Re: LaTeX tool bar on by default?
From: |
Reiner Steib |
Subject: |
[AUCTeX] Re: LaTeX tool bar on by default? |
Date: |
Fri, 03 Feb 2006 16:36:53 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
On Sun, Jan 15 2006, David Kastrup wrote:
> Reiner Steib <address@hidden> writes:
>> On Sat, Jan 14 2006, David Kastrup wrote:
>>> I don't want the code loaded when the toolbar is switched off. Any
>>> idea how to deal with that?
>>
>> In message.el and Gnus, we check tool-bar-mode (Emacs) or (featurep
>> 'toolbar) (XEmacs). So something similar to the following in
>> `TeX-latex-mode' would be fine, I think:
>>
>> (and (if (featurep 'xemacs)
>> (featurep 'toolbar)
>> (default-value 'tool-bar-mode))
>
> (default-value 'tool-bar-mode) ? Why that? Why not just tool-bar-mode?
I don't know.
>> ;; New variable, defaulting to t:
>> LaTeX-enable-toolbar
>> (LaTeX-install-toolbar))
>
> This seems to have the disadvantage that if people subsequently switch
> the toolbar on, the LaTeX toolbar won't appear.
>
> So perhaps we should register LaTeX-maybe-install-toolbar into
> tool-bar-mode-on-hook and let LaTeX-maybe-install-toolbar check
> LaTeX-enable-toolbar and call LaTeX-install-toolbar only when it is
> active.
>
> LaTeX-maybe-install-toolbar and LaTeX-enable-toolbar would be defined
> in latex.el.
Committed. Seems to work in Emacs 21 and 22. Dunno about XEmacs; I
couldn't figure out quickly how to en-/disable tool bars in XEmacs.
If it works good enough to keep it in CVS, I'll update the docs
accordingly.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX] Re: LaTeX tool bar on by default?,
Reiner Steib <=