Re: -std=c++11 and [PATCH] Improve the display of the source (bugs #6501,#7359)

2015-08-06 Thread Guillaume Munch
Le 06/08/2015 22:44, Jean-Marc Lasgouttes a écrit : Le 5 août 2015 03:18:37 UTC+02:00, Guillaume Munch <ga...@free.fr> a écrit : Hello, Here is a patch that I would like to discuss. It brings some improvements to the source view panel and it fixes <http://www.lyx.org/trac/ticket/6501

-std=c++11 and [PATCH] Improve the display of the source (bugs #6501,#7359)

2015-08-04 Thread Guillaume Munch
Hello, Here is a patch that I would like to discuss. It brings some improvements to the source view panel and it fixes http://www.lyx.org/trac/ticket/6501 (Cursor in LaTeX Source pane does not follow cursor in Editor window). I use a unique_ptr because it was the best way to do. Because of

-std=c++11 and [PATCH] Improve the display of the source (bugs #6501,#7359)

2015-08-04 Thread Guillaume Munch
Hello, Here is a patch that I would like to discuss. It brings some improvements to the source view panel and it fixes (Cursor in "LaTeX Source" pane does not follow cursor in Editor window). I use a unique_ptr because it was the best way to do.

Re: [PATCH] \{ and \% now correctly use the selection as their argument instead of erasing it (bug #6466)

2015-08-03 Thread Guillaume Munch
Le 31/07/2015 17:05, Guillaume Munch a écrit : \{ and \% now correctly use the selection as their argument instead of erasing it. Solves http://www.lyx.org/trac/ticket/6466. Please criticise. If there are no experts of math mode to review the patch, here's to help you check: 1) the change

Re: [PATCH] Improve the performance of the source panel by using a QTimer (bug #9493)

2015-08-03 Thread Guillaume Munch
Le 03/08/2015 00:53, Guillaume Munch a écrit : Le 02/08/2015 02:38, Richard Heck a écrit : On 08/01/2015 04:37 PM, Pavel Sanda wrote: Guillaume Munch wrote: +const int long_delay = 400; +const int short_delay = 40; So we will regenerate paragraph each 40ms no matter whether user

Re: [PATCH] \{ and \% now correctly use the selection as their argument instead of erasing it (bug #6466)

2015-08-03 Thread Guillaume Munch
Le 31/07/2015 17:05, Guillaume Munch a écrit : \{ and \% now correctly use the selection as their argument instead of erasing it. Solves <http://www.lyx.org/trac/ticket/6466>. Please criticise. If there are no experts of math mode to review the patch, here's to help you check: 1) the

Re: [PATCH] Improve the performance of the source panel by using a QTimer (bug #9493)

2015-08-03 Thread Guillaume Munch
Le 03/08/2015 00:53, Guillaume Munch a écrit : Le 02/08/2015 02:38, Richard Heck a écrit : On 08/01/2015 04:37 PM, Pavel Sanda wrote: Guillaume Munch wrote: +const int long_delay = 400; +const int short_delay = 40; So we will regenerate paragraph each 40ms no matter whether user

Re: [PATCH] Improve the performance of the source panel by using a QTimer (bug #9493)

2015-08-02 Thread Guillaume Munch
Le 02/08/2015 02:38, Richard Heck a écrit : On 08/01/2015 04:37 PM, Pavel Sanda wrote: Guillaume Munch wrote: +const int long_delay = 400; +const int short_delay = 40; So we will regenerate paragraph each 40ms no matter whether user typed/moved with the cursor or this gets triggered

Re: [PATCH] Improve the performance of the source panel by using a QTimer (bug #9493)

2015-08-02 Thread Guillaume Munch
Le 02/08/2015 02:38, Richard Heck a écrit : On 08/01/2015 04:37 PM, Pavel Sanda wrote: Guillaume Munch wrote: +const int long_delay = 400; +const int short_delay = 40; So we will regenerate paragraph each 40ms no matter whether user typed/moved with the cursor or this gets triggered

Re: [PATCH] \{ and \% now correctly use the selection as their argument instead of erasing it (bug #6466)

2015-08-01 Thread Guillaume Munch
Le 31/07/2015 23:08, Scott Kostyshak a écrit : On Fri, Jul 31, 2015 at 12:05 PM, Guillaume Munch ga...@free.fr wrote: \{ and \% now correctly use the selection as their argument instead of erasing it. Solves http://www.lyx.org/trac/ticket/6466. Please criticise. Also I noticed that LyX

[PATCH] minor improvements to mathed

2015-08-01 Thread Guillaume Munch
Here are again two very small patches if you agree. 1. Add \ensuremath to the list of math completions. 2. math-mode inserts \text instead of \mbox when already in math mode. For the latter, \mbox is meant as a way to switch to text mode, but \text from amstext is more appropriate for this

Re: [PATCH] \{ and \% now correctly use the selection as their argument instead of erasing it (bug #6466)

2015-08-01 Thread Guillaume Munch
Le 31/07/2015 23:08, Scott Kostyshak a écrit : On Fri, Jul 31, 2015 at 12:05 PM, Guillaume Munch <ga...@free.fr> wrote: \{ and \% now correctly use the selection as their argument instead of erasing it. Solves <http://www.lyx.org/trac/ticket/6466>. Please criticise. Also I noti

[PATCH] minor improvements to mathed

2015-08-01 Thread Guillaume Munch
Here are again two very small patches if you agree. 1. Add \ensuremath to the list of math completions. 2. math-mode inserts \text instead of \mbox when already in math mode. For the latter, \mbox is meant as a way to switch to text mode, but \text from amstext is more appropriate for this

[PATCH] \{ and \% now correctly use the selection as their argument instead of erasing it (bug #6466)

2015-07-31 Thread Guillaume Munch
\{ and \% now correctly use the selection as their argument instead of erasing it. Solves http://www.lyx.org/trac/ticket/6466. Please criticise. Also I noticed that LyX produces invalid LaTeX code if one nests braces and comments, e.g. by typing \{\%\{\% ... but this behaviour is already

[PATCH] Improve the performance of the source panel by using a QTimer (bug #9493)

2015-07-31 Thread Guillaume Munch
Improve the performance of the source panel by using a QTimer. Solves http://www.lyx.org/trac/ticket/9493. Please criticise. From d25446e1dc4aa62eae239fa95098134a1c71d9c0 Mon Sep 17 00:00:00 2001 From: gadmm ga...@free.fr Date: Fri, 31 Jul 2015 01:05:54 +0100 Subject: [PATCH] Improve the

Re: [PATCH] Improve the performance of the source panel by using a QTimer (bug #9493)

2015-07-31 Thread Guillaume Munch
Le 31/07/2015 19:05, Richard Heck a écrit : On 07/31/2015 12:12 PM, Guillaume Munch wrote: Improve the performance of the source panel by using a QTimer. Solves http://www.lyx.org/trac/ticket/9493. Please criticise. From d25446e1dc4aa62eae239fa95098134a1c71d9c0 Mon Sep 17 00:00:00 2001 From

[PATCH] \{ and \% now correctly use the selection as their argument instead of erasing it (bug #6466)

2015-07-31 Thread Guillaume Munch
\{ and \% now correctly use the selection as their argument instead of erasing it. Solves . Please criticise. Also I noticed that LyX produces invalid LaTeX code if one nests braces and comments, e.g. by typing \{\%\{\% ... but this behaviour is already

[PATCH] Improve the performance of the source panel by using a QTimer (bug #9493)

2015-07-31 Thread Guillaume Munch
Improve the performance of the source panel by using a QTimer. Solves . Please criticise. >From d25446e1dc4aa62eae239fa95098134a1c71d9c0 Mon Sep 17 00:00:00 2001 From: gadmm Date: Fri, 31 Jul 2015 01:05:54 +0100 Subject: [PATCH] Improve the

Re: [PATCH] Improve the performance of the source panel by using a QTimer (bug #9493)

2015-07-31 Thread Guillaume Munch
Le 31/07/2015 19:05, Richard Heck a écrit : On 07/31/2015 12:12 PM, Guillaume Munch wrote: Improve the performance of the source panel by using a QTimer. Solves <http://www.lyx.org/trac/ticket/9493>. Please criticise. From d25446e1dc4aa62eae239fa95098134a1c71d9c0 Mon Sep 17 00:00:0

<    5   6   7   8   9   10