[AUCTeX-devel] Re: 2008-03-12; AUC-TeX doesn't honor XEmacs toolbar visibility specification

2008-04-18 Thread Ralf Angeli
* Didier Verna (2008-04-18) writes:

> Ralf Angeli <[EMAIL PROTECTED]> wrote:
>
>> Isn't it obvious?  He is using XEmacs.
>
>> I really don't get how these variables are supposed to work.  Why does
>> everything in XEmacs have to be so contorted ?
>
>   ROTFL !
>
> OK, I get it. Sorry for the disturbance. Actually, I can live very well
> with the toolbar visible; I wonder why I bothered reporting the bug in
> the first place.
>
> Welcome to my kill file, we wish you a pleasant journey !

You should really try to adjust your humour detector.

And I'd consider kill-filing somebody who invested quite some time in
order to help fixing the bug and then got cranky because it did not work
out quite inappropriate.

I'm still interested in fixing the bug and I am still hoping that
somebody who understands the XEmacs way of handling the tool bar can
help out.

-- 
Ralf


___
auctex-devel mailing list
auctex-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex-devel


[AUCTeX-devel] Re: 2008-03-12; AUC-TeX doesn't honor XEmacs toolbar visibility specification

2008-04-18 Thread Didier Verna
Ralf Angeli <[EMAIL PROTECTED]> wrote:

> Isn't it obvious?  He is using XEmacs.

> I really don't get how these variables are supposed to work.  Why does
> everything in XEmacs have to be so contorted ?

  ROTFL !

OK, I get it. Sorry for the disturbance. Actually, I can live very well
with the toolbar visible; I wonder why I bothered reporting the bug in
the first place.

Welcome to my kill file, we wish you a pleasant journey !

-- 
5th European Lisp Workshop at ECOOP 2008, July 7: http://elw.bknr.net/2008/

Didier Verna, [EMAIL PROTECTED], http://www.lrde.epita.fr/~didier

EPITA / LRDE, 14-16 rue Voltaire   Tel.+33 (0)1 44 08 01 85
94276 Le Kremlin-BicĂȘtre, France   Fax.+33 (0)1 53 14 59 22  [EMAIL PROTECTED]


___
auctex-devel mailing list
auctex-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex-devel


[AUCTeX-devel] Re: 2008-03-12; AUC-TeX doesn't honor XEmacs toolbar visibility specification

2008-04-17 Thread David Kastrup
Ralf Angeli <[EMAIL PROTECTED]> writes:

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

How does it make us look when we appear too stupid to get along with
XEmacs as long as there are still users that manage it?

Something like that.

>> Didier Verna <[EMAIL PROTECTED]> 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.

They are specifiers.

> Why does everything in XEmacs have to be so contorted?

Because it is versatile: you can specify how something should look in a
particular buffer, in a particular frame, on a particular display, in
general a "locale".  That's the idea.  We have something like that for
face definitions in Emacs, where you can specify face details per
display capability and based on brightness.

Try
M-x customize-face RET highlight RET
and then press "State -> For All Kinds of Displays"

and then you get a lot of special-cased stuff.  XEmacs specifiers are a
sort of generalizations and they work for images, toolbars, menu bars
and other stuff.

Really a brilliant and versatile idea.  Apparently.  Unfortunately, I've
never understood anything about them.  It has been some time since I
tried last time.  Problem is that they are not an opaque data structure,
no really complete set of accessor functions exists, the documentation
is a maze of cross-referring incomplete fragments, it is not clear when
and how a "specifier" gets replaced by an "instantiation" and what that
means and so on.  Things might have improved since I last looked,
possibly.  No idea.

I have read something akin to "hope you did not use setq on those, they
are specifiers" concerning some of those variables on the XEmacs
developer list.

I probably come across as a complete nutcase, but anyway, the gist of
this may be: if there are ways to tell XEmacs "don't show this if the
toolbar is supposed to be off" or to _know_ when to do something
particular or not, and some XEmacs user can figure this out, or can
figure out which questions to ask on xemacs-beta, this might get us a
good measure forward to doing the right thing.

> 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.0 +0100
> +++ toolbar-x.el  2008-04-17 21:57:44.0 +0200
> @@ -1622,7 +1622,7 @@
> left-width)))
>  ;; deal with specifiers
>  ;; - remove all specifiers for toolbars witout buttons
> -(if default
> +(if (and default toolbar-visible-p)
>   (progn
> (if (memq (default-toolbar-position) '(top bottom))
> (set-specifier default-toolbar-visible-p

I have my doubts this is correct.  The
(set-specifier default-toolbar-visible-p ...
seems to indicate that the respective variable takes specifiers that
would conceivably depend...

Actually, I have no clue.  It is obvious that we need to do something
about this in AUCTeX, but I suppose we need to ask somebody who
understands this specifier business.

Didier, any idea who'd be the right person to question?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


___
auctex-devel mailing list
auctex-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex-devel


[AUCTeX-devel] Re: 2008-03-12; AUC-TeX doesn't honor XEmacs toolbar visibility specification

2008-04-17 Thread Ralf Angeli
* 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 <[EMAIL PROTECTED]> 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.0 +0100
+++ toolbar-x.el2008-04-17 21:57:44.0 +0200
@@ -1622,7 +1622,7 @@
  left-width)))
 ;; deal with specifiers
 ;; - remove all specifiers for toolbars witout buttons
-(if default
+(if (and default toolbar-visible-p)
(progn
  (if (memq (default-toolbar-position) '(top bottom))
  (set-specifier default-toolbar-visible-p

-- 
Ralf


___
auctex-devel mailing list
auctex-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex-devel