texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Conditional aligned item in preference widget


From: Joris van der Hoeven
Subject: Re: [Texmacs-dev] Conditional aligned item in preference widget
Date: Fri, 22 Nov 2013 15:33:03 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Fri, Nov 22, 2013 at 02:56:01PM +0100, François Poulain wrote:
> I see, in r7200, Miguel asking about putting an (if ... ) in an
> (aligned ...) widget. I wanted to do so, thus I seeked about it.
> 
> The problem is that the code handling the (aligned ...) (which is
> make-aligned in TeXmacs/progs/kernel/gui/menu-widget.scm) suppose to
> have (item ...) in his body. I don't know actually how to fix it
> (maybe Joris have an idea), but a possible workaround is to put the
> (if ...) on the arguments of the item.
> 
> Anyway, a remaining problem is that the predicate is not evaluated
> in real time, but during the construction of the widget. So, making
> conditionals items in a preference widget remain tedious, imho
> (because the user will have to open/set option/close/open/set
> option/close...).
> 
> Joris, do you have an advice or a fix for this purpose?

In paragraph-formatter-basic, I use 'assuming' for this purpose.
However, this is not exactly an 'if'.

Best wishes, --Joris



reply via email to

[Prev in Thread] Current Thread [Next in Thread]