[LyX/2.1.x] Avoid unnecessary growth of python lists

2015-06-16 Thread Enrico Forestieri
commit 1151d06e81efedfb69a6c65c200b33a79e958d9a Author: Enrico Forestieri <for...@lyx.org> Date: Tue Jun 16 21:08:25 2015 +0200 Avoid unnecessary growth of python lists The path argument of checkProg* was added to the PATH list in a nested loop such that the list d

[LyX/master] Remove superfluous separators

2015-06-17 Thread Enrico Forestieri
commit d3bcb908390fba1a6f27a5787378b9005d93728c Author: Enrico Forestieri <for...@lyx.org> Date: Wed Jun 17 11:31:10 2015 +0200 Remove superfluous separators These were added when the user guide was converted to latest format. Their purpose is assuring that the vertical s

[LyX/master] Fix a couple of issues with macros and previews

2015-06-19 Thread Enrico Forestieri
commit 98a5072a5863d6db64967324f01a6038275c4f85 Author: Enrico Forestieri <for...@lyx.org> Date: Sat Jun 20 01:44:22 2015 +0200 Fix a couple of issues with macros and previews * Fix typo causing to only account for the first char of a macro name * Also check for

[LyX/master] Amend 98a5072a

2015-06-19 Thread Enrico Forestieri
commit b610c13f67cc112f12ccdd5a793a1ed633c09e43 Author: Enrico Forestieri <for...@lyx.org> Date: Sat Jun 20 03:05:50 2015 +0200 Amend 98a5072a We only look once for the definition of the same macro, but we have to always check its arguments when the same macro appears mor

[LyX/master] Fix another couple of issues spotted by Guillaume

2015-06-20 Thread Enrico Forestieri
commit cabc7c4be191f4700f79bd6ca9109697ae074b58 Author: Enrico Forestieri <for...@lyx.org> Date: Sat Jun 20 16:37:12 2015 +0200 Fix another couple of issues spotted by Guillaume * Take into account macro redefinitions in the legacy route * Take into account macros inside

[LyX/master] Use the draft option for microtype

2015-06-20 Thread Enrico Forestieri
commit dd09a5cabc31d985becc98167722d49077832a8e Author: Enrico Forestieri <for...@lyx.org> Date: Sat Jun 20 21:58:19 2015 +0200 Use the draft option for microtype Instead of redefining \usepackage for avoiding the microtype package when generating previews in dv

[LyX/master] Make really sure to wait for previews after zoom changes

2015-06-21 Thread Enrico Forestieri
commit 2973108a62c893981568c7cbc6ac3bd4db3a92f1 Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jun 21 11:21:59 2015 +0200 Make really sure to wait for previews after zoom changes Relying on the fact that the timer is not active anymore does not guarantee that the pr

[LyX/master] Properly reschedule refresh of previews

2015-06-21 Thread Enrico Forestieri
commit 592219c1f1c5f27d3bb3274906fc932c4983ee3a Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jun 21 17:21:19 2015 +0200 Properly reschedule refresh of previews If the zoom factor is changed right while the previews are being regenerated, the refreshPreviews()

[LyX/2.1.x] Backport latest changes about instant preview

2015-06-21 Thread Enrico Forestieri
commit 93c0512ba2076882b4f15be76bfe2448ce45e3eb Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jun 21 19:23:18 2015 +0200 Backport latest changes about instant preview * Fix typo causing to only account for the first char of a macro name * Also check for

[LyX/master] Avoid an exception when the lyxpreview2bitmap.py script fails completely

2015-06-22 Thread Enrico Forestieri
commit cd046f0e0cdea5aae064284790e4e17f0c60bd03 Author: Enrico Forestieri <for...@lyx.org> Date: Tue Jun 23 02:39:48 2015 +0200 Avoid an exception when the lyxpreview2bitmap.py script fails completely If latex fails to generate any output, the forked process was not r

[LyX/master] Fix crash when copying a macro with instant preview on

2015-06-24 Thread Enrico Forestieri
commit f3b03699efd7eb644281074edaa92725ed8ccdea Author: Enrico Forestieri <for...@lyx.org> Date: Wed Jun 24 23:38:53 2015 +0200 Fix crash when copying a macro with instant preview on The MacroData pointer is updated by MathData::metrics() which is not called when sel

[LyX/master] Assure not to miss requirements on loading with instant preview on

2015-06-24 Thread Enrico Forestieri
commit fee356eb5610773687cfcada1dde7bc7e97ab146 Author: Enrico Forestieri <for...@lyx.org> Date: Thu Jun 25 00:49:15 2015 +0200 Assure not to miss requirements on loading with instant preview on diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index 8f2d15f..636d059

[LyX/master] Check whether the buffer pointer is valid before using it

2015-06-24 Thread Enrico Forestieri
commit d275d034c056ea38db70c9f713d5df0b91103d62 Author: Enrico Forestieri <for...@lyx.org> Date: Thu Jun 25 01:25:42 2015 +0200 Check whether the buffer pointer is valid before using it diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index 636d059..78ea2bb 100644 ---

[LyX/master] Properly account for font size when generating previews

2015-06-24 Thread Enrico Forestieri
commit 0751f96d25e8723e15c2025fec749d9049db271d Author: Enrico Forestieri <for...@lyx.org> Date: Thu Jun 25 01:39:25 2015 +0200 Properly account for font size when generating previews Patch by Guillaume. diff --git a/lib/scripts/lyxpreview2bitmap.py b/lib/s

[LyX/2.1.x] Fix crashes related to macros and instant preview

2015-06-25 Thread Enrico Forestieri
commit 2a9f07336fca1c228827b762cbf7dd56cb68f0c8 Author: Enrico Forestieri <for...@lyx.org> Date: Thu Jun 25 21:04:42 2015 +0200 Fix crashes related to macros and instant preview * Fix crash when zooming after latex failed to generate any output for previews. This w

[LyX/2.1.x] Assure not to miss requirements on loading with instant preview on

2015-06-25 Thread Enrico Forestieri
commit 2cdeb945cec783d85b7bf0b182976e8af3995830 Author: Enrico Forestieri <for...@lyx.org> Date: Thu Jun 25 21:18:31 2015 +0200 Assure not to miss requirements on loading with instant preview on diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index a25c5db..ed28927

[LyX/2.1.x] Properly account for font size when generating previews

2015-06-25 Thread Enrico Forestieri
commit 318c5d7dd9a7a5eee1e25c3f370b86a6e891ed5b Author: Enrico Forestieri <for...@lyx.org> Date: Thu Jun 25 21:31:00 2015 +0200 Properly account for font size when generating previews Patch by Guillaume. diff --git a/lib/scripts/lyxpreview2bitmap.py b/lib/s

[LyX/master] Amend c9d9309c

2015-06-26 Thread Enrico Forestieri
commit 67c52ae7738b2ac3b4bd35af6cf9c65e05f84cd8 Author: Enrico Forestieri <for...@lyx.org> Date: Fri Jun 26 22:49:17 2015 +0200 Amend c9d9309c It suffices taking the log of the absolute value. diff --git a/src/support/lstrings.cpp b/src/support/lstrings.cpp index 6faf1a4..3

[LyX/master] Was forgetting this

2015-06-26 Thread Enrico Forestieri
commit 9b0e5215d935221c49ce97540bb0161290e72984 Author: Enrico Forestieri <for...@lyx.org> Date: Fri Jun 26 22:54:23 2015 +0200 Was forgetting this diff --git a/src/support/lstrings.cpp b/src/support/lstrings.cpp index 3b903c8..0036d16 100644 --- a/src/support/lstrings.cpp +++

[LyX/master] Avoid using a dangling pointer

2015-06-30 Thread Enrico Forestieri
commit 305a712bbb1c201416e7bed2d8e6b7362c3aa5d5 Author: Enrico Forestieri <for...@lyx.org> Date: Tue Jun 30 18:54:19 2015 +0200 Avoid using a dangling pointer This can happen when a macro is copied and then the document where it is defined is closed. In this case, the

[LyX/master] Avoid code duplication

2015-06-30 Thread Enrico Forestieri
commit 2072de8349f2a0c3b35336583a4fa2c076af8cb3 Author: Enrico Forestieri <for...@lyx.org> Date: Tue Jun 30 19:27:38 2015 +0200 Avoid code duplication diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index e772bc1..918a989 100644 --- a/src/mathed/MathMacro.cpp +++

[LyX/2.1.x] Avoid using a dangling pointer

2015-06-30 Thread Enrico Forestieri
commit 180ecbd79a9c99b8b8eeb00ce4906aa2a319c3f9 Author: Enrico Forestieri <for...@lyx.org> Date: Tue Jun 30 21:11:54 2015 +0200 Avoid using a dangling pointer This can happen when a macro is copied and then the document where it is defined is closed. In this case, the

[LyX/master] lyxpak: Fix the common path prefix calculation.

2015-07-05 Thread Enrico Forestieri
commit ca0ba7c6ad86d598a8db1a47faae130b0ae329b4 Author: Guy Rutenberg Date: Fri Jun 26 18:35:52 2015 +0300 lyxpak: Fix the common path prefix calculation. The old implementation could fail in some rare cases. diff --git a/lib/scripts/lyxpak.py

[LyX/master] Fix a couple of issues with filename encodings.

2015-07-05 Thread Enrico Forestieri
commit 2ea3e07a23f9e0d441fd9352bf19601aaf791c03 Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jul 5 15:45:40 2015 +0200 Fix a couple of issues with filename encodings. * Take into account the filesystem encoding for the zip export on *nix such that the represen

[LyX/master] Avoid calling Buffer::getMacro inside the MathMacro copy constructor

2015-07-05 Thread Enrico Forestieri
commit 4dff1394ab845878f16cb03455477cfb44ceb8cb Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jul 5 20:44:54 2015 +0200 Avoid calling Buffer::getMacro inside the MathMacro copy constructor It turns out that it is always better using the copy of the MacroData for up

[LyX/2.1.x] Avoid calling Buffer::getMacro inside the MathMacro copy constructor

2015-07-06 Thread Enrico Forestieri
commit e473ee8b3fdff647cf76d9aaf50109ad7a2bca77 Author: Enrico Forestieri <for...@lyx.org> Date: Mon Jul 6 20:38:35 2015 +0200 Avoid calling Buffer::getMacro inside the MathMacro copy constructor It turns out that it is always better using the copy of the MacroData for up

[LyX/master] Remove unneeded header

2015-07-06 Thread Enrico Forestieri
commit b7dd5ade945f8186301924013ff2cca1ebe2a528 Author: Enrico Forestieri <for...@lyx.org> Date: Mon Jul 6 23:47:22 2015 +0200 Remove unneeded header Forgot this at 4dff1394 diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index 08f367c..7901128 100644 ---

[LyX/2.1.x] Remove unneeded header

2015-07-06 Thread Enrico Forestieri
commit 5f1c593175e94590373411151f5ef215887e3944 Author: Enrico Forestieri <for...@lyx.org> Date: Mon Jul 6 23:49:56 2015 +0200 Remove unneeded header Forgot this at e473ee8b diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index ba84736..bc942be 100644 ---

[LyX/master] lyxpak.py: Use `subprocess` for spawning scripts.

2015-07-28 Thread Enrico Forestieri
commit be41ccd4d43a47570e2c53481361593b9e453069 Author: Guy Rutenberg Date: Sat Jul 11 18:52:14 2015 +0300 lyxpak.py: Use `subprocess` for spawning scripts. `os.popen` is deprecated since Python-2.6. Also, this fixes the handling of files with quotes in

[LyX/master] Quote argument of tag when necessary

2015-08-15 Thread Enrico Forestieri
commit 435c1bbac7b1492fdfd8d5bd21c9c9363387f216 Author: Enrico Forestieri <for...@lyx.org> Date: Sat Aug 15 18:32:41 2015 +0200 Quote argument of tag when necessary Both \origin and \textclass tags may be paths and contain spaces. In this case, enclose them in double

[LyX/master] Fix #9490: SIGSEGV involving LyX macros --- A reproducible MWE (part II)

2015-10-03 Thread Enrico Forestieri
commit 82fe5183ca494fccc745953a9771ab7423a84693 Author: Enrico Forestieri <for...@lyx.org> Date: Sat Oct 3 17:41:25 2015 +0200 Fix #9490: SIGSEGV involving LyX macros --- A reproducible MWE (part II) diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index 7901128..e

[LyX/master] Fix bug #9898: inset info cannot show specified icon

2015-12-10 Thread Enrico Forestieri
commit b6880470b390accf104afd95560733f7abe62119 Author: Enrico Forestieri <for...@lyx.org> Date: Fri Dec 11 08:51:37 2015 +0100 Fix bug #9898: inset info cannot show specified icon diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp index 6e21d9b..2f26c97 100644 ---

[LyX/master] Always place the cursor before a separator inset when moving up or down.

2016-01-09 Thread Enrico Forestieri
commit bbb5a1a28f047e76611641efe999739d537b27f4 Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jan 10 00:08:10 2016 +0100 Always place the cursor before a separator inset when moving up or down. diff --git a/src/Cursor.cpp b/src/Cursor.cpp index c1eb32f..bc12197 100644 ---

[LyX/master] Avoid inserting multiple consecutive parbreak separators.

2016-01-09 Thread Enrico Forestieri
commit c8aaaff15a036176f861d7b0ce6053acfd7ce80b Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jan 10 00:04:41 2016 +0100 Avoid inserting multiple consecutive parbreak separators. diff --git a/src/Text3.cpp b/src/Text3.cpp index 9edda1b..ca6ec5b 100644 --- a/src/Text3.cpp +++

[LyX/master] Make sure the origin tag is properly terminated.

2016-01-10 Thread Enrico Forestieri
commit 71ff50b7536124eafda877514b608182767538bc Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jan 10 23:17:59 2016 +0100 Make sure the origin tag is properly terminated. diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index fe47c05..8024d4a 100644 --- a/src/BufferPara

[LyX/master] Always place the cursor before a separator inset when clicking

2016-01-16 Thread Enrico Forestieri
commit 55b3374f3e3047a0aa7584e0737d1fcd40fe6809 Author: Enrico Forestieri <for...@lyx.org> Date: Sat Jan 16 16:41:04 2016 +0100 Always place the cursor before a separator inset when clicking diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 7332ec5..6de832d 100644 ---

[LyX/master] Don't merge next paragraph when removing a separator inset

2016-01-16 Thread Enrico Forestieri
commit 5c891242f3828453ce6843704334284a867b5262 Author: Enrico Forestieri <for...@lyx.org> Date: Sat Jan 16 16:44:26 2016 +0100 Don't merge next paragraph when removing a separator inset diff --git a/src/Text3.cpp b/src/Text3.cpp index 1fa3c06..fbcd9b7 100644 --- a/src/Text3.cpp +++

[LyX/master] Insert a plain separator instead of a parbreak one.

2016-01-14 Thread Enrico Forestieri
commit 1c3b6807dbb1074fb30709cfb50f01c3096f1900 Author: Enrico Forestieri <for...@lyx.org> Date: Thu Jan 14 20:57:52 2016 +0100 Insert a plain separator instead of a parbreak one. When hitting Enter after a non-standard layout a plain separator is now inserted. This

[LyX/master] Tweak output from maxima

2016-06-26 Thread Enrico Forestieri
commit 3c6f2427c35064cd248ed2ca0482e6ea30b4d609 Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jun 26 13:22:44 2016 +0200 Tweak output from maxima Maxima uses \it as a markup for multiletter variables. However, it has been reported that since texlive 2016

[LyX/master] Make oultliner icons same size as the toolbar icons

2016-06-26 Thread Enrico Forestieri
commit f56ee1875c9bf2665ab7377fdc3ff3ec80d9268f Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jun 26 16:53:00 2016 +0200 Make oultliner icons same size as the toolbar icons Part of bug #10125 --- src/frontends/qt4/TocWidget.cpp |7 +++ 1 files changed, 7 inse

[LyX/master] Make command buffer icons same size as QLineEdit height

2016-06-26 Thread Enrico Forestieri
commit 458d2015dc311844a9533ac838a2f81b0a83069f Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jun 26 16:58:18 2016 +0200 Make command buffer icons same size as QLineEdit height Part of bug #10125 --- src/frontends/qt4/GuiCommandBuffer.cpp | 18 -- 1

[LyX/master] Fix build with autotools and gcc 6

2016-06-26 Thread Enrico Forestieri
commit 6863fe9606ec4c13a0644ea347d8b1877cb5f9fc Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jun 26 19:45:50 2016 +0200 Fix build with autotools and gcc 6 --- config/lyxinclude.m4 |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/config/lyxinclud

[LyX/master] Translate a few sentences in it/splash.lyx

2016-02-01 Thread Enrico Forestieri
commit 340acadee85b03bd62dad0e773cbcea39a6e036b Author: Enrico Forestieri <for...@lyx.org> Date: Tue Feb 2 01:41:34 2016 +0100 Translate a few sentences in it/splash.lyx diff --git a/lib/examples/it/splash.lyx b/lib/examples/it/splash.lyx index d7df425..563bf90 100644 --- a/lib/ex

[LyX/master] Make sure cursor is in texted after clicking

2016-01-19 Thread Enrico Forestieri
commit 8998b8837084a5100048fbd335c06ed6fc4bc26f Author: Enrico Forestieri <for...@lyx.org> Date: Wed Jan 20 01:18:42 2016 +0100 Make sure cursor is in texted after clicking Fixes #9936. diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 6de832d..81ebe79 100644 ---

[LyX/master] Change the shape of the parbreak separator

2016-01-24 Thread Enrico Forestieri
commit 80e2c85474fbad21dc8a40d74127a81447401b34 Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jan 24 12:49:02 2016 +0100 Change the shape of the parbreak separator As per request, this makes it better distinguishable from the neline inset. For posterity, see this

[LyX/master] Fix bug #9990: Oversized & Incorrect Glyphs in Math Delimiter Dialog

2016-03-11 Thread Enrico Forestieri
commit bb6130eea1e2cf312a2dd1b962e6cdf5828af4e2 Author: Enrico Forestieri <for...@lyx.org> Date: Fri Mar 11 11:37:15 2016 +0100 Fix bug #9990: Oversized & Incorrect Glyphs in Math Delimiter Dialog The TeX fonts ditributed with LyX are now used for displaying the

[LyX/master] Circumvent odd stmary font metrics (part of #9990).

2016-03-12 Thread Enrico Forestieri
commit 0430132aa049f2a97280bcbcff69f71d42ed7d98 Author: Enrico Forestieri <for...@lyx.org> Date: Sun Mar 13 01:51:15 2016 +0100 Circumvent odd stmary font metrics (part of #9990). The stmary font has an unusual large descent that was causing a large gap between

[LyX/master] Update it.po

2016-04-25 Thread Enrico Forestieri
commit 9384ed0f08e9d0953839ed7a109b7909b5774168 Author: Enrico Forestieri <for...@lyx.org> Date: Mon Apr 25 17:36:51 2016 +0200 Update it.po diff --git a/po/it.gmo b/po/it.gmo index 7ed8876..ca0c19a 100644 Binary files a/po/it.gmo and b/po/it.gmo differ diff --git a/po/it.po b/po

[LyX/master] Add note about required svg support in Qt.

2016-05-22 Thread Enrico Forestieri
commit 63153b89376cf120a1a9ba818624f36f9d23f292 Author: Enrico Forestieri <for...@lyx.org> Date: Mon May 23 03:04:55 2016 +0200 Add note about required svg support in Qt. diff --git a/lib/RELEASE-NOTES b/lib/RELEASE-NOTES index d3ac4c4..4fab9b7 100644 --- a/lib/RELEASE-NOTES +++

[LyX/master] Adapt code to comment

2016-08-14 Thread Enrico Forestieri
commit f323a64fc34b83268b769fe549d1bc5801dd19b3 Author: Enrico Forestieri <for...@lyx.org> 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/gr

[LyX/master] Correct comment

2016-08-13 Thread Enrico Forestieri
commit 7113fb669dcd193295308c44ee2213aa437e38b2 Author: Enrico Forestieri <for...@lyx.org> 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:

[LyX/master] Check path of Qt tools if qtchooser is detected

2016-07-17 Thread Enrico Forestieri
commit 0c7bd9a57f2a308bb9659200eda3b7e45f8d5d3c Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jul 17 12:31:24 2016 +0200 Check path of Qt tools if qtchooser is detected The full path of the tools is retained only if the Qt directory is specified using --with-qt-di

[LyX/master] Use a more portable construct

2016-07-17 Thread Enrico Forestieri
commit 5adc2c5ff2addf3231b6f68b11ef990f987592f9 Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jul 17 23:50:34 2016 +0200 Use a more portable construct Some shells do not understand the $() notation for command substitution. --- config/qt4.m4 |4 ++-- 1 files chan

[LyX/master] Update qpdfview info on inverse search

2016-07-19 Thread Enrico Forestieri
commit cf8302b86ddf98960fbe6351752351ed6440a613 Author: Enrico Forestieri <for...@lyx.org> Date: Tue Jul 19 11:31:36 2016 +0200 Update qpdfview info on inverse search --- lib/doc/Additional.lyx |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/l

[LyX/master] Bring window to front only for single-instance mode

2016-07-04 Thread Enrico Forestieri
commit 697580006e06d9f28bfa151dc804181e243cca4e Author: Enrico Forestieri <for...@lyx.org> Date: Tue Jul 5 01:01:02 2016 +0200 Bring window to front only for single-instance mode A window manager could be configured such that to maintain a certain stack order for the w

[LyX/2.2.x] Bring window to front only for single-instance mode

2016-07-05 Thread Enrico Forestieri
commit ebb194114343000fd1d6f38d295543b6aca17b9e Author: Enrico Forestieri <for...@lyx.org> Date: Tue Jul 5 23:19:59 2016 +0200 Bring window to front only for single-instance mode A window manager could be configured such that to maintain a certain stack order for the w

[LyX/master] Fix paste of selection to (unfocused) external applications

2016-07-10 Thread Enrico Forestieri
commit cb0c881b0298ef6c54e0cc57dc6f2ef46716c7aa Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jul 10 19:31:32 2016 +0200 Fix paste of selection to (unfocused) external applications With both Qt4 and Qt5, when using a click-to-focus policy, the first attempt to

[LyX/master] Account for the case in which Qt tools are not in PATH

2016-07-07 Thread Enrico Forestieri
commit f0aa129938d0d874c6197f2886e9fc840ef23a2e Author: Enrico Forestieri <for...@lyx.org> Date: Thu Jul 7 23:12:07 2016 +0200 Account for the case in which Qt tools are not in PATH If the Qt directory is specified by --with-qt-dir, the full path of the tools is re

[LyX/master] Fix building on cygwin after 23dbcb59

2016-07-07 Thread Enrico Forestieri
commit f70dd65bb2974fda462b565695c18cef7769d4e0 Author: Enrico Forestieri <for...@lyx.org> Date: Thu Jul 7 23:37:14 2016 +0200 Fix building on cygwin after 23dbcb59 --- configure.ac |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac

[LyX/2.2.x] Bring window to front after loading a document

2016-07-04 Thread Enrico Forestieri
commit f5f8c6fd3828285b67e43a9c16d4ac2ff2140944 Author: Enrico Forestieri <for...@lyx.org> Date: Mon Jul 4 20:44:13 2016 +0200 Bring window to front after loading a document Fixes #7875. --- src/frontends/qt4/GuiApplication.cpp | 13 +++-- stat

[LyX/master] Fix display of \leq, \geq, and \lnot in mathed

2016-07-04 Thread Enrico Forestieri
commit 7c82ab32052cb5951d239977ac2d740faa7a5f6e Author: Enrico Forestieri <for...@lyx.org> Date: Mon Jul 4 21:49:55 2016 +0200 Fix display of \leq, \geq, and \lnot in mathed Commit 343a379b used a wrong syntax that was causing the display of the above symbols as

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

2016-08-06 Thread Enrico Forestieri
commit 41e409f8f7f437ff958b35073d5e2c3f0c90dd87 Author: Enrico Forestieri <for...@lyx.org> 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

[LyX/master] Bring window to front after loading a document

2016-07-03 Thread Enrico Forestieri
commit 16ec606ab40cd659dcb161cde5aa6a66076dbcfd Author: Enrico Forestieri <for...@lyx.org> Date: Sun Jul 3 22:58:25 2016 +0200 Bring window to front after loading a document Fixes #7875. --- src/frontends/qt4/GuiApplication.cpp | 11 +-- 1 files changed, 9 inse

[LyX/master] Add verbose option

2016-08-17 Thread Enrico Forestieri
commit 2a371bb4b3235462ea6632d31d50ee447933bef8 Author: Enrico Forestieri <for...@lyx.org> 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 pr

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

2016-08-17 Thread Enrico Forestieri
commit fb46b3a1ee642b66b9712c6f376f543c47a2695e Author: Enrico Forestieri <for...@lyx.org> 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 cor

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

2017-01-21 Thread Enrico Forestieri
commit 9e6cf6e05a25d38e8d7d9ecbf360b2aa5fd06d03 Author: Enrico Forestieri <for...@lyx.org> 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

[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

[LyX/master] Allow inserting consecutive dashes

2017-02-25 Thread Enrico Forestieri
commit 3c329db0a50689ee2384db1ae02a98aca3bf0bac Author: Enrico Forestieri <for...@lyx.org> 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

[LyX/2.2.x] Allow inserting consecutive dashes

2017-02-25 Thread Enrico Forestieri
commit 857548d33bbcd01e7d7f061fa520917e93acc577 Author: Enrico Forestieri <for...@lyx.org> 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

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

2016-08-21 Thread Enrico Forestieri
commit 6adf079796b7bee280233742878c0754979c6d24 Author: Enrico Forestieri <for...@lyx.org> 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 ar

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

2016-08-19 Thread Enrico Forestieri
commit 589f49ff366f88e3f3be9424397d9d99ebf44dfe Author: Enrico Forestieri <for...@lyx.org> 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

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

2016-08-29 Thread Enrico Forestieri
commit 874bbe216608e3d4db4ae8692a82d1525d0f6951 Author: Enrico Forestieri <for...@lyx.org> 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 se

[LyX/2.2.x] Update it.po

2016-09-12 Thread Enrico Forestieri
commit ca018b237a3685e2cda9b4f654927f8a5981a63f Author: Enrico Forestieri <for...@lyx.org> 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 cha

[LyX/master] Ensure consistency

2016-09-11 Thread Enrico Forestieri
commit a24033ff0e49316ba90919f024c561914d55ad47 Author: Enrico Forestieri <for...@lyx.org> 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 expl

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

2016-09-11 Thread Enrico Forestieri
commit 615c733844e604cd1e966206eaffa61d14f7bd39 Author: Enrico Forestieri <for...@lyx.org> 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

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

2016-09-14 Thread Enrico Forestieri
commit e36a8903d7bf6433056dffcc290c369a37cf6e3a Author: Enrico Forestieri <for...@lyx.org> 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

[LyX/master] Fix bug #9616

2016-09-10 Thread Enrico Forestieri
commit cb7094696095236b9a7133f41901e90aee767544 Author: Enrico Forestieri <for...@lyx.org> 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

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

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

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

2016-09-13 Thread Enrico Forestieri
commit 8ec91e804a038982d07fc2f88511da8579b9b523 Author: Enrico Forestieri <for...@lyx.org> 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

[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 <for...@lyx.org> 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

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

2016-09-13 Thread Enrico Forestieri
commit 8f86ee74cddc6d3d9f8eea4d98ad4d4bab842411 Author: Enrico Forestieri <for...@lyx.org> 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 calculati

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

2016-09-15 Thread Enrico Forestieri
commit 364e8d66927161abec69c597a7022162db9a8af9 Author: Enrico Forestieri <for...@lyx.org> 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 del

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

2016-09-15 Thread Enrico Forestieri
commit a26e75cd8adc26105fab175f88d646fd19cbd595 Author: Enrico Forestieri <for...@lyx.org> 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

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

2016-09-15 Thread Enrico Forestieri
commit c4aca5705b149511d9311aba8cbb94254a801756 Author: Enrico Forestieri <for...@lyx.org> 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(-)

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

2016-09-15 Thread Enrico Forestieri
commit 1b7dea5c2fa83efc80f056aafc8f5d8b4551daa1 Author: Enrico Forestieri <for...@lyx.org> 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(-)

[LyX/master] Ensure proper mode in mathed

2016-09-09 Thread Enrico Forestieri
commit 324651899e605870b410fa9dcad78d4c8dc4fd0f Author: Enrico Forestieri <for...@lyx.org> 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 c

[LyX/master] Avoid duplicating mode changing commands

2016-09-09 Thread Enrico Forestieri
commit 5cdbaf51ee73e23b9c0dfd6e8a9aa5fea1d798de Author: Enrico Forestieri <for...@lyx.org> 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

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

2016-09-23 Thread Enrico Forestieri
commit 3bc08a76c42cd350a3141f00f37082bc9fab8967 Author: Enrico Forestieri <for...@lyx.org> 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

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

2016-09-24 Thread Enrico Forestieri
commit 6a3ced3cfb14c851053ddada9abaa9c3cd4f659d Author: Enrico Forestieri <for...@lyx.org> 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

[LyX/master] Correctly classify macros

2016-09-24 Thread Enrico Forestieri
commit 314e30d5fdd243fca204effb20acdd6b8b8469b1 Author: Enrico Forestieri <for...@lyx.org> 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 curre

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

2016-09-29 Thread Enrico Forestieri
commit 925f933a19eb15c49467a60bbd2e4bf30adde294 Author: Enrico Forestieri <for...@lyx.org> 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 chan

[LyX/master] Amend ccc0e03f

2016-10-04 Thread Enrico Forestieri
commit 42a30357091d8483342a4f52260a2d2c6d80c980 Author: Enrico Forestieri <for...@lyx.org> 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. --

[LyX/master] Improve systemlyxdir handling

2016-09-17 Thread Enrico Forestieri
commit ade098e2896bd9d7d87b3df1a9276661dd3f7c78 Author: Enrico Forestieri <for...@lyx.org> 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 in

[LyX/master] Document the new behaviour in mathed

2016-09-19 Thread Enrico Forestieri
commit d0f608d28ebeabadc8308f408f2a67980da8e73c Author: Enrico Forestieri <for...@lyx.org> 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-N

[LyX/master] Correctly track opened polyglossia languages

2016-09-25 Thread Enrico Forestieri
commit 8c14d9e0413978aa11f581e9c6f2d0587bb0b189 Author: Enrico Forestieri <for...@lyx.org> 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

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

2016-09-25 Thread Enrico Forestieri
commit 4508a7f855976bb1b23d8f9008a331204f31e651 Author: Enrico Forestieri <for...@lyx.org> 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/Paragra

[LyX/master] Amend 6a3ced3c

2016-09-25 Thread Enrico Forestieri
commit 3bc80220a79dc7e02f90fa035b2afc102f9d531f Author: Enrico Forestieri <for...@lyx.org> 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

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

2016-09-25 Thread Enrico Forestieri
commit 6642152e6610f1e885babfaeb3c99bd0004916fc Author: Enrico Forestieri <for...@lyx.org> 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. Se

[LyX/master] Shut up compiler warning

2016-09-27 Thread Enrico Forestieri
commit f476d9c85ad63353b978481fde59659b870758fe Author: Enrico Forestieri <for...@lyx.org> 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

[LyX/master] Also track local language switches

2016-09-27 Thread Enrico Forestieri
commit 7e3494c293b94e1f7bc80915da0f9b49fd0e0ccc Author: Enrico Forestieri <for...@lyx.org> 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

<    1   2   3   4   5   6   7   8   9   10   >