Commit Graph

38512 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
1dc134fb60 Improve UndoGroupHelper and use it more
Now the helper class contains logic that checks whether buffer are
known before closing them. This avoids potential crashes.

Use it in different places to siplify code. It is not clear at this
point whether it should be used everywhere.

Followup to bug #10847.

(cherry picked from commit cd9e42dc35)
2018-02-15 10:36:17 +01:00
Jean-Marc Lasgouttes
51e80361b2 Better handling of multiple buffers in UndoGroupHelper
It may happen that the buffers are visited in order buffer1,
buffer2, buffer1. In this case, we want to have only one undo group
in buffer1. The solution is to replace buffer_ with a set<Buffer*>.

A use case among others is InsetLabel::updateReferences.

(cherry picked from commit cc7364dfc5)
2018-02-15 10:33:17 +01:00
Scott Kostyshak
4fecadeae3 RELEASE-NOTES: grammar, and sort languages
- "because the" -> "because of the"
- alphabetize the languages
2018-02-15 01:01:26 -05:00
Juergen Spitzmueller
bf94074114 Disable unsupported ref types in mathed.
Also repair prettyref in InsetMathRef.

Part of #9798

(cherry picked from commit 47e85b37eb)
2018-02-15 06:48:38 +01:00
Jean-Marc Lasgouttes
5f6c681b76 Handle properly top/bottom of inset with mac-like cursor movement
The correct behavior is to go to position 0 going up from first row,
and to end of row when going down on last row.

The targetx value of the cursor is not updated, which makes cursor
movement more natural.

Fixes bug #10701.

(cherry picked from commit 34285cc683)
2018-02-14 17:06:03 +01:00
Uwe Stöhr
8be744b827 RELEASE-NOTES: correct sorting 2018-02-14 14:51:57 +01:00
Uwe Stöhr
14e80adffc UserGuide.lyx: document the removal of the pixmap cache for all languages 2018-02-14 14:50:08 +01:00
Uwe Stöhr
181b24e7dc RELEASE-NOTES: Greek is not dropped 2018-02-14 14:48:22 +01:00
Pavel Sanda
a6fc4a02ff * RELEASE-NOTES 2018-02-14 11:11:28 +01:00
Jean-Marc Lasgouttes
e11c8ba81b Disable and hide the pixmap cache feature 2018-02-14 10:12:11 +01:00
Juergen Spitzmueller
370ad4d704 Updated Basque localization by Iñaki Larrañaga Murgoitio 2018-02-13 18:34:41 +01:00
Richard Heck
50fc1bbc6d Also fix chapter layout in tufte-book.
(cherry picked from commit 5f1b32f8c5)
2018-02-12 23:35:04 -05:00
Richard Heck
0dfca93139 Fix crash when citeengine is unknown.
(cherry picked from commit 5ee3396459)
2018-02-12 23:31:42 -05:00
Pavel Sanda
ceee86a824 Fixing painting regression - chapter top spacing.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203685.html
2018-02-13 00:10:57 +01:00
Pavel Sanda
2554a7dffb * layouttranslations - eu & sv changes. 2018-02-12 21:22:03 +01:00
Uwe Stöhr
d1ac023b50 Merge branch '2.3.x' of git.lyx.org:lyx into 2.3.x 2018-02-12 19:04:25 +01:00
Uwe Stöhr
90060459be ru.po: some corrections by Yuriy 2018-02-12 19:04:08 +01:00
Juergen Spitzmueller
db1c123f45 Fix autotools build after AGUTeX.lyx reocation 2018-02-12 18:57:45 +01:00
Uwe Stöhr
08fd1a8131 Customization.lyx: distribute all tracked changes 2018-02-12 18:51:48 +01:00
Juergen Spitzmueller
ab2bd29629 Updated Basque localization by Iñaki Larrañaga Murgoitio 2018-02-12 16:42:08 +01:00
jpc
92adecb6e0 Remove sections 6.7 and 6.4 from Additional manual (obsolete classes egs and aguplus)
Edit LaTeXConfig.lyx accordingly
       Move teaplates/AGUTeX.lyx to teaplates/obsolete
2018-02-12 11:30:18 +01:00
Juergen Spitzmueller
6c455707fe biblatex-natbib.citeengine: Remove erroneous blank
(cherry picked from commit b0ecfebad4)
2018-02-11 16:45:11 +01:00
Uwe Stöhr
037be1556d ru.po: is now 100% translated
big respect to Yuriy!
2018-02-10 19:34:29 +01:00
Juergen Spitzmueller
fe414fcdd8 Fix race condition in processFuncRequestQueue
The issue here was that the element was only removed from the queue
after the func request was processed, but within that process, other
function could access the queue, so the queue could even be empty
when this function finally wanted to remove the item.

Fixes: #10406.
(cherry picked from commit dadec50a18)
2018-02-10 18:32:03 +01:00
Enrico Forestieri
e43bf58223 Avoid an infinite loop
When pasting "\big" without any following delimiter, avoid
processing the same token again and again. For unknown reasons,
the delim docstring turns out to always be not empty: even when
it simply contains a '0' (no delimiter follows), its length is 1.

Fixes bug #11027.

(cherry picked from commit 8e8b3f6104)
2018-02-10 10:36:48 +01:00
Juergen Spitzmueller
2d923e4243 Fix child document regex in scanLogFile
Several problems:
* The regex failed at names such as 1_text_2_text.tex
  (returned "2_text.tex)
* The regex failed at names such as 12_text.tex
  (returned "2_text.tex)
* Masters with digits in the name (2018_text.tex) were
  tracked as their own children

(cherry picked from commit 398e026250)
2018-02-10 07:59:30 +01:00
Juergen Spitzmueller
04e995e807 tex2lyx: normalize bib and bst paths
Fixes: #7637
(cherry picked from commit 3cc98a9bf6)
2018-02-09 18:57:53 +01:00
Juergen Spitzmueller
af91405786 Consider class-provided citation engines
Do not attempt to load, nor allow to set, a different engine in this
case.

Fixes: #11022
(cherry picked from commit 2f6ada6644)
2018-02-09 09:50:43 +01:00
Juergen Spitzmueller
5549d3033f Reset cur.pit() when pasting into tables.
The number of paragraphs can change here, so pit() can become invalid.

Fixes: #9983
(cherry picked from commit 6e4e086900)
2018-02-09 09:37:51 +01:00
Juergen Spitzmueller
78911c7379 Revert "Mark follow-up paragraphs in a paragraph group as nested."
This reverts commit 70d580fea7.
2018-02-08 17:09:15 +01:00
Juergen Spitzmueller
0d82fd392f Do not show "Abstract" label in KOMA classes
This is not output by those classes (per default).

(cherry picked from commit 9b23b49d41)
2018-02-06 18:41:13 +01:00
Juergen Spitzmueller
4285438558 Add missing connection.
This activates the OK/Apply when a biblatex style file is changed
manually

(cherry picked from commit 6236bcb653)
2018-02-06 17:58:13 +01:00
Uwe Stöhr
56f25c6f36 ru.po: translations from Yuriy 2018-02-04 23:40:37 +01:00
Uwe Stöhr
7d333c17a5 po files: remerge again some files
I have seen that line numbers changed in the meantime, therefore help the translators whose files are not yet 100% translated a bit
2018-02-04 15:33:50 +01:00
Uwe Stöhr
a812955d82 ar.po: updates from Hatim 2018-02-04 15:23:36 +01:00
Juergen Spitzmueller
14e0a27098 Enable CompressorProxy for all Workareas (incl. EmbeddedWorkarea)
This fixes the Advanced F&R.

(cherry picked from commit 5ce36019e5)
2018-02-03 09:43:36 +01:00
Uwe Stöhr
23d27a5953 sv.po: updates from Jim 2018-02-02 21:30:09 +01:00
Richard Heck
92ca5012ce Double escape binary regexes in module and citeengine searches.
See previous commit for explanation.

(cherry picked from commit 0e3d209295)
2018-02-01 23:33:54 -05:00
Richard Heck
42718b1dbd Double escape binary regex in lyx2lyx and fix line-ending problem.
When we switched from r'...' to b'...', this required strings used
as input to re.compile to be double-escaped. It's not an issue with
"\s", because "\s" has no special meaning in a string.

Also, printing in binary mode did not output a line ending.

(cherry picked from commit 6b5a7116cd)
2018-02-01 23:33:37 -05:00
Uwe Stöhr
4fc0f3e754 French docs: remove a file that was accidentally committed 2018-02-01 05:18:51 +01:00
Uwe Stöhr
621f8f9c16 pt_BR.po: updates from Georger
- He also reviewed layouttranslations and says it is OK
2018-02-01 05:10:06 +01:00
jpc
b1a800613b Remove unappropriate French style command from preamble 2018-01-31 17:49:51 +01:00
Uwe Stöhr
61f704d1db French docs: port Günter's changes to branch
Günter please always commit to the current branch except it is a change that describes a new feature in master
2018-01-31 05:46:58 +01:00
Uwe Stöhr
3e73fb629d ru.po: more translations from Yuriy 2018-01-31 05:41:58 +01:00
Juergen Spitzmueller
b573a9bd55 Once more, the libertine font package has been renamed.
Take the newest one, if present.

Candidate for 2.3.x.

(cherry picked from commit 7e071f14b9)
2018-01-30 19:29:10 +01:00
jpc
224e9c26eb Translation of sections 6.4 (aguplus) and 6.7 (egs)
Note that both sections are oudated
      since 2016 for aguplus and 2002 for egs
      I added notes avout this in the French version of the manual
2018-01-30 15:12:54 +01:00
Jean-Marc Lasgouttes
19c90f3a89 Make sure to add at least one element in row if possible
breakRow should only produce an empty row when there is nothing left
in the paragraph.

Fixes bug #10996.

(cherry picked from commit 253b935f65)
2018-01-30 11:07:44 +01:00
Jean-Marc Lasgouttes
34c1b3c42c Remove 'premature optimization' that proved buggy
At some time it seemed like a good idea in breakRow() to return early
when the row was bound to be empty. It turns out that this creates two
symptoms:

* empty paragraphs will not have an end of paragraph marker

* since row width is not correctly computed in this case, caret ghosts
  can appear in master.

This commit removes the oprimization and replace the do {} while()
construct to a straightforward while() {}.

Related to bug #10952.

(cherry picked from commit 76f0a3dd4e)
2018-01-30 11:06:30 +01:00
Juergen Spitzmueller
bff3141b5c Document B_ in cite style definitions
(cherry picked from commit 8a08a19122)
2018-01-30 08:21:39 +01:00
Juergen Spitzmueller
275d5d30de Differentiate Buffer strings and GUI strings in citeengines
The former need to be translated to the buffer language, the latter to
the GUI language.

Fixes: #10946
(cherry picked from commit 5db4d712ef)
2018-01-30 08:21:21 +01:00