On Wed, May 29, 2002 at 09:32:38PM +0200, Jean-Marc Lasgouttes wrote:
> Andre Poenitz wrote:
> >The attached patch introduces "real" insets for font changes for mathed.
> >This  
> > (a) is not yet fully functional again
> > (b) is still a bit awkward to navigate (an extra <Left> or <Right>)
> > (c) simplifies the code by removing some not-so-pretty hacks.
> >
> >Comments?
> 
> 
> (b) is exactly the problem I have with this font-as-inset approach.

What about the following idea: Lets have a bool member 'lock' in
MathNestInset. When this is set to 'true', the cursor does not enter the
inset but rather handles the inset as "one big symbol". This would impose
no navigation overhead for one-char-font-changes (which makes the majority
of font changes according to /my/ usage pattern). The lock could be toggled
by placing the cursor in front of the locked inset and issuing
LFUN_INSET_TOGGLE. MathFontInsets could be made locked by default, so after
creation there is no extra action needed to lock them, so UI won't change
much.

> Do we really want, for the sake of good code and intellectual
> satisfaction, to have all documents littered with boxen?

I am willing to pay a bit for good code. Not too much, but a bit.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to