Re: [LyX/master] Generalise the deletion protection mechanism from math to text (#9540)

2017-02-28 Thread Guillaume Munch
Le 28/02/2017 à 11:22, Jean-Marc Lasgouttes a écrit : I agree. My point is that the behavior should be predictable and as far as possible uniform between text and math. Note that I am actually not sure that special casing empty insets is a good idea. I makes things less predictable, and I do

Re: [LyX/master] Generalise the deletion protection mechanism from math to text (#9540)

2017-02-28 Thread Jean-Marc Lasgouttes
Le 27/02/2017 à 20:16, Guillaume Munch a écrit : Le 27/02/2017 à 11:23, Jean-Marc Lasgouttes a écrit : Small questions though: - I create an empty \mathord inset in a formula, backspace does use deletion confirmation. Is this normal? This is the legacy behaviour, but can be changed. - if

Re: [LyX/master] Generalise the deletion protection mechanism from math to text (#9540)

2017-02-27 Thread Guillaume Munch
Le 27/02/2017 à 11:23, Jean-Marc Lasgouttes a écrit : Small questions though: - I create an empty \mathord inset in a formula, backspace does use deletion confirmation. Is this normal? This is the legacy behaviour, but can be changed. - if there are several cells (empty fraction) that are

Re: [LyX/master] Generalise the deletion protection mechanism from math to text (#9540)

2017-02-27 Thread Jean-Marc Lasgouttes
Le 24/02/2017 à 22:10, Guillaume Munch a écrit : I like it in theory (we'll see for the practice). It would have been nice to implement this as much as possible at generic level (BUfferView::dispatch) so that math and text really behave identically. I am not sure to understand your suggestion.

Re: [LyX/master] Generalise the deletion protection mechanism from math to text (#9540)

2017-02-26 Thread Guenter Milde
On 2017-02-25, Guillaume Munch wrote: > Le 25/02/2017 à 21:12, Guillaume Munch a écrit : >> Le 25/02/2017 à 20:07, Guenter Milde a écrit : >>> On a similar note: could the "backspace at begin of inset dissolves it" >>> feature be ported to mathed, too? >> This is a good idea, for consistency

Re: [LyX/master] Generalise the deletion protection mechanism from math to text (#9540)

2017-02-25 Thread Guillaume Munch
Le 25/02/2017 à 21:12, Guillaume Munch a écrit : Le 25/02/2017 à 20:07, Guenter Milde a écrit : On a similar note: could the "backspace at begin of inset dissolves it" feature be ported to mathed, too? This is a good idea, for consistency with math macros. If you are interested in

Re: [LyX/master] Generalise the deletion protection mechanism from math to text (#9540)

2017-02-25 Thread Guillaume Munch
Le 25/02/2017 à 20:07, Guenter Milde a écrit : On 2017-02-18, Guillaume Munch wrote: Generalise the deletion protection mechanism from math to text (#9540) Now backspace and delete in text will select non-empty math and text insets before deleting them. This is consistent with

Re: [LyX/master] Generalise the deletion protection mechanism from math to text (#9540)

2017-02-25 Thread Guenter Milde
On 2017-02-18, Guillaume Munch wrote: > Generalise the deletion protection mechanism from math to text (#9540) > Now backspace and delete in text will select non-empty math and > text insets before deleting them. This is consistent with what > happens in math already. Sounds

Re: [LyX/master] Generalise the deletion protection mechanism from math to text (#9540)

2017-02-24 Thread Guillaume Munch
Le 22/02/2017 à 14:59, Jean-Marc Lasgouttes a écrit : Le 18/02/2017 à 23:05, Guillaume Munch a écrit : commit 71623b88b2c613dd4ab826a9783a53e840bcd6e1 Author: Guillaume Munch Date: Sat Feb 18 19:12:55 2017 +0100 Generalise the deletion protection mechanism from math to

Re: [LyX/master] Generalise the deletion protection mechanism from math to text (#9540)

2017-02-22 Thread Jean-Marc Lasgouttes
Le 18/02/2017 à 23:05, Guillaume Munch a écrit : commit 71623b88b2c613dd4ab826a9783a53e840bcd6e1 Author: Guillaume Munch Date: Sat Feb 18 19:12:55 2017 +0100 Generalise the deletion protection mechanism from math to text (#9540) Now backspace and delete in text will