[LyX/master] Use std::call_once only if it is actually available

2016-08-06 Thread Enrico Forestieri
commit 41e409f8f7f437ff958b35073d5e2c3f0c90dd87 Author: Enrico Forestieri Date: Sun Aug 7 04:58:41 2016 +0200 Use std::call_once only if it is actually available --- config/lyxinclude.m4 | 28 src/graphics/PreviewLoader.cpp | 12 2

[LyX/master] Correct comment

2016-08-13 Thread Enrico Forestieri
commit 7113fb669dcd193295308c44ee2213aa437e38b2 Author: Enrico Forestieri Date: Sat Aug 13 17:43:03 2016 +0200 Correct comment According to C++11 rules, static locals are thread safe for the first-time initialization. See also: http://stackoverflow.com/questions

[LyX/master] Adapt code to comment

2016-08-14 Thread Enrico Forestieri
commit f323a64fc34b83268b769fe549d1bc5801dd19b3 Author: Enrico Forestieri Date: Mon Aug 15 03:22:01 2016 +0200 Adapt code to comment --- src/graphics/PreviewLoader.cpp | 12 +--- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/graphics/PreviewLoader.cpp b/src

[LyX/master] Add verbose option

2016-08-17 Thread Enrico Forestieri
commit 2a371bb4b3235462ea6632d31d50ee447933bef8 Author: Enrico Forestieri Date: Wed Aug 17 22:32:14 2016 +0200 Add verbose option Using the option -v (--verbose) all spawned commands are print on the terminal. Note that this was done by default on previous versions

[LyX/master] Fix exit code from runCommand on Windows

2016-08-17 Thread Enrico Forestieri
commit fb46b3a1ee642b66b9712c6f376f543c47a2695e Author: Enrico Forestieri Date: Wed Aug 17 22:58:13 2016 +0200 Fix exit code from runCommand on Windows On Windows, runCommand has never returned the exit code of the spawned process but the result of correctly closing the input

[LyX/master] Use only one file for dummy implementations

2016-08-19 Thread Enrico Forestieri
commit 589f49ff366f88e3f3be9424397d9d99ebf44dfe Author: Enrico Forestieri Date: Sat Aug 20 00:41:04 2016 +0200 Use only one file for dummy implementations --- src/Makefile.am | 16 src/support/tests/dummy_functions.cpp | 20 +-- src/tests

[LyX/master] Quote filenames used for forward-search with SumatraPDF

2016-08-21 Thread Enrico Forestieri
commit 6adf079796b7bee280233742878c0754979c6d24 Author: Enrico Forestieri Date: Sun Aug 21 23:33:01 2016 +0200 Quote filenames used for forward-search with SumatraPDF Single quotes are special to our parser and must be either escaped or quoted if they are part of a filename

[LyX/2.2.x] If available, use qtchooser to select correct Qt tools

2016-08-29 Thread Enrico Forestieri
commit 874bbe216608e3d4db4ae8692a82d1525d0f6951 Author: Enrico Forestieri Date: Mon Aug 29 22:35:09 2016 +0200 If available, use qtchooser to select correct Qt tools When the Qt directory is specified by --with-qt-dir, the tools are only searched for in the corresponding bin

[LyX/master] Ensure proper mode in mathed

2016-09-09 Thread Enrico Forestieri
commit 324651899e605870b410fa9dcad78d4c8dc4fd0f Author: Enrico Forestieri Date: Sat Sep 10 02:07:47 2016 +0200 Ensure proper mode in mathed A math-mode command entered in a text-mode environment is wrapped in an ensuremath inset, as well as a text-mode command entered in a

[LyX/master] Avoid duplicating mode changing commands

2016-09-09 Thread Enrico Forestieri
commit 5cdbaf51ee73e23b9c0dfd6e8a9aa5fea1d798de Author: Enrico Forestieri Date: Sat Sep 10 02:39:57 2016 +0200 Avoid duplicating mode changing commands --- src/Cursor.cpp |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Cursor.cpp b/src/Cursor.cpp index

[LyX/master] Fix bug #9616

2016-09-10 Thread Enrico Forestieri
commit cb7094696095236b9a7133f41901e90aee767544 Author: Enrico Forestieri Date: Sat Sep 10 13:36:45 2016 +0200 Fix bug #9616 --- src/Encoding.cpp | 10 ++ src/Encoding.h |6 ++ src/mathed/InsetMathNest.cpp |2 +- 3 files changed, 17

[LyX/master] Fix display and export of some latex macros

2016-09-10 Thread Enrico Forestieri
commit 2aa930bbe8f2bf07f665b5cda70842748add271a Author: Enrico Forestieri Date: Sat Sep 10 18:32:44 2016 +0200 Fix display and export of some latex macros Fixes #9742. --- lib/symbols| 44 src/BufferParams.cpp

[LyX/master] Make sure a pointer is valid before using it

2016-09-11 Thread Enrico Forestieri
commit 615c733844e604cd1e966206eaffa61d14f7bd39 Author: Enrico Forestieri Date: Mon Sep 12 05:15:00 2016 +0200 Make sure a pointer is valid before using it --- src/Cursor.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cursor.cpp b/src/Cursor.cpp index

[LyX/master] Ensure consistency

2016-09-11 Thread Enrico Forestieri
commit a24033ff0e49316ba90919f024c561914d55ad47 Author: Enrico Forestieri Date: Mon Sep 12 07:55:38 2016 +0200 Ensure consistency On export, a macro defined in ERT (or not defined at all) is left in the same environment it is entered. So, don't explicitly insert it

[LyX/2.2.x] Update it.po

2016-09-11 Thread Enrico Forestieri
commit ca018b237a3685e2cda9b4f654927f8a5981a63f Author: Enrico Forestieri Date: Mon Sep 12 08:18:36 2016 +0200 Update it.po --- po/it.gmo | Bin 484190 -> 486658 bytes po/it.po | 990 +++-- 2 files changed, 438 insertions(+),

[LyX/master] Make sure that math macros are updated at export time.

2016-09-12 Thread Enrico Forestieri
commit 8f86ee74cddc6d3d9f8eea4d98ad4d4bab842411 Author: Enrico Forestieri Date: Tue Sep 13 07:53:48 2016 +0200 Make sure that math macros are updated at export time. The math macros system is quite complex. Macros are updated during metrics calculation, so a missing update is

[LyX/master] Make sure not to use a pointer that may be bogus

2016-09-13 Thread Enrico Forestieri
commit 8ec91e804a038982d07fc2f88511da8579b9b523 Author: Enrico Forestieri Date: Wed Sep 14 02:27:18 2016 +0200 Make sure not to use a pointer that may be bogus It may happen that mathedWordList is not still updated at load time, so we would still be using a bogus pointer

[LyX/master] Partly revert the bits of 8f86ee74 that are not necessary anymore after 8ec91e80

2016-09-13 Thread Enrico Forestieri
commit 72cf7c8f1f9311720832801af8eaff700333c1b8 Author: Enrico Forestieri Date: Wed Sep 14 02:51:56 2016 +0200 Partly revert the bits of 8f86ee74 that are not necessary anymore after 8ec91e80 --- src/BufferView.cpp |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff

[LyX/master] Really fix the problem with not updated macros

2016-09-14 Thread Enrico Forestieri
commit e36a8903d7bf6433056dffcc290c369a37cf6e3a Author: Enrico Forestieri Date: Thu Sep 15 02:39:30 2016 +0200 Really fix the problem with not updated macros Revert to the strategy used at 8f86ee74 but not using mathedWordList because it may be still uninitialized at load time

[LyX/master] Do not prematurely close \ensuremath or \lyxmathsym on export

2016-09-15 Thread Enrico Forestieri
commit 1b7dea5c2fa83efc80f056aafc8f5d8b4551daa1 Author: Enrico Forestieri Date: Fri Sep 16 00:32:35 2016 +0200 Do not prematurely close \ensuremath or \lyxmathsym on export --- src/mathed/MathFactory.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mathed

[LyX/master] Avoid inserting spurious \text insets in mathed

2016-09-15 Thread Enrico Forestieri
commit 364e8d66927161abec69c597a7022162db9a8af9 Author: Enrico Forestieri Date: Fri Sep 16 00:37:04 2016 +0200 Avoid inserting spurious \text insets in mathed This amends 5cdbaf51. --- src/Cursor.cpp |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a

[LyX/master] Correctly distinguish LyX macros from those defined in ERT

2016-09-15 Thread Enrico Forestieri
commit a26e75cd8adc26105fab175f88d646fd19cbd595 Author: Enrico Forestieri Date: Fri Sep 16 00:43:04 2016 +0200 Correctly distinguish LyX macros from those defined in ERT At this time the MacroData of a macro is still uninitialized, so the macro() method always returns null

[LyX/master] Correctly distinguish ERT macros from predefined ones such as \alpha

2016-09-15 Thread Enrico Forestieri
commit c4aca5705b149511d9311aba8cbb94254a801756 Author: Enrico Forestieri Date: Fri Sep 16 02:15:52 2016 +0200 Correctly distinguish ERT macros from predefined ones such as \alpha --- src/Cursor.cpp |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src

[LyX/master] Improve systemlyxdir handling

2016-09-17 Thread Enrico Forestieri
commit ade098e2896bd9d7d87b3df1a9276661dd3f7c78 Author: Enrico Forestieri Date: Sat Sep 17 22:38:27 2016 +0200 Improve systemlyxdir handling Do not assume that the /systemlyxdir path prefix in \origin refers to the system directory of the running instance, but check through

[LyX/master] Document the new behaviour in mathed

2016-09-19 Thread Enrico Forestieri
commit d0f608d28ebeabadc8308f408f2a67980da8e73c Author: Enrico Forestieri Date: Mon Sep 19 11:57:39 2016 +0200 Document the new behaviour in mathed --- lib/RELEASE-NOTES | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/RELEASE-NOTES b/lib/RELEASE

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

2016-09-23 Thread Enrico Forestieri
commit 3bc08a76c42cd350a3141f00f37082bc9fab8967 Author: Enrico Forestieri Date: Sat Sep 24 03:15:02 2016 +0200 Sort the language nesting mess with polyglossia When using polyglossia, lyx was making a real mess when changing language inside nested insets. The \begin{language

[LyX/master] Correctly classify macros

2016-09-24 Thread Enrico Forestieri
commit 314e30d5fdd243fca204effb20acdd6b8b8469b1 Author: Enrico Forestieri Date: Sun Sep 25 01:11:16 2016 +0200 Correctly classify macros Some macros defined in the lib/symbols file are classified are texmode. But the MathMacro class was missing a currentMode method for

[LyX/master] Do not confuse global commands with ERT macros

2016-09-24 Thread Enrico Forestieri
commit 6a3ced3cfb14c851053ddada9abaa9c3cd4f659d Author: Enrico Forestieri Date: Sun Sep 25 02:00:55 2016 +0200 Do not confuse global commands with ERT macros --- src/Cursor.cpp |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/Cursor.cpp b/src/Cursor.cpp index

[LyX/master] Correctly track opened polyglossia languages

2016-09-24 Thread Enrico Forestieri
commit 8c14d9e0413978aa11f581e9c6f2d0587bb0b189 Author: Enrico Forestieri Date: Sun Sep 25 08:20:34 2016 +0200 Correctly track opened polyglossia languages A language switch may also occur outside of output_latex.cpp, apparently. --- src/Font.cpp |3 +++ src

[LyX/master] No need to clutter runparams...

2016-09-24 Thread Enrico Forestieri
commit 4508a7f855976bb1b23d8f9008a331204f31e651 Author: Enrico Forestieri Date: Sun Sep 25 08:56:12 2016 +0200 No need to clutter runparams... --- src/Font.cpp |4 ++-- src/OutputParams.cpp |3 +-- src/OutputParams.h | 10 -- src/Paragraph.cpp|2 +- src

[LyX/master] Amend 6a3ced3c

2016-09-25 Thread Enrico Forestieri
commit 3bc80220a79dc7e02f90fa035b2afc102f9d531f Author: Enrico Forestieri Date: Sun Sep 25 18:59:07 2016 +0200 Amend 6a3ced3c ERT macros are also math insets, sigh... --- src/Cursor.cpp |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/Cursor.cpp b

[LyX/master] Do not rely on math macros being updated

2016-09-25 Thread Enrico Forestieri
commit 6642152e6610f1e885babfaeb3c99bd0004916fc Author: Enrico Forestieri Date: Sun Sep 25 20:31:13 2016 +0200 Do not rely on math macros being updated Trying to spare a few cycles by avoiding computing metrics during screen updates and export. See also 8f86ee74, 72cf7c8f, and

[LyX/master] Shut up compiler warning

2016-09-27 Thread Enrico Forestieri
commit f476d9c85ad63353b978481fde59659b870758fe Author: Enrico Forestieri Date: Tue Sep 27 21:32:40 2016 +0200 Shut up compiler warning --- src/output_latex.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index

[LyX/master] Do not unnecessarily open the document language

2016-09-27 Thread Enrico Forestieri
commit e40fa86a975a5d3ec7ecc0a1d33d082774ba7cb2 Author: Enrico Forestieri Date: Tue Sep 27 21:41:13 2016 +0200 Do not unnecessarily open the document language If the document language is opened outside of any environement, we risk not closing it if no other language switch

[LyX/master] Also track local language switches

2016-09-27 Thread Enrico Forestieri
commit 7e3494c293b94e1f7bc80915da0f9b49fd0e0ccc Author: Enrico Forestieri Date: Tue Sep 27 23:00:29 2016 +0200 Also track local language switches Until now this was not done for essentially two reasons. The first one is that local switches are used for short text insertions

[LyX/master] Force local language switch in IPA insets

2016-09-29 Thread Enrico Forestieri
commit 925f933a19eb15c49467a60bbd2e4bf30adde294 Author: Enrico Forestieri Date: Thu Sep 29 18:35:26 2016 +0200 Force local language switch in IPA insets Otherwise we get latex errors when using polyglossia. --- src/insets/InsetIPA.h |2 ++ 1 files changed, 2 insertions(+), 0

[LyX/master] In mathed, require xcolor instead of color when appropriate

2016-10-04 Thread Enrico Forestieri
commit ccc0e03fdc4c880685db016d97cdea802512d104 Author: Enrico Forestieri Date: Wed Oct 5 01:18:15 2016 +0200 In mathed, require xcolor instead of color when appropriate Fixes bug #10417. --- src/mathed/InsetMathColor.cpp | 20 ++-- 1 files changed, 18

[LyX/master] Amend ccc0e03f

2016-10-04 Thread Enrico Forestieri
commit 42a30357091d8483342a4f52260a2d2c6d80c980 Author: Enrico Forestieri Date: Wed Oct 5 01:31:14 2016 +0200 Amend ccc0e03f Better adding the break, even if falling through would be Ok, as LyX requires xcolor when both xcolor and color are requested. --- src/mathed

[LyX/master] Remove context help button hint from file dialogs

2016-10-09 Thread Enrico Forestieri
commit ded8b1b3da2a79d7255959fa9f99c50b78b0528d Author: Enrico Forestieri Date: Mon Oct 10 01:25:07 2016 +0200 Remove context help button hint from file dialogs This removes the useless '?' button that appears in Windows builds when using non-native dialogs. C

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

2016-10-16 Thread Enrico Forestieri
commit 261e7ae9ce7e6a1ffc4932ff9c33107588a9a4ac Author: Enrico Forestieri Date: Mon Oct 17 03:25:35 2016 +0200 Strike out (in the output) deleted display math with track-changes Showing deleted display math by enabling "Show Changes in Output" was only possibl

[LyX/master] Fix latex error when change-tracked deleted display math starts a new paragraph

2016-10-17 Thread Enrico Forestieri
commit c1bfaa5c76ce99c222b5454c60b44d9c28543f5f Author: Enrico Forestieri Date: Mon Oct 17 19:35:04 2016 +0200 Fix latex error when change-tracked deleted display math starts a new paragraph LaTeX refuses to break a line when it is empty. But we have to start a new line here

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

2016-10-17 Thread Enrico Forestieri
commit 129459a71b52babb1a8e5a1e3de986976c93bde6 Author: Enrico Forestieri Date: Tue Oct 18 03:29:53 2016 +0200 Take into account font changes when striking out display math formulas Font changes are brought inside the \lyxdeleted macro, just before outputting the latex code

[LyX/master] Avoid introducing a spurious space in \lyxmathsout

2016-10-17 Thread Enrico Forestieri
commit 6ae6198818dec32dd7f18781c165fbfd36ac01ff Author: Enrico Forestieri Date: Tue Oct 18 04:35:02 2016 +0200 Avoid introducing a spurious space in \lyxmathsout --- src/LaTeXFeatures.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/LaTeXFeatures.cpp b/src

[LyX/master] Remove a now unnecessary \mbox

2016-10-18 Thread Enrico Forestieri
commit d48bc4e4ae8352a6c4856db936d8da14f18e5026 Author: Enrico Forestieri Date: Wed Oct 19 01:32:29 2016 +0200 Remove a now unnecessary \mbox --- src/Changes.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/Changes.cpp b/src/Changes.cpp index c8a

[LyX/master] Introduce the InsetMathHull::outerDisplay method and use it

2016-10-19 Thread Enrico Forestieri
commit ab3e1ddc34bbd3c95cb5a9d88213208b1b054050 Author: Enrico Forestieri Date: Thu Oct 20 00:06:42 2016 +0200 Introduce the InsetMathHull::outerDisplay method and use it --- src/Paragraph.cpp| 15 ++-- src/mathed/InsetMathHull.cpp | 48

[LyX/master] Fortify math insets against ulem commands

2016-10-20 Thread Enrico Forestieri
commit 8d5899aaf3116c1d1e57bc7c9f460404d7cd35b0 Author: Enrico Forestieri Date: Fri Oct 21 01:35:39 2016 +0200 Fortify math insets against ulem commands It should be now possible underlining or striking out any kind of math inset containing any math construct indigestible to

[LyX/master] Fix indentation

2016-10-20 Thread Enrico Forestieri
commit 7cf12243b87b8d3e24a46dfc18af1013fa4ea0ba Author: Enrico Forestieri Date: Fri Oct 21 01:58:45 2016 +0200 Fix indentation --- src/Paragraph.cpp | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index b009607

[LyX/master] On export, mark the start of the first paragraph

2016-10-23 Thread Enrico Forestieri
commit 9ba76e6c40738f9bd0d45d4cdb00a9842d47feec Author: Enrico Forestieri Date: Sun Oct 23 18:04:13 2016 +0200 On export, mark the start of the first paragraph No newline is written after \begin{document}, such that the afterParbreak method would return false. This misleads

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

2016-10-23 Thread Enrico Forestieri
commit dea5ba16de1b98d93cf30ab65119bc2364a7ac2b Author: Enrico Forestieri Date: Sun Oct 23 18:23:41 2016 +0200 Correctly track ulem commands with change tracking LyX assumes that everything in \lyxdeleted is struck out by ulem and increases the corresponding counter. However

[LyX/master] Factor out common code used to underline/strike out math

2016-10-24 Thread Enrico Forestieri
commit 696ea82b21f5f0729e14bdefe90d8e18563ddf2e Author: Enrico Forestieri Date: Tue Oct 25 00:49:26 2016 +0200 Factor out common code used to underline/strike out math Also use the exact amount of vertical space TeX adds after a math display (instead of 1ex) for vertically

[LyX/master] Show on screen font changes for text-in-math

2016-10-25 Thread Enrico Forestieri
commit 3cf0cbb3c69e73d72b6cee3723de7b67e69c4c0a Author: Enrico Forestieri Date: Tue Oct 25 16:03:34 2016 +0200 Show on screen font changes for text-in-math --- src/MetricsInfo.cpp |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/MetricsInfo.cpp b/src

[LyX/2.2.x] Show on screen font changes for text-in-math

2016-10-25 Thread Enrico Forestieri
commit 4ad8be330e37b04db44c53a105653c81135772ec Author: Enrico Forestieri Date: Tue Oct 25 20:24:26 2016 +0200 Show on screen font changes for text-in-math --- src/MetricsInfo.cpp |6 -- status.22x |3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a

[LyX/2.2.x] In mathed, require xcolor instead of color when appropriate

2016-10-26 Thread Enrico Forestieri
commit f8d3a8860b05ec29f5e13e7c9737bdce64a3da20 Author: Enrico Forestieri Date: Thu Oct 27 03:18:29 2016 +0200 In mathed, require xcolor instead of color when appropriate Fixes bug #10417. --- src/mathed/InsetMathColor.cpp | 22 -- status.22x

[LyX/2.2.x] Quote filenames used for forward-search with SumatraPDF

2016-10-26 Thread Enrico Forestieri
commit 3508c7bc8ac74e18c3428698287de7f6404bd60e Author: Enrico Forestieri Date: Thu Oct 27 04:16:04 2016 +0200 Quote filenames used for forward-search with SumatraPDF Single quotes are special to our parser and must be either escaped or quoted if they are part of a filename

[LyX/2.2.x] Sort the language nesting mess with polyglossia

2016-10-29 Thread Enrico Forestieri
commit 0dd7505ec66a235af2e2f22602a60947cd310848 Author: Enrico Forestieri Date: Sun Oct 30 00:16:50 2016 +0200 Sort the language nesting mess with polyglossia When using polyglossia, lyx was making a real mess when changing language inside nested insets. The \begin{language

[LyX/master] Don't print useless messages while parsing math macros

2016-10-31 Thread Enrico Forestieri
commit e3c3719643c46819aa586346a313d514c5903898 Author: Enrico Forestieri Date: Mon Oct 31 15:23:20 2016 +0100 Don't print useless messages while parsing math macros Math macros can be displayed on screen by providing a different representation than the one used for

[LyX/master] Avoid dataloss with \multicolumn

2016-11-05 Thread Enrico Forestieri
commit 34ae9dc7f28d33120c27abd2bbbd341dd6044ce0 Author: Enrico Forestieri Date: Sat Nov 5 10:15:37 2016 +0100 Avoid dataloss with \multicolumn When \multicolumn{ncol}{align}{content} is parsed and the ncol parameter is not a numeric value, this parameter is swallowed and

[LyX/2.2.x] Strike out (in the output) deleted display math with track-changes

2016-11-05 Thread Enrico Forestieri
commit 8a1f936ff190964649643872f0c45da10ce3105f Author: Enrico Forestieri Date: Sat Nov 5 21:31:09 2016 +0100 Strike out (in the output) deleted display math with track-changes Showing deleted display math by enabling "Show Changes in Output" was only possibl

[LyX/master] Amend fix for #10428

2016-11-23 Thread Enrico Forestieri
commit 6c92075799ae8d83f4f38e3c169c40da215e03f2 Author: Enrico Forestieri Date: Wed Nov 23 17:30:49 2016 +0100 Amend fix for #10428 - Allow using logical values for icon sizes as the standard sizes may differ among different icon sets - Do not allow setting sizes smaller

[LyX/master] Fix display and output of math macros with optional arguments

2016-12-01 Thread Enrico Forestieri
commit e8f480e7c22ae29804ff0c386c54e86c9b72d3ce Author: Enrico Forestieri Date: Thu Dec 1 18:02:47 2016 +0100 Fix display and output of math macros with optional arguments This is a long standing issue, present since the new math macros inception in version 1.6. It manifests

[LyX/2.2.x] Fix display and output of math macros with optional arguments

2016-12-04 Thread Enrico Forestieri
commit 9435dd6b52a6a73397750dd3e4113656bb2dd744 Author: Enrico Forestieri Date: Sun Dec 4 22:52:22 2016 +0100 Fix display and output of math macros with optional arguments This is a long standing issue, present since the new math macros inception in version 1.6. It manifests

[LyX/master] Update it.po

2016-12-09 Thread Enrico Forestieri
commit 096cfb2a1295780a54a6d7d56d278e63ae74cbd1 Author: Enrico Forestieri Date: Fri Dec 9 19:12:37 2016 +0100 Update it.po --- po/it.gmo | Bin 499301 -> 499298 bytes po/it.po | 359 ++--- 2 files changed, 179 insertions(+),

[LyX/master] Avoid useless warning from Qt

2017-01-08 Thread Enrico Forestieri
commit 25e6b5da39b2f9d5e1ce7c66baaf0ce968c8dc1a Author: Enrico Forestieri Date: Sun Jan 8 23:11:04 2017 +0100 Avoid useless warning from Qt When cloning InsetExternal, the tempname_ member of InsetExternalParams has yet to be initialized. So, trying to remove it causes the

[LyX/master] Add clarifying comment

2017-01-20 Thread Enrico Forestieri
commit 633ad2032e36c87e571a6a8967cc2018dd66f333 Author: Enrico Forestieri Date: Fri Jan 20 20:30:06 2017 +0100 Add clarifying comment --- po/sv.gmo| Bin 468962 -> 476868 bytes po/uk.gmo| Bin 606923 -> 608290 bytes src/fro

[LyX/2.2.x] Fix metrics of math characters with 0 width

2017-01-20 Thread Enrico Forestieri
commit 81465da5d599e071efebf067bb9e8ed252ac1456 Author: Jean-Marc Lasgouttes Date: Sat Jan 21 00:30:20 2017 +0100 Fix metrics of math characters with 0 width It seems that QTextLayout does not handle properly a single character with 0 width. This breaks drawing of things like \

[LyX/master] Allow to properly scale the GUI with Qt5

2017-01-21 Thread Enrico Forestieri
commit 9e6cf6e05a25d38e8d7d9ecbf360b2aa5fd06d03 Author: Enrico Forestieri Date: Sun Jan 22 01:06:00 2017 +0100 Allow to properly scale the GUI with Qt5 Starting with Qt 5.6, setting the environment variable QT_SCALE_FACTOR makes everything accordingly bigger. So, if

[LyX/master] Ignore QT_SCALE_FACTOR for Qt < 5.6

2017-01-25 Thread Enrico Forestieri
commit ebd96fadd53fa553b5b09dc21e580df4cf70a2b5 Author: Enrico Forestieri Date: Wed Jan 25 20:00:54 2017 +0100 Ignore QT_SCALE_FACTOR for Qt < 5.6 This environment variable was introduced in Qt 5.6.0 --- src/LyX.cpp |2 ++ 1 files changed, 2 insertions(+), 0 deleti

[LyX/master] Allow inserting consecutive dashes

2017-02-25 Thread Enrico Forestieri
commit 3c329db0a50689ee2384db1ae02a98aca3bf0bac Author: Enrico Forestieri Date: Sat Feb 25 14:13:02 2017 +0100 Allow inserting consecutive dashes Because latex allows to do so, and there is no easy way to achieve this. This was apparently implemented to allow cycling between

[LyX/2.2.x] Allow inserting consecutive dashes

2017-02-25 Thread Enrico Forestieri
commit 857548d33bbcd01e7d7f061fa520917e93acc577 Author: Enrico Forestieri Date: Sat Feb 25 21:00:25 2017 +0100 Allow inserting consecutive dashes Because latex allows to do so, and there is no easy way to achieve this. This was apparently implemented to allow cycling between

[LyX/master] Allow Input of local includes from local layout files

2017-03-01 Thread Enrico Forestieri
commit 17ab47b3e6acafae8f11e6363ee64252b26c81e7 Author: Enrico Forestieri Date: Wed Mar 1 09:19:18 2017 +0100 Allow Input of local includes from local layout files When including files, LyX always searches the user and the system directory, in that order. This means that when

[LyX/master] Fix bug #10579

2017-03-03 Thread Enrico Forestieri
commit 5940dc53aab9fec6cd02f8be337f0e6c9b2e5fb1 Author: Enrico Forestieri Date: Fri Mar 3 13:00:32 2017 +0100 Fix bug #10579 The \lyxdeleted macro cannot cope with empty lines. --- src/insets/InsetSeparator.cpp |7 +-- 1 files changed, 5 insertions(+), 2 deletions

[LyX/2.2.x] Fix configuring for Qt 5.8

2017-03-04 Thread Enrico Forestieri
commit 90f7cf2fd024a5056b01df931a2765a8e8db4f58 Author: Enrico Forestieri Date: Sun Mar 5 00:14:53 2017 +0100 Fix configuring for Qt 5.8 They moved the QT_QPA_DEFAULT_PLATFORM_NAME definition to the newly introduced qtgui-config.h header. --- config/qt4.m4 |7

[LyX/master] Fix output of en- and em-dashes with TeX fonts

2017-03-19 Thread Enrico Forestieri
commit 72a488d7e6b56432263c80dd92cd6acc565e03a7 Author: Enrico Forestieri Date: Sun Mar 19 20:50:34 2017 +0100 Fix output of en- and em-dashes with TeX fonts This commit fixes the regression introduced in 2.2 about the output of en- and em-dashes. In 2.2 en- and em-dashes are

Re: [LyX/master] Fix output of en- and em-dashes with TeX fonts

2017-03-20 Thread Enrico Forestieri
On Mon, Mar 20, 2017 at 12:35:35AM +, José Abílio Matos wrote: > On Sunday, 19 March 2017 19.58.08 WET Enrico Forestieri wrote: > > commit 72a488d7e6b56432263c80dd92cd6acc565e03a7 > > Author: Enrico Forestieri > > Date: Sun Mar 19 20:50:34 2017 +0100 > > >

[LyX/master] Amend 72a488d7

2017-03-20 Thread Enrico Forestieri
commit 56bec528b5327eafac72f47db82999b0ad3a2eb5 Author: Enrico Forestieri Date: Mon Mar 20 14:37:25 2017 +0100 Amend 72a488d7 - Mention the new buffer parameter in development/FORMAT - Assure that lyx2lyx generates the same output obtained when saving a converted

[LyX/master] Also account for development versions

2017-03-20 Thread Enrico Forestieri
commit be3f628e7d7a2f22b60d7713237e555ff8367428 Author: Enrico Forestieri Date: Mon Mar 20 15:08:17 2017 +0100 Also account for development versions --- lib/lyx2lyx/lyx_2_3.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_3.py b/lib/lyx2lyx

Re: [LyX/master] Fix output of en- and em-dashes with TeX fonts

2017-03-20 Thread Enrico Forestieri
On Mon, Mar 20, 2017 at 05:26:01PM +0100, Jürgen Spitzmüller wrote: > 2017-03-20 10:55 GMT+01:00 Enrico Forestieri : > > > I think you mean development/FORMAT. I will add the reference. Note that > > also \dynamic_quotes needs to be mentioned there. > > > > It

[LyX/master] Further amendment to 72a488d7

2017-03-20 Thread Enrico Forestieri
commit 16d5c49b383841826d1bc563e2d392e12e497ed8 Author: Enrico Forestieri Date: Mon Mar 20 23:59:16 2017 +0100 Further amendment to 72a488d7 Rephrase positively the check box for the output of en- and em-dashes and disable it when using non-TeX fonts. The state of the check

[LyX/master] Fix #9732: Inconsistent font properties for the preview and superscript insets

2017-03-27 Thread Enrico Forestieri
commit b6f8a84a359d717a5d87f58a3403b3c6b64440e3 Author: Enrico Forestieri Date: Mon Mar 27 15:00:43 2017 +0200 Fix #9732: Inconsistent font properties for the preview and superscript insets --- src/insets/InsetPreview.h |2 ++ src/insets/InsetScript.h |2 ++ 2 files changed, 4

[LyX/master] Amend 16d5c49b

2017-03-27 Thread Enrico Forestieri
commit 91ca310d1dcc6bfd647eb7de4bfc417192df69a9 Author: Enrico Forestieri Date: Mon Mar 27 15:08:30 2017 +0200 Amend 16d5c49b Remove redundant action when toggling the dashes check box. --- src/frontends/qt4/GuiDocument.cpp |9 - src/frontends/qt4/GuiDocument.h

Re: [LyX/master] Handle properly exception that can be thrown by to_local8bit

2017-03-27 Thread Enrico Forestieri
On Mon, Mar 27, 2017 at 05:05:47PM +0200, Jean-Marc Lasgouttes wrote: > > Enrico, can you please double check the changes in os_win32.cpp and > os_cygwin.cpp ? I cannot even compile this code. They are fine and compile Ok. However, that cygwin code is from the time when cygwin was using the same

[LyX/master] On windows, use the unicode version of ShellExecute

2017-03-27 Thread Enrico Forestieri
commit d996ec89928efb3042325fa158e1d5547b9eb64d Author: Enrico Forestieri Date: Tue Mar 28 01:32:59 2017 +0200 On windows, use the unicode version of ShellExecute --- src/support/os_cygwin.cpp | 17 ++--- src/support/os_win32.cpp | 15 +-- 2 files changed, 11

Re: [LyX/master] Handle properly exception that can be thrown by to_local8bit

2017-03-27 Thread Enrico Forestieri
On Tue, Mar 28, 2017 at 12:02:02AM +0200, Enrico Forestieri wrote: > On Mon, Mar 27, 2017 at 05:05:47PM +0200, Jean-Marc Lasgouttes wrote: > > > > Enrico, can you please double check the changes in os_win32.cpp and > > os_cygwin.cpp ? I cannot even compile this code. &

Re: [LyX/master] Handle properly exception that can be thrown by to_local8bit

2017-03-28 Thread Enrico Forestieri
On Tue, Mar 28, 2017 at 01:43:54AM +0200, Enrico Forestieri wrote: > On Tue, Mar 28, 2017 at 12:02:02AM +0200, Enrico Forestieri wrote: > > On Mon, Mar 27, 2017 at 05:05:47PM +0200, Jean-Marc Lasgouttes wrote: > > > > > > Enrico, can you please double check the

[LyX/master] Account for unicode chars in tempdir path on Windows

2017-03-28 Thread Enrico Forestieri
commit a5377ead20682df741e9225fd54acf2799912973 Author: Enrico Forestieri Date: Tue Mar 28 12:05:52 2017 +0200 Account for unicode chars in tempdir path on Windows --- src/Buffer.cpp |2 +- src/output.cpp |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src

[LyX/master] Fix bug #10554

2017-04-02 Thread Enrico Forestieri
commit e36c661c6187dbacf3537038caf6d980c417d381 Author: Enrico Forestieri Date: Sun Apr 2 23:56:25 2017 +0200 Fix bug #10554 The \lyxdeleted macro cannot cope with \newpage & co. --- src/insets/InsetNewpage.cpp |7 ++- 1 files changed, 6 insertions(+), 1 delet

[LyX/2.2.x] Fix bug #10554

2017-04-02 Thread Enrico Forestieri
commit caf56220c65e92f0bcf189d225ed654e47932407 Author: Enrico Forestieri Date: Mon Apr 3 00:07:53 2017 +0200 Fix bug #10554 The \lyxdeleted macro cannot cope with \newpage & co. --- src/insets/InsetNewpage.cpp |7 ++- status.22x |4 ++-- 2 f

[LyX/2.2.x] Update it.po

2017-04-02 Thread Enrico Forestieri
commit ee7d0557913f0e18f10fe205a9517bbb86cf0264 Author: Enrico Forestieri Date: Mon Apr 3 00:15:47 2017 +0200 Update it.po --- po/it.gmo | Bin 493539 -> 494796 bytes po/it.po | 1066 +++-- 2 files changed, 478 insertions(+),

[LyX/master] Fix bug #10581

2017-04-02 Thread Enrico Forestieri
commit 66aa52ff20c6e96d679d917bb3d98ff29117ad15 Author: Enrico Forestieri Date: Mon Apr 3 00:26:49 2017 +0200 Fix bug #10581 Tell the math parser that we are parsing a macro definition, so that it doesn't try to return a verbatim copy in case of failure. --- src/m

[LyX/master] Avoid an assertion when compiling in debug mode with MSVC 2015

2017-04-12 Thread Enrico Forestieri
commit 031748d9c88c60d6a7c79b00599955c49a3c56aa Author: Enrico Forestieri Date: Wed Apr 12 21:19:42 2017 +0200 Avoid an assertion when compiling in debug mode with MSVC 2015 Seemingly, when removing an argument from argv, and thus inserting a null pointer to shorten the array

[LyX/master] Fix tests after 031748d9

2017-04-13 Thread Enrico Forestieri
commit ee0cc3cec1cf97e154e968d33dc580f37eb29e84 Author: Enrico Forestieri Date: Thu Apr 13 09:38:46 2017 +0200 Fix tests after 031748d9 --- src/tests/check_layout.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/tests/check_layout.cpp b/src/tests

[LyX/master] TeXFiles.py: Python 3 compatibility

2017-04-13 Thread Enrico Forestieri
commit db494452dccf2125f3a708d765a6e6608d0060b7 Author: Enrico Forestieri Date: Thu Apr 13 10:49:02 2017 +0200 TeXFiles.py: Python 3 compatibility --- lib/scripts/TeXFiles.py | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/scripts/TeXFiles.py b/lib

[LyX/master] configure.py: Python 3 compatibility

2017-04-13 Thread Enrico Forestieri
commit 8f70d551482a69bd97a80d36623724bab5ac11b5 Author: Enrico Forestieri Date: Thu Apr 13 15:34:54 2017 +0200 configure.py: Python 3 compatibility Don't assume any encoding for the layout files and treat them in the same way python 2 does. Thanks José for the

[LyX/master] layout2layout.py: Python 3 compatibility

2017-04-13 Thread Enrico Forestieri
commit 1a26f9b26cff827da5c6ba7850743e4bb1afb1df Author: Enrico Forestieri Date: Thu Apr 13 16:20:39 2017 +0200 layout2layout.py: Python 3 compatibility The layout2layout.py script already reads and writes files in binary format. However, all regexes and comparisons assume

[LyX/master] lyxpak.py: Python 3 compatibility

2017-04-14 Thread Enrico Forestieri
commit 217696d34b51098001b7ac67dd8d0b8c8596ab8b Author: Enrico Forestieri Date: Sat Apr 15 00:05:40 2017 +0200 lyxpak.py: Python 3 compatibility --- lib/scripts/lyxpak.py | 117 +++- 1 files changed, 66 insertions(+), 51 deletions(-) diff

[LyX]The LyX Source Repository branch, master, updated. 2.0.0-1531-g9825621

2012-04-30 Thread Enrico Forestieri
--- commit 982562179801340feff7eb108addd99ec4a05d08 Author: Enrico Forestieri Date: Mon Apr 30 23:55:34 2012 +0200 Fix bug #8140: Crash with math macros and input completion When clicking away in the same math inset after hitting '\', the cursor may be broken and all of its instan

[LyX] branch, 2.0.x, updated. 2.0.3-125-g124bc76

2012-04-30 Thread Enrico Forestieri
in full, below. - Log - commit 124bc762a735d482e12d54022008e919dff76978 Author: Enrico Forestieri Date: Mon Apr 30 23:55:34 2012 +0200 Fix bug #8140: Crash with math macros and input completion When clicking away in

[LyX master] Fix bug #7982: LyX does not work if working directory a hard disk drive like D:\

2012-05-14 Thread Enrico Forestieri
The branch, master, has been updated. - Log - commit 93ebb7a863377f6dbcaf724972b747b5c3f20c24 Author: Enrico Forestieri Date: Mon May 14 13:08:30 2012 +0200 Fix bug #7982: LyX does not work if working directory a hard disk

[LyX 2.0.x] Backport fix for bug #7982: LyX does not work if working directory a hard disk drive like D:\.

2012-05-14 Thread Enrico Forestieri
The branch, 2.0.x, has been updated. - Log - commit 3a3f6c838c2ea88dbe38294f19e35ef9f39d4d2f Author: Enrico Forestieri Date: Mon May 14 13:08:30 2012 +0200 Backport fix for bug #7982: LyX does not work if working directory a

[LyX master] Fix bug #8164: lyxpak.py fails to include filenames with spaces

2012-05-20 Thread Enrico Forestieri
The branch, master, has been updated. - Log - commit fbcf2486d84b4ea543560cb7f583bc38e6cf67f5 Author: Enrico Forestieri Date: Sun May 20 16:32:47 2012 +0200 Fix bug #8164: lyxpak.py fails to include filenames with spaces

  1   2   3   4   5   6   7   8   9   10   >