Re: optional line break, ldots (patch, fileformat)

2017-04-18 Thread Jürgen Spitzmüller
Am Dienstag, den 18.04.2017, 22:34 + schrieb Guenter Milde: > It is an undocumented internal. At least some developers don't bother > about > the actual LaTeX written, so the difference between specialchar and > literal > char went unnoticed until now. Note that I am not talking about the

Re: [LyX/master] lyx2lyx/lyx_2_2.py: correct reversion of boxes

2017-04-18 Thread Scott Kostyshak
On Mon, Apr 17, 2017 at 04:06:56AM +0200, Uwe Stöhr wrote: > commit 5b4cc6b6c84b4d3b35e7122a6ee9160816d2e108 > Author: Uwe Stöhr > Date: Mon Apr 17 04:06:52 2017 +0200 > > lyx2lyx/lyx_2_2.py: correct reversion of boxes git bisect suggests that this commit broke the test

Re: [patch] support for document class option leqno

2017-04-18 Thread Uwe Stöhr
El 19.04.2017 a las 00:27, Uwe Stöhr escribió: Attached is the patch. Hi JMarc, the patch misses the visualization within LYX. I have the same problem as with the visualization of mathindent. I cannot find where in the code we set draw the general math inset. You said that you will do

Re: optional line break, ldots (patch, fileformat)

2017-04-18 Thread Guenter Milde
On 2017-04-18, Jürgen Spitzmüller wrote: > Am Dienstag, den 18.04.2017, 10:26 +0200 schrieb Jean-Marc Lasgouttes: >> > Why? >> The fact is the you rely on an undocumented behavior of LyX to >> obtain  what you want :) > I wouldn't count it undocumented. It is an undocumented internal. At least

Re: [LyX/master] BufferParams: get rid of the HSpace class for mathindent as requested by JMarc

2017-04-18 Thread Uwe Stöhr
El 18.04.2017 a las 22:45, Uwe Stöhr escribió: I am insisting because I will send right now a patch I sent it now and CCed you. Could you please have a look? thanks and regards Uwe

[patch] support for document class option leqno

2017-04-18 Thread Uwe Stöhr
LyX 2.3 will support the document class option fleqn so I thin the other generic math document class option "leqno" should be supported as well. Attached is the patch. There shouldn't be controversies except of the place of the combobox (an the name of its label of course ;-) ). I put it in

Re: [patch] for LyX 2.2.3 - box reversion lyx2lyx

2017-04-18 Thread Uwe Stöhr
El 17.04.2017 a las 21:57, Richard Heck escribió: I will look these over and commit them if they're acceptable. Attached are the obvious "\\" fixes that should be backported. regards Uwe diff --git "a/C:\\Users\\Usti\\AppData\\Local\\Temp\\TortoiseGit\\lyx_2_0-0271602.002.py"

Re: [LyX/master] BufferParams: rename formula_indent to math_indent etc. as requested

2017-04-18 Thread Uwe Stöhr
El 18.04.2017 a las 22:57, Uwe Stöhr escribió: Since the default is now no longer "default" this fails. Ah, I see now that you already fixed this. regards Uwe

Re: [LyX/master] BufferParams: rename formula_indent to math_indent etc. as requested

2017-04-18 Thread Uwe Stöhr
El 18.04.2017 a las 14:52, Jean-Marc Lasgouttes escribió: Do I? Yes, always get \paragraph_separation indent \paragraph_indentation default but it should simply be \paragraph_separation indent There is no need to pollute the LyX file with unnecessary info. We only output the things that

Re: [LyX/master] BufferParams: rename formula_indent to math_indent etc. as requested

2017-04-18 Thread Uwe Stöhr
El 18.04.2017 a las 14:59, Jean-Marc Lasgouttes escribió: Does it really break, or do you think it does? In lyx_2_0.py we have: --- def revert_paragraph_indentation(document): " Revert custom paragraph indentation to preamble code " i = find_token(document.header,

Re: [LyX/master] BufferParams: get rid of the HSpace class for mathindent as requested by JMarc

2017-04-18 Thread Uwe Stöhr
El 18.04.2017 a las 15:54, Jean-Marc Lasgouttes escribió: Getting rid of the proper length in favor of the weird string version was definitely not what I had in mind. I cannot follow you anymore. What i did is just what the HSpace class does - it is a string using "default" ads default

Re: [LyX/master] BufferParams: rename formula_indent to math_indent etc. as requested

2017-04-18 Thread Kornel Benko
Am Dienstag, 18. April 2017 um 20:52:07, schrieb Jean-Marc Lasgouttes > Le 18/04/2017 à 18:57, Kornel Benko a écrit : > > Am Dienstag, 18. April 2017 um 18:22:00, schrieb Jean-Marc Lasgouttes > > > >> Le 18/04/2017 à 14:52, Jean-Marc Lasgouttes a écrit :

Re: [LyX/master] BufferParams: rename formula_indent to math_indent etc. as requested

2017-04-18 Thread Jean-Marc Lasgouttes
Le 18/04/2017 à 18:57, Kornel Benko a écrit : Am Dienstag, 18. April 2017 um 18:22:00, schrieb Jean-Marc Lasgouttes Le 18/04/2017 à 14:52, Jean-Marc Lasgouttes a écrit : The default value has unit==NONE, which is the definition of an empty length. An empty length is not

Re: [LyX/master] BufferParams: rename formula_indent to math_indent etc. as requested

2017-04-18 Thread Kornel Benko
Am Dienstag, 18. April 2017 um 18:22:00, schrieb Jean-Marc Lasgouttes > Le 18/04/2017 à 14:52, Jean-Marc Lasgouttes a écrit : > > The default value has unit==NONE, which is the definition of an empty > > length. An empty length is not of size 0, it is undefined. This is what

Re: [LyX/master] BufferParams: rename formula_indent to math_indent etc. as requested

2017-04-18 Thread Jean-Marc Lasgouttes
Le 18/04/2017 à 14:52, Jean-Marc Lasgouttes a écrit : The default value has unit==NONE, which is the definition of an empty length. An empty length is not of size 0, it is undefined. This is what is obtained when the entry field is left empty. What is wrong with that? The Length constructor

Re: [LyX/master] BufferParams: get rid of the HSpace class for mathindent as requested by JMarc

2017-04-18 Thread Jean-Marc Lasgouttes
Le 17/04/2017 à 20:32, Uwe Stöhr a écrit : commit d9a2a4026800865b15da186620ffab4c6b409765 Author: Uwe Stöhr Date: Mon Apr 17 20:32:31 2017 +0200 BufferParams: get rid of the HSpace class for mathindent as requested by JMarc Getting rid of the proper length in favor

Re: [LyX/master] BufferParams: rename formula_indent to math_indent etc. as requested

2017-04-18 Thread Jean-Marc Lasgouttes
Le 17/04/2017 à 19:57, Uwe Stöhr a écrit : El 17.04.2017 a las 19:53, Uwe Stöhr escribió: No, it introduces bugs. You also use now \paragraph_indentation "23bp" instead of the former \paragraph_indentation 23bp the quotes change the fileformat and break lyx2lyx routines. Does it really

Re: [LyX/master] BufferParams: rename formula_indent to math_indent etc. as requested

2017-04-18 Thread Jean-Marc Lasgouttes
Le 17/04/2017 à 19:53, Uwe Stöhr a écrit : El 17.04.2017 a las 18:32, Jean-Marc Lasgouttes escribió: I do not have time right now, but I just committed a patch for parindent. Does it help? No, it introduces bugs. Noe you use "0pt" as default value but this is not correct. We don't know the

Re: optional line break, ldots (patch, fileformat)

2017-04-18 Thread Jürgen Spitzmüller
Am Dienstag, den 18.04.2017, 10:26 +0200 schrieb Jean-Marc Lasgouttes: > > Why? > > The fact is the you rely on an undocumented behavior of LyX to > obtain  > what you want :) I wouldn't count it undocumented. It is obvious that the special char inset outputs \ldots, so I need to redefine that

Re: [LyX/master] findadv: avoid crash when regexp-based search fails (mitigates #10625).

2017-04-18 Thread Kornel Benko
Am Dienstag, 18. April 2017 um 01:46:46, schrieb Tommaso Cucinotta > On 18/04/2017 01:04, Kornel Benko wrote: > >> So, I'd be in favor of using -SIGQUIT immediately on "TestEnd" in > >> keytest.py, falling back to "kill -9" if LyX doesn't quit within 0.5 > >> secs ? > >>

Re: [LyX/master] findadv: avoid crash when regexp-based search fails (mitigates #10625).

2017-04-18 Thread Jean-Marc Lasgouttes
Le 17/04/2017 à 23:35, Tommaso Cucinotta a écrit : that's one of the drawbacks of a clean shutdown, we'd have to wait for it, slowing down tests. Perhaps alternate ways might be to just kill -9 as it is already now, but introduce: -) either a command-line option to force lyxerr << flush on every

Re: Tentative schedule for 2.3.0 release

2017-04-18 Thread Stephan Witt
Am 15.04.2017 um 15:06 schrieb mn : > > On 15.04.17 14:29, Stephan Witt wrote: >> >>> Am 15.04.2017 um 10:08 schrieb mn : >>> >>> On 14.04.17 22:31, Stephan Witt wrote: Am 12.04.2017 um 21:51 schrieb mn : >>> >> SVGs are already

Re: [LyX/2.2.x] French Tutorial.lyx: some typographic fixes

2017-04-18 Thread Jean-Pierre Chrétien
Le 17/04/2017 à 20:25, Guenter Milde a écrit : ... just after the word which refers to the footnote, ... What happens in French, if the footnote refers not just to a word but a complete sentence? I reviewed the web literature about the subject. The French typographic tradition forbids

Re: [LyX/master] findadv: avoid crash when regexp-based search fails (mitigates #10625).

2017-04-18 Thread Kornel Benko
Am Dienstag, 18. April 2017 um 01:46:46, schrieb Tommaso Cucinotta > On 18/04/2017 01:04, Kornel Benko wrote: > >> So, I'd be in favor of using -SIGQUIT immediately on "TestEnd" in > >> keytest.py, falling back to "kill -9" if LyX doesn't quit within 0.5 > >> secs ? > >>

Re: optional line break, ldots (patch, fileformat)

2017-04-18 Thread Jean-Marc Lasgouttes
Le 18/04/2017 à 07:33, Jürgen Spitzmüller a écrit : Am Montag, den 17.04.2017, 21:14 + schrieb Guenter Milde: On 2017-04-17, Jürgen Spitzmüller wrote: Am Montag, den 17.04.2017, 09:54 + schrieb Guenter Milde: The more important issue is commented on trac: Some people redefine \ldots

Re: [PATCH] Expansion of tilde for users home directory in prefs is broken on Mac

2017-04-18 Thread Kornel Benko
Am Dienstag, 18. April 2017 um 09:38:31, schrieb Stephan Witt > > You are right. I even complained about this but got no answer. > > http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg198564.html > > It’s easy to fix. IMO either this or remove the lyxrc variable. > >

Re: Warning while loading PDF-form.21.lyx

2017-04-18 Thread Kornel Benko
Am Dienstag, 18. April 2017 um 01:43:30, schrieb Uwe Stöhr > El 17.04.2017 a las 22:04, Kornel Benko escribió: > > > It may be that the python output is not in the messages pane, only messages > > created by lyx executable. > > I am in favour of bug report. > > I reported a

Re: [PATCH] Expansion of tilde for users home directory in prefs is broken on Mac

2017-04-18 Thread Stephan Witt
Am 17.04.2017 um 21:57 schrieb Kornel Benko : > > Am Montag, 17. April 2017 um 21:15:02, schrieb Stephan Witt >> >>> Am 17.04.2017 um 17:23 schrieb Kornel Benko : >>> >>> Am Montag, 17. April 2017 um 15:40:51, schrieb Stephan Witt >>>

Math_lyx{16,21} tests failing on master

2017-04-18 Thread Scott Kostyshak
On master (17a53bbc), the command ctest -R "Math_lyx" gives ... The following tests FAILED: 1530 - export/doc/Math_lyx16 (Failed) 1531 - export/doc/Math_lyx21 (Failed) Scott signature.asc Description: PGP signature

Qt terminal message "path is empty"

2017-04-18 Thread Scott Kostyshak
I've been getting the following message on recent master: QFileSystemWatcher::removePath: path is empty One way to trigger it is to have two different LyX instances open, write "hello" in one of them and select it and copy it and paste it in the other instance. The attached patch fixes it for