[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] Re: 2008-03-12; AUC-TeX doesn't honor XEmacs toolbar visi
[AUCTeX-devel] Re: 2008-03-12; AUC-TeX doesn't honor XEmacs toolbar visibility specification
Thu, 17 Apr 2008 22:15:35 +0200
* David Kastrup (2008-04-16) writes:
> Anybody on the developer list who'd have an idea about what the problem
> could be here?
Isn't it obvious? He is using XEmacs.
> Didier Verna <address@hidden> writes:
>> XEmacs provides a set of custom variables (specifiers actually) to
>> control the visilibity of the toolbar(s). These are
>> ((default|left|right|top|bottom)-)?toolbar-visible-p. It seems that
>> AUC-TeX doesn't honor either of these (the toolbar is displayed whatever
>> their value).
I really don't get how these variables are supposed to work. Why does
everything in XEmacs have to be so contorted? At least for the easy
case of `toolbar-visible-p' the following patch seems to do the trick.
However, setting `toolbar-visible-p' to t in a LaTeX buffer will display
the tool bar with the default buttons, not with LaTeX-specific ones. So
one could probably put the test somewhere earlier into the call stack.
--- toolbar-x.el.~1.17.~ 2008-02-09 19:39:05.000000000 +0100
+++ toolbar-x.el 2008-04-17 21:57:44.000000000 +0200
@@ -1622,7 +1622,7 @@
;; deal with specifiers
;; - remove all specifiers for toolbars witout buttons
- (if default
+ (if (and default toolbar-visible-p)
(if (memq (default-toolbar-position) '(top bottom))