Does anyone use math inset locking?

Scott Kostyshak skostysh at lyx.org
Wed Dec 6 03:28:11 UTC 2023


On Tue, Dec 05, 2023 at 06:48:38PM -0500, Richard Kimberly Heck wrote:
> On 12/5/23 17:01, Jean-Marc Lasgouttes wrote:
> > Le 05/12/2023 à 20:40, Scott Kostyshak a écrit :
> > > I came across what I thought was a bug. In the attached, if I put the
> > > cursor just inside the note and press ctrl + i for inset-toggle, I
> > > expected the note to close.
> > > 
> > > I looked around in the code, and I found an interesting chunk in
> > > InsetMathNest.cpp:
> > > 
> > >     // 'Locks' the math inset. A 'locked' math inset behaves as a unit
> > >     // that is traversed by a single <CursorLeft>/<CursorRight>.
> > >     case LFUN_INSET_TOGGLE:
> > >         cur.recordUndo();
> > >         lock(!lock());
> > >         cur.popForward();
> > >         break;
> > > 
> > > I don't know if that is actually related to the issue I was looking at,
> > > but I had never heard of this feature. Does anyone use it? Can someone
> > > give me an example of a case where it is used? Is it indeed saved in the
> > > file format? I think I might find this feature useful.
> > > 
> > > It is fun to discover new features no matter how long I've been
> > > around LyX.
> > 
> > I think it is a very old feature from André's era, I thought it was not
> > working anymore, and it seems inded that it is broken.
> > 
> > Shall we salvage it, or kill it? It can also be used inside formulas in
> > theory.
> 
> I doubt it's worth the effort to get it working again. But maybe just
> comment it out, in case anyone decides they want to work on it.

I don't have a preference. I can see its appeal, but if it would require
a lot of work then might as well wait until someone motivated comes.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20231205/44036cc6/attachment.asc>


More information about the lyx-devel mailing list