Re: [LyX/master] Correctly track ulem commands with change tracking

2016-10-23 Thread Enrico Forestieri
On Sun, Oct 23, 2016 at 09:09:22PM +0200, Guillaume Munch wrote: > Le 23/10/2016 à 19:55, Richard Heck a écrit : > > On 10/23/2016 01:02 PM, Guillaume Munch wrote: > > > Le 23/10/2016 à 18:38, Enrico Forestieri a écrit : > > > > commit dea5ba16de1b98d93cf30ab65

Re: [LyX/master] Move class definitions inside main class

2016-10-22 Thread Enrico Forestieri
On Sun, Oct 23, 2016 at 12:26:55AM +0200, Guillaume Munch wrote: > Le 23/10/2016 à 00:09, Enrico Forestieri a écrit : > > On Sat, Oct 22, 2016 at 11:26:15PM +0200, Guillaume Munch wrote: > > > > > commit 148b3ae773c441430311feb29eba01a765bc6c48 > > > Auth

Re: [LyX/master] Move class definitions inside main class

2016-10-22 Thread Enrico Forestieri
On Sat, Oct 22, 2016 at 11:26:15PM +0200, Guillaume Munch wrote: > commit 148b3ae773c441430311feb29eba01a765bc6c48 > Author: Guillaume Munch > Date: Tue Oct 11 12:09:38 2016 +0200 > > Move class definitions inside main class > > Prepare for following commits. >

Re: Inverted colors for cursor

2016-10-22 Thread Enrico Forestieri
On Sat, Oct 22, 2016 at 04:49:35PM +0200, Jean-Marc Lasgouttes wrote: > > As LyX stands now, it is often very difficult to put the mouse cursor > between two insets, because insets, contrary to characters, are active > beasts. If you click a bit to close to them, something happens. This is why >

Re: [LyX/master] Fix Ticket #9741 misleading name for font-encoding setting "default".

2016-10-22 Thread Enrico Forestieri
On Sat, Oct 22, 2016 at 05:16:49PM +0200, Jean-Marc Lasgouttes wrote: > Le 22/10/2016 à 17:15, Enrico Forestieri a écrit : > > If you ask me, I think that 99.99% of users didn't change that default. > > If someone was needing a different encoding, it is much more likely that >

Re: [LyX/master] Fix Ticket #9741 misleading name for font-encoding setting "default".

2016-10-22 Thread Enrico Forestieri
On Sat, Oct 22, 2016 at 05:05:04PM +0200, Jean-Marc Lasgouttes wrote: > Le 22/10/2016 à 16:58, Enrico Forestieri a écrit : > > > I still wonder why we should keep this preference. > > > > Good observation. I think for backward compatibility. Otherwise we > > don't

Re: [LyX/master] Fix Ticket #9741 misleading name for font-encoding setting "default".

2016-10-22 Thread Enrico Forestieri
On Sat, Oct 22, 2016 at 04:37:04PM +0200, Jean-Marc Lasgouttes wrote: > Le 22/10/2016 à 13:40, Enrico Forestieri a écrit : > > Moreover, we add a new entry "LyX Default", which corresponds > > to what is now the default (i.e, load fontenc with the value specified > >

Re: [LyX/master] Fix Ticket #9741 misleading name for font-encoding setting "default".

2016-10-22 Thread Enrico Forestieri
On Fri, Oct 21, 2016 at 11:16:30PM +, Guenter Milde wrote: > On 2016-10-21, Enrico Forestieri wrote: > > On Fri, Oct 21, 2016 at 07:05:29PM +, Guenter Milde wrote: > >> On 2016-10-21, Enrico Forestieri wrote: > > >> > I think that the old "Non

Re: [LyX/master] Fix Ticket #9741 misleading name for font-encoding setting "default".

2016-10-21 Thread Enrico Forestieri
On Fri, Oct 21, 2016 at 07:05:29PM +, Guenter Milde wrote: > On 2016-10-21, Enrico Forestieri wrote: > > > I think that the old "None (no fontenc)" was more than adequate. > > This tells that *LyX* is not going to select any encoding. > > However, it was

Re: [LyX/master] Fix Ticket #9741 misleading name for font-encoding setting "default".

2016-10-21 Thread Enrico Forestieri
On Fri, Oct 21, 2016 at 12:05:00PM +0200, Jürgen Spitzmüller wrote: > 2016-10-21 11:43 GMT+02:00 Guenter Milde : > > > Would it help to remove just the "OT1" leaving "TeX default, no fontenc"? > > * texperts know the TeX default is OT1 > > * texpert know the default can be

Re: [PATCH] Re: Return + Return in nested environments

2016-10-20 Thread Enrico Forestieri
On Thu, Oct 20, 2016 at 04:07:13PM -0700, Pavel Sanda wrote: > Enrico Forestieri wrote: > > On Wed, Oct 19, 2016 at 05:30:20PM -0700, Pavel Sanda wrote: > > > Enrico Forestieri wrote: > > > > On Wed, Oct 19, 2016 at 03:09:53PM -0700, Pavel Sanda wrote: > > >

Re: [PATCH] Re: Return + Return in nested environments

2016-10-20 Thread Enrico Forestieri
On Wed, Oct 19, 2016 at 05:30:20PM -0700, Pavel Sanda wrote: > Enrico Forestieri wrote: > > On Wed, Oct 19, 2016 at 03:09:53PM -0700, Pavel Sanda wrote: > > > > > > Funny thing is that my mutt read the previous message without doing > > > what you descri

Re: [PATCH] Re: Return + Return in nested environments

2016-10-20 Thread Enrico Forestieri
On Thu, Oct 20, 2016 at 03:12:50PM +0200, Jean-Marc Lasgouttes wrote: > > I have searched a bit, and the only thing I have found (with my MUA > Thunderbird) > is to change _all_ my attachments to be base64. I'll try that, because I > prefer to have you with me than against me ;), but I may have

Re: [PATCH] Re: Return + Return in nested environments

2016-10-19 Thread Enrico Forestieri
On Wed, Oct 19, 2016 at 03:09:53PM -0700, Pavel Sanda wrote: > > Funny thing is that my mutt read the previous message without doing > what you describe... I guess you are using the maildir format for your mailbox. -- Enrico

Re: [patch] Increase precision of TexRow in captions

2016-10-19 Thread Enrico Forestieri
On Wed, Oct 19, 2016 at 10:31:50PM +0200, Guillaume Munch wrote: > > Test-wise, is there anything to adapt? Are there tests specific to the > non-nice export? I don't know, but I don't think so. -- Enrico

Re: [PATCH] Re: Return + Return in nested environments

2016-10-19 Thread Enrico Forestieri
On Wed, Oct 19, 2016 at 04:12:54PM -0400, Scott Kostyshak wrote: > On Wed, Oct 19, 2016 at 07:03:32PM +0200, Enrico Forestieri wrote: > > > This is because mutt takes them to be separate emails placed somewhere > > else in the list of emails and I have to search for them or ed

Re: [PATCH] Re: Return + Return in nested environments

2016-10-19 Thread Enrico Forestieri
On Wed, Oct 19, 2016 at 06:20:51PM +0200, Jean-Marc Lasgouttes wrote: > > Thanks, it seems to work well. Here is the combo commit, for reference. Jean-Marc, please, can you use some kind of encoding (base64, quoted-printable or whatever) when attaching patches that start with the word "From"?

Re: [PATCH] Re: Return + Return in nested environments

2016-10-19 Thread Enrico Forestieri
On Wed, Oct 19, 2016 at 02:53:43PM +0200, Jean-Marc Lasgouttes wrote: > Le 19/10/2016 à 14:30, Jean-Marc Lasgouttes a écrit : > >>Tested and I think there is a minor issue. In the attached .lyx file, > >>put the cursor at the end of "hello". Press return three times. The > >>first two times show

Re: [LyX/master] Take into account font changes when striking out display math formulas

2016-10-19 Thread Enrico Forestieri
On Wed, Oct 19, 2016 at 03:39:53PM +0200, Jean-Marc Lasgouttes wrote: > Le 19/10/2016 à 15:09, Enrico Forestieri a écrit : > >Just checked and discovered that my building script has a --disable-warnigs > >set as an unmodifiable read-only variable ;-) > > No warnings, no trou

Re: [PATCH] Re: Return + Return in nested environments

2016-10-19 Thread Enrico Forestieri
On Wed, Oct 19, 2016 at 02:53:43PM +0200, Jean-Marc Lasgouttes wrote: > > Enrico, do you have thoughts about what we really want there? What is the > use case that we have in mind, especially when we are in a nested > environment? It does not seem to be something about nested environments. For

Re: [LyX/master] Take into account font changes when striking out display math formulas

2016-10-19 Thread Enrico Forestieri
On Wed, Oct 19, 2016 at 02:38:24PM +0200, Jean-Marc Lasgouttes wrote: > > I do get warnings with default compiler switches (which include -Wall here). Just checked and discovered that my building script has a --disable-warnigs set as an unmodifiable read-only variable ;-) > I guess it is a

Re: [LyX/master] Take into account font changes when striking out display math formulas

2016-10-19 Thread Enrico Forestieri
On Wed, Oct 19, 2016 at 12:18:08PM +0200, Jean-Marc Lasgouttes wrote: > Le 18/10/2016 à 03:49, Enrico Forestieri a écrit : > >commit 129459a71b52babb1a8e5a1e3de986976c93bde6 > >Author: Enrico Forestieri <for...@lyx.org> > >Date: Tue Oct 18 03:29:53 2016 +0200 > &

Re: [patch] Increase precision of TexRow in captions

2016-10-18 Thread Enrico Forestieri
On Tue, Oct 18, 2016 at 11:40:19PM +0200, Guillaume Munch wrote: > Le 18/10/2016 à 22:05, Enrico Forestieri a écrit : > >On Tue, Oct 18, 2016 at 09:47:28PM +0200, Guillaume Munch wrote: > >> > >>Yes, this can be limited to the non-nice export. How strongly do you > &g

Re: [patch] Increase precision of TexRow in captions

2016-10-18 Thread Enrico Forestieri
On Tue, Oct 18, 2016 at 09:47:28PM +0200, Guillaume Munch wrote: > > Yes, this can be limited to the non-nice export. How strongly do you > feel about it? Given the other replies I am tempted to push my patch as is. I have no strong opinion on this. However, sometimes I use sed or awk for

Re: [patch] Increase precision of TexRow in captions

2016-10-18 Thread Enrico Forestieri
On Tue, Oct 18, 2016 at 01:10:36AM +0200, Guillaume Munch wrote: > Le 17/10/2016 à 04:12, Pavel Sanda a écrit : > > Guillaume Munch wrote: > > > Dear list, > > > > > > The attached patches add safe line breaks ("%\n") to the output, to > > > crucially increase the precision of

Re: [LyX/master] Strike out (in the output) deleted display math with track-changes

2016-10-17 Thread Enrico Forestieri
On Mon, Oct 17, 2016 at 02:57:02PM -0400, Scott Kostyshak wrote: > > One more detail I noticed is that the size of the equation is not > accurate when showing the changes in output. Again, I don't think this > is that important since the information that the equation was deleted is > the only

Re: [LyX/master] Strike out (in the output) deleted display math with track-changes

2016-10-17 Thread Enrico Forestieri
On Sun, Oct 16, 2016 at 11:27:02PM -0400, Scott Kostyshak wrote: > On Mon, Oct 17, 2016 at 04:00:25AM +0200, Enrico Forestieri wrote: > > commit 261e7ae9ce7e6a1ffc4932ff9c33107588a9a4ac > > Author: Enrico Forestieri <for...@lyx.org> > > Date: Mon Oct 17 03:25:35 201

Re: [patch] Factor out magic zoom minimum to a const member

2016-10-09 Thread Enrico Forestieri
On Sat, Oct 08, 2016 at 10:09:54AM -0400, Scott Kostyshak wrote: > On Sat, Oct 08, 2016 at 11:02:17AM +0200, Enrico Forestieri wrote: > > On Fri, Oct 07, 2016 at 11:41:25PM -0400, Scott Kostyshak wrote: > > > > > The attached patch is simple but I have not made a change l

Re: [patch] Factor out magic zoom minimum to a const member

2016-10-08 Thread Enrico Forestieri
On Fri, Oct 07, 2016 at 11:41:25PM -0400, Scott Kostyshak wrote: > The attached patch is simple but I have not made a change like this > before so I wanted to check on the list. In general, all capitals is used for preprocessor macros and in LyX private mambers have a trailing underscore. So, I

Re: [LyX/master] Fix horizontal lines in math arrays

2016-10-04 Thread Enrico Forestieri
On Mon, Oct 03, 2016 at 01:07:03AM +0200, Guillaume Munch wrote: > Le 29/09/2016 à 18:48, Enrico Forestieri a écrit : > >On Thu, Sep 29, 2016 at 12:49:35PM +0200, Guillaume Munch wrote: > >>commit c663c9ab3ccfe87571296d840273c7fb5e43f1a3 > >>Author: Guillaume Munch <

Re: [LyX/master] Fix horizontal lines in math arrays

2016-09-29 Thread Enrico Forestieri
On Thu, Sep 29, 2016 at 12:49:35PM +0200, Guillaume Munch wrote: > commit c663c9ab3ccfe87571296d840273c7fb5e43f1a3 > Author: Guillaume Munch > Date: Wed Sep 28 16:05:10 2016 +0200 > > Fix horizontal lines in math arrays > > They must end at the end of the last

Re: Mysterious crash

2016-09-29 Thread Enrico Forestieri
On Thu, Sep 29, 2016 at 12:52:02PM +0200, Guillaume Munch wrote: > > Thanks for the backtrace. The problem is that the variable BufferView * > bv_ in ViewSourceWidget is a borrowed pointer with unclear lifetime, > i.e. it will dangle. I have decided to get rid of it entirely, but this > requires

Re: fr/linguistics.lyx: fix "Missing \endcsname inserted"

2016-09-29 Thread Enrico Forestieri
On Wed, Sep 28, 2016 at 03:31:12PM -0400, Scott Kostyshak wrote: > On Wed, Sep 28, 2016 at 08:08:34PM +0200, Enrico Forestieri wrote: > > > The attached patch should fix the issue. > > Tested and works well. Committed. -- Enrico

Re: fr/linguistics.lyx: fix "Missing \endcsname inserted"

2016-09-28 Thread Enrico Forestieri
On Wed, Sep 28, 2016 at 07:44:47PM +0200, Enrico Forestieri wrote: > On Wed, Sep 28, 2016 at 01:04:21PM -0400, Scott Kostyshak wrote: > > Using system fonts + LuaTeX with fr/linguistics.lyx, we produce the > > following .tex code: > > > > C'est-à-dire, pour \textipa

Re: fr/linguistics.lyx: fix "Missing \endcsname inserted"

2016-09-28 Thread Enrico Forestieri
On Wed, Sep 28, 2016 at 01:04:21PM -0400, Scott Kostyshak wrote: > Using system fonts + LuaTeX with fr/linguistics.lyx, we produce the > following .tex code: > > C'est-à-dire, pour \textipa{\begin{english}% > [d̥] > \end{english}% > } vous devez saisir \texttt{} et ensuite le

Re: Mysterious crash

2016-09-28 Thread Enrico Forestieri
On Wed, Sep 28, 2016 at 06:30:19PM +0200, Enrico Forestieri wrote: > On Wed, Sep 28, 2016 at 05:20:29PM +0200, Enrico Forestieri wrote: > > Steps to reproduce as follows. > > > > Make sure that the "Code Preview Pane" is closed and then: > > 1) open the at

Re: Mysterious crash

2016-09-28 Thread Enrico Forestieri
On Wed, Sep 28, 2016 at 05:20:29PM +0200, Enrico Forestieri wrote: > Steps to reproduce as follows. > > Make sure that the "Code Preview Pane" is closed and then: > 1) open the attached document > 2) open the "Code Preview Pane" > 3) close the "Code Pre

Mysterious crash

2016-09-28 Thread Enrico Forestieri
Steps to reproduce as follows. Make sure that the "Code Preview Pane" is closed and then: 1) open the attached document 2) open the "Code Preview Pane" 3) close the "Code Preview Pane" 4) close the document (not lyx) 5) go to 1) It will crash at step 2) on the second iteration. Does not occur on

Re: [LyX/master] Sort the language nesting mess with polyglossia

2016-09-27 Thread Enrico Forestieri
On Tue, Sep 27, 2016 at 01:02:04PM +0200, Guillaume Munch wrote: > Le 24/09/2016 à 03:25, Enrico Forestieri a écrit : > >commit 3bc08a76c42cd350a3141f00f37082bc9fab8967 > >Author: Enrico Forestieri <for...@lyx.org> > >Date: Sat Sep 24 03:15:02 2016 +0200 > > >

Re: Different LaTeX output when exporting than when previewing

2016-09-26 Thread Enrico Forestieri
On Mon, Sep 26, 2016 at 08:46:51PM +0200, Enrico Forestieri wrote: > On Mon, Sep 26, 2016 at 09:48:52AM +0200, Jürgen Spitzmüller wrote: > > > > I get the error both with Preview and Export. > > > > This is this polyglossia bug, caused by the changes to gloss- >

Re: Different LaTeX output when exporting than when previewing

2016-09-26 Thread Enrico Forestieri
On Mon, Sep 26, 2016 at 09:48:52AM +0200, Jürgen Spitzmüller wrote: > > I get the error both with Preview and Export. > > This is this polyglossia bug, caused by the changes to gloss- > english.ldf in this commit: > https://github.com/reutenauer/polyglossia/commit/d74a64b681b12555f61f30 >

Re: Different LaTeX output when exporting than when previewing

2016-09-26 Thread Enrico Forestieri
On Sun, Sep 25, 2016 at 07:02:26PM -0400, Scott Kostyshak wrote: > To reproduce on current master: > > 1. open lib/doc/sk/Intro.lyx > 2. go to Document > Settings > Fonts, check "Use non-TeX fonts" and set > all to e.g. DejaVu Sans > 3. File > Export > PDF (LuaTeX) > > I get an error: > > !

Re: lyx-2.2.2dev save a file as if edited by lyx-2.3

2016-09-25 Thread Enrico Forestieri
On Sun, Sep 25, 2016 at 05:13:52PM +0100, Jean-Pierre Chrétien wrote: > > XeTeX compilation still fails with the polyglossia mess apparently. Can I > cherry pick your last commit to master at 8c14d9e0 to check ? It would be more than that, actually. I think it needs some testing before being

Re: lyx-2.2.2dev save a file as if edited by lyx-2.3

2016-09-25 Thread Enrico Forestieri
On Sun, Sep 25, 2016 at 12:08:21PM -0400, Richard Heck wrote: > > Sorry, I must have missed this. (Beginning of the semester, very busy.) > I've picked it for stable. Thanks, no problem. -- Enrico

Re: fr/beamer.lyx + system fonts + Xe/Lua fails

2016-09-25 Thread Enrico Forestieri
On Sat, Sep 24, 2016 at 11:06:55AM -0400, Scott Kostyshak wrote: > > > 957:export/doc/es/Additional_dvi3_systemF > > 962:export/doc/es/Additional_pdf4_systemF > > 964:export/doc/es/Additional_pdf5_systemF > > This means that these exports used to pass and after your commit now > they fail for

Re: [LyX/master] Document the new behaviour in mathed

2016-09-24 Thread Enrico Forestieri
On Sun, Sep 25, 2016 at 01:33:38AM +0200, Enrico Forestieri wrote: > On Thu, Sep 22, 2016 at 01:07:28PM +, Guenter Milde wrote: > > > Unit symbols wrong when using a fraction in \text: > > > > \begin_inset Formula $50\,\text{\frac{m}{s}}$ > > \end_inset >

Re: [LyX/master] Document the new behaviour in mathed

2016-09-24 Thread Enrico Forestieri
On Thu, Sep 22, 2016 at 01:07:28PM +, Guenter Milde wrote: > > It still fails for \textdegree: > > - \textdegree in math-mode input as-is > - \textdegree in "mathematical text" wrapped in \ensuremath{} This is because the MathMacro class was missing a currentMode method. Fixed at

Re: fix math toolbars

2016-09-24 Thread Enrico Forestieri
On Thu, Sep 22, 2016 at 12:58:47PM +, Guenter Milde wrote: > On 2016-09-16, Enrico Forestieri wrote: > > On Fri, Sep 16, 2016 at 12:33:08AM +0100, Guillaume Munch wrote: > > I suggest different keywords for > > a) commands that switch to text mode, and > > b) comm

Re: fr/beamer.lyx + system fonts + Xe/Lua fails

2016-09-24 Thread Enrico Forestieri
On Sat, Sep 24, 2016 at 08:35:47AM +0200, Jürgen Spitzmüller wrote: > Am Samstag, den 24.09.2016, 03:34 +0200 schrieb Enrico Forestieri: > > LyX was making a real mess when switching languages with polyglossia. > > I attach here a couple of simple test cases demonstrating it. >

Re: fr/beamer.lyx + system fonts + Xe/Lua fails

2016-09-23 Thread Enrico Forestieri
On Mon, Sep 19, 2016 at 10:49:15PM -0400, Scott Kostyshak wrote: > I wonder if this is the language nesting issue? > > Attached is a more minimal example that gives the same error, which is > the following: > > - > Runaway argument? > \let \AtEndDocument \@firstofone \@enddocumenthook

Re: [RFC][PATCH] Set window title according to platform UI

2016-09-23 Thread Enrico Forestieri
On Fri, Sep 23, 2016 at 11:26:31AM +0200, Jean-Marc Lasgouttes wrote: > > Actually, most of the used of getPixmap are like > QIcon(getPixmap(...)).pixmap(somesize); > > It looks like a strange code path to me. What does getPixmap return in the > case of a svg? Some rasterized version of the

Re: [LyX/master] Improve systemlyxdir handling

2016-09-22 Thread Enrico Forestieri
Richard? On Sat, Sep 17, 2016 at 11:17:41PM +0200, Enrico Forestieri wrote: > On Sat, Sep 17, 2016 at 10:48:08PM +0200, Enrico Forestieri wrote: > > > commit ade098e2896bd9d7d87b3df1a9276661dd3f7c78 > > Author: Enrico Forestieri <for...@lyx.org> > > Date:

Re: [RFC][PATCH] Set window title according to platform UI

2016-09-21 Thread Enrico Forestieri
On Wed, Sep 21, 2016 at 10:20:57PM +0200, Jean-Marc Lasgouttes wrote: > > On this page, > http://stackoverflow.com/questions/10079011/qpixmap-and-svg > someone proposes > QIcon("filepath.svg").pixmap(QSize()) > > Would something like that work for us? That looks good. Yep, that seems

Re: [RFC][PATCH] Set window title according to platform UI

2016-09-21 Thread Enrico Forestieri
On Wed, Sep 21, 2016 at 02:03:02PM +0200, Jean-Marc Lasgouttes wrote: > Le 11/09/2016 à 11:37, Enrico Forestieri a écrit : > >On Sun, Sep 11, 2016 at 03:48:55AM +0100, Guillaume Munch wrote: > >> > >>Getting the perfect result is a good reason for having such a >

Re: lyx-2.2.2dev save a file as if edited by lyx-2.3

2016-09-21 Thread Enrico Forestieri
On Wed, Sep 21, 2016 at 10:13:54AM +0100, Jean-Pierre Chrétien wrote: > Hello, > > I just wanted to edit a minor typo in the recently updated beamer.lyx French > example file. > After git pull, I loaded the file with lyx-2.2.2dev (recently up to date), > make one change ('la' instead of 'le')

Re: fr/beamer.lyx + system fonts + Xe/Lua fails

2016-09-20 Thread Enrico Forestieri
On Tue, Sep 20, 2016 at 09:05:50AM +0200, Jürgen Spitzmüller wrote: > The argument inset must be in the language of the quotation. If not, > you get an environment that beamer cannot parse. I don't think so. This is rather a case of a not properly terminated language switch. See attached. --

Re: GUI changes for inserting citations in 2.2x

2016-09-18 Thread Enrico Forestieri
On Sat, Sep 17, 2016 at 10:35:15PM +0100, g...@lyx.org wrote: > > In general the data manipulated by LyX is very small. In my experience > LyX is sometimes slow not because of the size of the data but because of > bad design in certain places (e.g. constant repaintings of whole insets, > constant

Re: [LyX/master] Improve systemlyxdir handling

2016-09-17 Thread Enrico Forestieri
On Sat, Sep 17, 2016 at 10:48:08PM +0200, Enrico Forestieri wrote: > commit ade098e2896bd9d7d87b3df1a9276661dd3f7c78 > Author: Enrico Forestieri <for...@lyx.org> > Date: Sat Sep 17 22:38:27 2016 +0200 > > Improve systemlyxdir handling > > Do not assume

Re: fix math toolbars

2016-09-15 Thread Enrico Forestieri
On Fri, Sep 16, 2016 at 12:33:08AM +0100, Guillaume Munch wrote: > Le 15/09/2016 à 23:52, Enrico Forestieri a écrit : > >On Thu, Sep 15, 2016 at 01:41:30PM +0100, Guillaume Munch wrote: > >> > >>Now same problem with the attached. I get $\mbox{\ensuremath{\comp}\c

Re: fix math toolbars

2016-09-15 Thread Enrico Forestieri
On Thu, Sep 15, 2016 at 01:41:30PM +0100, Guillaume Munch wrote: > > Now same problem with the attached. I get $\mbox{\ensuremath{\comp}\comp}$ > instead of $\mbox{\ensuremath{\comp\comp}}$. > > Also, I was surprised to see that when I enter \textit,\mbox,... it gets > wrapped inside a \text

Re: fix math toolbars

2016-09-14 Thread Enrico Forestieri
On Wed, Sep 14, 2016 at 04:46:20PM +0100, Guillaume Munch wrote: > Le 14/09/2016 à 01:39, Enrico Forestieri a écrit : > > > >Oh, yes. Apparently, macros are not the only thing that may be not > >up to date. Hopefully, I nailed this at 8ec91e80. Please, try again. >

Re: fix math toolbars

2016-09-13 Thread Enrico Forestieri
On Tue, Sep 13, 2016 at 05:22:33PM +0100, Guillaume Munch wrote: > Le 13/09/2016 à 06:45, Enrico Forestieri a écrit : > > > >The symptom seems to be the same, so I am maybe missing some case. > >Unfortunately, without a test case there is not much I can do. > >In the m

Re: fix math toolbars

2016-09-12 Thread Enrico Forestieri
On Tue, Sep 13, 2016 at 01:44:05AM +0100, Guillaume Munch wrote: > Le 12/09/2016 à 19:35, Enrico Forestieri a écrit : > > On Mon, Sep 12, 2016 at 05:01:33AM +0200, Enrico Forestieri wrote: > > > > > > You can spare your time as I think I found the problem. The p

Re: fix math toolbars

2016-09-12 Thread Enrico Forestieri
On Mon, Sep 12, 2016 at 05:01:33AM +0200, Enrico Forestieri wrote: > On Sun, Sep 11, 2016 at 09:04:56PM +0100, Guillaume Munch wrote: > > Le 11/09/2016 à 11:05, Enrico Forestieri a écrit : > > > > >Please give > > >steps or test cases for reproducing

Re: fix math toolbars

2016-09-12 Thread Enrico Forestieri
On Mon, Sep 12, 2016 at 05:01:33AM +0200, Enrico Forestieri wrote: > On Sun, Sep 11, 2016 at 09:04:56PM +0100, Guillaume Munch wrote: > > Le 11/09/2016 à 11:05, Enrico Forestieri a écrit : > > > > >Please give > > >steps or test cases for reproducing

Re: fix math toolbars

2016-09-11 Thread Enrico Forestieri
On Sun, Sep 11, 2016 at 09:04:56PM +0100, Guillaume Munch wrote: > Le 11/09/2016 à 11:05, Enrico Forestieri a écrit : > > >Please give > >steps or test cases for reproducing the crash and I will have a look. > > > > It usually takes some effort. I'll try to find

Re: fix math toolbars

2016-09-11 Thread Enrico Forestieri
On Sun, Sep 11, 2016 at 03:48:06AM +0100, Guillaume Munch wrote: > Le 10/09/2016 à 17:29, Enrico Forestieri a écrit : > > On Fri, Sep 09, 2016 at 12:04:47PM +0200, Enrico Forestieri wrote: > > > > > > Tell me how much time you think it will take you. One month? >

Re: [RFC][PATCH] Set window title according to platform UI

2016-09-11 Thread Enrico Forestieri
On Sun, Sep 11, 2016 at 03:48:55AM +0100, Guillaume Munch wrote: > > Getting the perfect result is a good reason for having such a > long code. Maybe the "ouch!" effect is because it is added as is. > It looks like it could be made a function in qt_helpers or some other > appropriate place,

Re: fix math toolbars

2016-09-10 Thread Enrico Forestieri
On Fri, Sep 09, 2016 at 12:04:47PM +0200, Enrico Forestieri wrote: > > Tell me how much time you think it will take you. One month? > Two months? Three months? I'll wait for that time. No response and no other nay. So, I am going ahead. -- Enrico

Re: fix math toolbars

2016-09-10 Thread Enrico Forestieri
On Fri, Sep 09, 2016 at 12:04:47PM +0200, Enrico Forestieri wrote: > On Fri, Sep 09, 2016 at 07:05:52AM +, Guenter Milde wrote: > > > I would appreciate if you could fix it. > > See http://www.lyx.org/trac/ticket/9616 > > This is your hitch. I am not motivated

Re: fix math toolbars

2016-09-10 Thread Enrico Forestieri
On Fri, Sep 09, 2016 at 12:43:27AM +0200, Enrico Forestieri wrote: > On Thu, Sep 08, 2016 at 10:13:27PM +, Guenter Milde wrote: > > > > * if I insert a literal degree-sign from the keyboard into mathed, LyX > > wraps it in \text while inserting, > > Yes,

Re: fix math toolbars

2016-09-09 Thread Enrico Forestieri
On Fri, Sep 09, 2016 at 07:05:52AM +, Guenter Milde wrote: > > Yes, for me the hidden insertion of \ensuremath is already a step in the > wrong direction. Correcting it becomes more difficult with more "helpfull" > additions. These are opinions. Mine is different. > >> * if I insert a

Re: fix math toolbars

2016-09-09 Thread Enrico Forestieri
On Fri, Sep 09, 2016 at 10:38:05AM +0100, José Abílio Matos wrote: > On Friday, September 9, 2016 10:45:08 AM WEST Enrico Forestieri wrote: > > Sorry, I didn't even read your logorrheic answer. I think this a > > strategy for exhausting the opponent. > > This type of ar

Re: fix math toolbars

2016-09-09 Thread Enrico Forestieri
On Fri, Sep 09, 2016 at 07:05:52AM +, Guenter Milde wrote: [snip logorrheic answer] Sorry, I didn't even read your logorrheic answer. I think this a strategy for exhausting the opponent. I am in favor while you are contrary to the patch. The only way out is voting. So, unless I get a "no"

Re: fix math toolbars

2016-09-08 Thread Enrico Forestieri
On Thu, Sep 08, 2016 at 10:13:27PM +, Guenter Milde wrote: > On 2016-09-08, Enrico Forestieri wrote: > > On Thu, Sep 08, 2016 at 04:42:30PM +, Guenter Milde wrote: > > > >> I don't want blurring the distinction of text-mode and math-mode commands. > > >

Re: [RFC][PATCH] Set window title according to platform UI

2016-09-08 Thread Enrico Forestieri
On Thu, Sep 08, 2016 at 03:04:17PM +0200, Jean-Marc Lasgouttes wrote: > Le 08/09/2016 à 03:31, Enrico Forestieri a écrit : > > On Wed, Sep 07, 2016 at 03:13:38PM +0200, Jean-Marc Lasgouttes wrote: > > > > > And of course, a screenshot (no you are not entitled to compl

Re: fix math toolbars

2016-09-08 Thread Enrico Forestieri
On Thu, Sep 08, 2016 at 04:42:30PM +, Guenter Milde wrote: > On 2016-09-08, Enrico Forestieri wrote: > > On Thu, Sep 08, 2016 at 06:58:10AM +, Guenter Milde wrote: > > >> On 2016-09-08, Enrico Forestieri wrote: > >> > On Wed, Sep 07, 2016 at 09:4

Re: fix math toolbars

2016-09-08 Thread Enrico Forestieri
On Thu, Sep 08, 2016 at 06:58:10AM +, Guenter Milde wrote: > On 2016-09-08, Enrico Forestieri wrote: > > On Wed, Sep 07, 2016 at 09:45:31PM +, Guenter Milde wrote: > > >> Dear Developers, > > >> pending a decision about handling of text-mode commands i

Re: fix math toolbars

2016-09-07 Thread Enrico Forestieri
On Wed, Sep 07, 2016 at 09:45:31PM +, Guenter Milde wrote: > Dear Developers, > > pending a decision about handling of text-mode commands in mathed, is it > OK to submit the following minimal-invasive patch to prevent the math > toolbars inserting symbols in a way that makes document

Re: [RFC][PATCH] Set window title according to platform UI

2016-09-07 Thread Enrico Forestieri
On Wed, Sep 07, 2016 at 03:13:38PM +0200, Jean-Marc Lasgouttes wrote: > And of course, a screenshot (no you are not entitled to complain about the > huge readonly icon, only to help me fix it). Fixed in the attached. -- Enrico From: Jean-Marc Lasgouttes Date: Tue, 6 Sep

Re: [RFC][PATCH] Set window title according to platform UI

2016-09-06 Thread Enrico Forestieri
On Tue, Sep 06, 2016 at 11:07:58PM +0200, Enrico Forestieri wrote: > On Tue, Sep 06, 2016 at 06:12:19PM +0200, Jean-Marc Lasgouttes wrote: > > Hello, > > > > The following patch uses Qt built-in mechanism for creating window title. > > This means that changed status

Re: [RFC][PATCH] Set window title according to platform UI

2016-09-06 Thread Enrico Forestieri
On Tue, Sep 06, 2016 at 06:12:19PM +0200, Jean-Marc Lasgouttes wrote: > Hello, > > The following patch uses Qt built-in mechanism for creating window title. > This means that changed status is shown using an asterisk (except on Mac OS) > and that read-only and version-control and not shown

Re: [LyX/master] Autoconf : Try to select the correct Qt tools by using the -qt option

2016-08-29 Thread Enrico Forestieri
On Mon, Aug 29, 2016 at 11:03:51AM -0400, Richard Heck wrote: > On 08/29/2016 08:12 AM, Jean-Marc Lasgouttes wrote: > > Le 26/08/2016 à 20:08, Enrico Forestieri a écrit : > >> On Sun, Jul 17, 2016 at 06:37:31PM +0200, Jean-Marc Lasgouttes wrote: > >>> > >>&

Re: [LyX/master] Autoconf : Try to select the correct Qt tools by using the -qt option

2016-08-26 Thread Enrico Forestieri
On Sun, Jul 17, 2016 at 06:37:31PM +0200, Jean-Marc Lasgouttes wrote: > > When everything is sorted out, can you do the backport to 2.2.2? I think you > are the one who knows best what commits should be cherry-picked. This would be the attached patch. -- Enrico If available, use qtchooser to

Re: [LyX/master] Add verbose option

2016-08-19 Thread Enrico Forestieri
On Fri, Aug 19, 2016 at 02:18:42PM +0200, Jean-Marc Lasgouttes wrote: > Le 19/08/2016 à 12:22, Enrico Forestieri a écrit : > >Thanks. Actually, this is not a cmake only issue but only shows with > >autotools when explicitly calling "make check". > > > >BTW,

Re: [LyX/master] Add verbose option

2016-08-19 Thread Enrico Forestieri
On Fri, Aug 19, 2016 at 11:17:21AM +0200, Kornel Benko wrote: > Am Donnerstag, 18. August 2016 um 21:41:02, schrieb Scott Kostyshak > <skost...@lyx.org> > > On Wed, Aug 17, 2016 at 10:34:55PM +0200, Enrico Forestieri wrote: > > > commit 2a371bb4b3235462ea6632d31d

Re: [LyX/master] Correct comment

2016-08-14 Thread Enrico Forestieri
On Sun, Aug 14, 2016 at 12:07:09PM +0100, Guillaume Munch wrote: > Le 13/08/2016 à 16:45, Enrico Forestieri a écrit : > > commit 7113fb669dcd193295308c44ee2213aa437e38b2 > > Author: Enrico Forestieri <for...@lyx.org> > > Date: Sat Aug 13 17:43:03 2016 +0200 &

Re: [LyX/master] Use call_once to ensure something is only called once

2016-08-07 Thread Enrico Forestieri
On Sun, Aug 07, 2016 at 05:37:25PM +0100, Guillaume Munch wrote: > > Then I tried the cygwin one, and it reported "thread model: win32". And > I could not manage to activate the posix threading model. I also found > that mingw itself relies on winpthreads internally whatever the version, > so

Re: [LyX/master] Use call_once to ensure something is only called once

2016-08-07 Thread Enrico Forestieri
On Sun, Aug 07, 2016 at 04:18:13PM +0200, Enrico Forestieri wrote: > On Sun, Aug 07, 2016 at 01:10:49PM +0100, Guillaume Munch wrote: > > > > That being said, if we want to make any use of the and > > headers in the future we need the posix version (in the curre

Re: [LyX/master] Use call_once to ensure something is only called once

2016-08-07 Thread Enrico Forestieri
On Sun, Aug 07, 2016 at 01:10:49PM +0100, Guillaume Munch wrote: > > That being said, if we want to make any use of the and > headers in the future we need the posix version (in the current state of > MinGW). The better thing to do would be to ask the cygwin people to > distribute it. I am not

Re: [LyX/master] Use call_once to ensure something is only called once

2016-08-06 Thread Enrico Forestieri
On Sat, Aug 06, 2016 at 03:39:19PM +0100, Guillaume Munch wrote: > > call_once.cpp: > > #include > static std::once_flag flag; > int main() { > std::call_once(flag, [](){ return; }); > return 0; > } Thanks for the test case. I used it to fix this issue at 41e409f8. -- Enrico

Re: [LyX/master] Use call_once to ensure something is only called once

2016-08-06 Thread Enrico Forestieri
On Sat, Aug 06, 2016 at 06:51:54PM +0100, Guillaume Munch wrote: > > For Enrico's suggestion of using the --target flag with autotools, the > problem is that I do not know where to find and install the windows headers > for the external libraries (which I think this script automatises). Please,

Re: [LyX/master] Use call_once to ensure something is only called once

2016-08-06 Thread Enrico Forestieri
On Sat, Aug 06, 2016 at 03:39:19PM +0100, Guillaume Munch wrote: > Le 06/08/2016 à 03:44, Enrico Forestieri a écrit : > > > > Unfortunately, this does not work. Although the manual states that the > > -pthread option sets flags for both the preprocessor and linker, this >

Re: [LyX/master] Use call_once to ensure something is only called once

2016-08-05 Thread Enrico Forestieri
On Sat, Aug 06, 2016 at 02:01:00AM +0100, Guillaume Munch wrote: > Le 05/08/2016 à 02:35, Enrico Forestieri a écrit : > > > > I am simply cross-compiling from cygwin following the usual way: > > Good to know. > > > configure --host=i686-w64-mingw32 --build=i

Re: [LyX/master] Use call_once to ensure something is only called once

2016-08-04 Thread Enrico Forestieri
On Fri, Aug 05, 2016 at 03:35:44AM +0200, Enrico Forestieri wrote: > On Thu, Aug 04, 2016 at 04:22:50PM +0100, Guillaume Munch wrote: > > > * If so, are LyX devs ready to officially deny support for mingw + win32 > > threads? > > Note that in this case I will not be

Re: [LyX/master] Use call_once to ensure something is only called once

2016-08-04 Thread Enrico Forestieri
On Thu, Aug 04, 2016 at 04:22:50PM +0100, Guillaume Munch wrote: > Le 04/08/2016 à 10:19, Enrico Forestieri a écrit : > > > > This does not compile with mingw (g++ 4.9.2): > > > > ../../src/graphics/PreviewLoader.cpp:101:4: error: ‘call_once’ was not

Re: [LyX/master] Use call_once to ensure something is only called once

2016-08-04 Thread Enrico Forestieri
On Sun, Jul 31, 2016 at 07:36:26PM +0200, Guillaume Munch wrote: > commit 22d7ba642415f576e9553b174166d8c17b945f39 > Author: Guillaume Munch > Date: Sat Jul 30 20:46:29 2016 +0100 > > Use call_once to ensure something is only called once > > This is thread-safe.

Re: Annoying terminal messages: QXcbClipboard: SelectionRequest too old

2016-07-28 Thread Enrico Forestieri
On Wed, Jul 27, 2016 at 10:45:10PM -0400, Scott Kostyshak wrote: > > Enrico, have you seen the following? > https://codereview.qt-project.org/#/c/32263/ > > In particular, note the patch set here: > https://codereview.qt-project.org/#/c/32263/7//ALL > > "Clients attempting to acquire a

Re: [LyX/master] Autoconf : Try to select the correct Qt tools by using the -qt option

2016-07-17 Thread Enrico Forestieri
On Sun, Jul 17, 2016 at 11:04:40PM +0200, Jean-Marc Lasgouttes wrote: > Le 17/07/2016 22:53, Enrico Forestieri a écrit : > > > * what is the reason why you search for tools without path (AC_CHECK_PROG) > > > in some cases? I did think it was cleaner at some time, but no

Re: [LyX/master] Autoconf : Try to select the correct Qt tools by using the -qt option

2016-07-17 Thread Enrico Forestieri
On Sun, Jul 17, 2016 at 06:50:13PM +0200, Stephan Witt wrote: > Am 17.07.2016 um 18:37 schrieb Jean-Marc Lasgouttes : > > > > * is using $(dirname foo) portable? I would have used `dirname foo`, but I > > do not really know why. > > According to this article > >

<    3   4   5   6   7   8   9   10   11   12   >