Re: [LyX/master] Add feedback in status bar when zooming

2016-08-29 Thread Scott Kostyshak
On Mon, Aug 29, 2016 at 02:11:17PM +0200, Jean-Marc Lasgouttes wrote:
> Le 27/08/2016 à 17:11, Scott Kostyshak a écrit :
> > > It is not clear to me that we want to do that. If the current zoom is
> > > 15, and the user does
> > > 
> > > buffer-zoom-out
> > > 
> > > Do we want it to be disabled? Or do we want to enable it but just change
> > > the zoom from 15 to 10? I prefer the second.
> > 
> > JMarc any thoughts?
> 
> I prefer the second option too. But is is what happens currently, isn't it?

On current master, if zoom is at 10% and you run

  buffer-zoom-in -1

then the LFUN is not disabled and status shows:

  Zoom level is now 10% (buffer-zoom-in -1)

With my patch, I think the LFUN is disabled and status shows the same as

  buffer-zoom-out -1

which is:

  Zoom level cannot be less than 10%.

I did not double check the above though. That's just from memory.

Scott


signature.asc
Description: PGP signature


Re: Our \LyX{} inset breaks compilation in Hebrew (but \LaTeX{} does not)

2016-08-29 Thread Scott Kostyshak
On Tue, Aug 30, 2016 at 12:12:24AM +0300, Guy Rutenberg wrote:
> Hi,
> 
> Both \lyx and \latex macros should be marked as English insets when part of
> Hebrew text. Otherwise they will be rendered reversed, just as Scott
> mentioned.

So we can call it a feature that the LyX inset causes an error if used
in Hebrew because it's better than silently having the wrong direction
like \LaTeX{}?
:)

It seems arbitrary to mark it as English but that is indeed what we do
with our Hebrew Intro guide.

Scott


signature.asc
Description: PGP signature


Re: Our \LyX{} inset breaks compilation in Hebrew (but \LaTeX{} does not)

2016-08-29 Thread Scott Kostyshak
On Mon, Aug 29, 2016 at 02:44:24PM +0200, Jean-Marc Lasgouttes wrote:
> Le 29/08/2016 à 01:39, Scott Kostyshak a écrit :
> > Our compilation of the Hebrew splash file fails with "Missing glyphs!"
> > errors. Indeed, if you look at the output, the LyX inset outputs are
> > missing. Interestingly, the \LaTeX{} commands work fine (i.e. do not
> > cause an error), and result in R-to-L output (XeTaL).
> 
> I cannot double check that since the (your?) instructions for installing
> Hebrew support in  Ubuntu are so scary. I am not going to overwrite my
> texlive installation juste for that.

I think you are referring to the install-tl-ubuntu script. It is indeed
scary particularly because it requires sudo. I'm not proud of that.

Perhaps this does the trick in a less scary way:

mkdir "/tmp/HebrewFonts" &&
cd "/tmp/HebrewFonts" &&
wget 
"http://archive.debian.org/debian/pool/main/i/ivritex/ivritex_1.1.1-6_all.deb; 
&&
ar x "ivritex_1.1.1-6_all.deb" && tar -xf "data.tar.gz" &&
rsync -a "usr/share/texmf/" "$(kpsewhich -var-value TEXMFLOCAL)"

> > Are our \LyX{} commands supposed to work in this context?
> 
> We never wondered about that. What are the packages used in hebrew? Do they
> contain a special definition for \LaTeX? If so, we should do the same.

No idea.

Scott


signature.asc
Description: PGP signature


Re: [LyX/2.2.x] Start preparations for 2.2.1.

2016-08-29 Thread Guillaume Munch

Le 29/08/2016 à 03:11, Richard Heck a écrit :

On 08/28/2016 06:26 PM, Guillaume Munch wrote:


I intend to replace "Source pane" with "Code Preview Pane" (and related
changes) for the purpose of, I hope, avoid confusing people regarding
LyX not being meant for editing tex files in a round-trip manner.


I htink this is fine.



Will you also want it in 2.2.2 ? (I intend to wait 1 week before
committing.)

Otherwise, I'm personally done with what I planned to do for 2.2.2
(apart from the other message in this thread about backporting a
translation string).


Guillaume



Re: tex2lyx fails with \subfloat without optional arguments

2016-08-29 Thread José Abílio Matos
On Monday, August 29, 2016 3:00:53 PM WEST Jean-Marc Lasgouttes wrote:
> Le 06/08/2016 à 16:31, José Abílio Matos a écrit :
> > Basically a call like
> > 
> > \subfloat{somegraphics}
> > 
> > fails to produce a legal lyx file. LyX complains that it gets a corrupted
> > file: "...file ended unexpectedly, which means that it is probably
> > corrupted."
> Hi José,
> 
> Do you have a simple test file?
> 
> JMarc

The attached file fails to import.

Changing \subfloat{...} to \subfloat[]{...} works.

Regards, :-)
-- 
José Abílio\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subfig}
\begin{document}
	\section{Intro}
	
	Hi there!
	\begin{figure}[h!]
		\begin{center}
			\caption{Very interesting results}\label{interesting}
			\subfloat{\includegraphics[width=0.45\textwidth]{graphics}}
			\hfill
			\subfloat{\includegraphics[width=0.45\textwidth]{graphics}}\\
			\begin{minipage}{0.95\linewidth}
{\footnotesize \emph{Find the differences in the figures above!}}
			\end{minipage}
		\end{center}
	\end{figure}
		
\end{document}

Re: Our \LyX{} inset breaks compilation in Hebrew (but \LaTeX{} does not)

2016-08-29 Thread Guy Rutenberg
Hi,

Both \lyx and \latex macros should be marked as English insets when part of
Hebrew text. Otherwise they will be rendered reversed, just as Scott
mentioned.

Regards,
Guy

On 29 Aug 2016 23:22, "Guenter Milde"  wrote:

> On 2016-08-29, Jean-Marc Lasgouttes wrote:
> > Le 29/08/2016 à 01:39, Scott Kostyshak a écrit :
> >> Our compilation of the Hebrew splash file fails with "Missing glyphs!"
> >> errors. Indeed, if you look at the output, the LyX inset outputs are
> >> missing. Interestingly, the \LaTeX{} commands work fine (i.e. do not
> >> cause an error), and result in R-to-L output (XeTaL).
>
> > I cannot double check that since the (your?) instructions for installing
> > Hebrew support in  Ubuntu are so scary. I am not going to overwrite my
> > texlive installation juste for that.
>
> >> Are our \LyX{} commands supposed to work in this context?
>
> > We never wondered about that. What are the packages used in hebrew? Do
> > they contain a special definition for \LaTeX? If so, we should do the
> same.
>
> For Greek with 8-bit fonts, such macros must be wrapped in \textlatin (or
> set to a Latin-using language) due to the Greek fonts missing latin
> letters.
> (\textlatin is defined by Babel.)
>
> This may be similar for hebrew.
>
> Günter
>
>


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

2016-08-29 Thread Enrico Forestieri
On Mon, Aug 29, 2016 at 11:03:51AM -0400, Richard Heck wrote:
> On 08/29/2016 08:12 AM, Jean-Marc Lasgouttes wrote:
> > Le 26/08/2016 à 20:08, Enrico Forestieri a écrit :
> >> On Sun, Jul 17, 2016 at 06:37:31PM +0200, Jean-Marc Lasgouttes wrote:
> >>>
> >>> When everything is sorted out, can you do the backport to 2.2.2? I
> >>> think you
> >>> are the one who knows best what commits should be cherry-picked.
> >>
> >> This would be the attached patch.
> >
> > That looks good to me. Richard?
> 
> OK. You know much more about this than I do.

Done at 874bbe21.

-- 
Enrico


Re: Our \LyX{} inset breaks compilation in Hebrew (but \LaTeX{} does not)

2016-08-29 Thread Guenter Milde
On 2016-08-29, Jean-Marc Lasgouttes wrote:
> Le 29/08/2016 à 01:39, Scott Kostyshak a écrit :
>> Our compilation of the Hebrew splash file fails with "Missing glyphs!"
>> errors. Indeed, if you look at the output, the LyX inset outputs are
>> missing. Interestingly, the \LaTeX{} commands work fine (i.e. do not
>> cause an error), and result in R-to-L output (XeTaL).

> I cannot double check that since the (your?) instructions for installing 
> Hebrew support in  Ubuntu are so scary. I am not going to overwrite my 
> texlive installation juste for that.

>> Are our \LyX{} commands supposed to work in this context?

> We never wondered about that. What are the packages used in hebrew? Do 
> they contain a special definition for \LaTeX? If so, we should do the same.

For Greek with 8-bit fonts, such macros must be wrapped in \textlatin (or
set to a Latin-using language) due to the Greek fonts missing latin letters.
(\textlatin is defined by Babel.)

This may be similar for hebrew.

Günter



Re: Enable View master document even if there are no child documents

2016-08-29 Thread Guillaume Munch

Le 29/08/2016 à 16:05, Richard Heck a écrit :


Or just modify the bindings to use what's above.



+1




Re: [LyX/master] Reset anchor before selecting with S-button1

2016-08-29 Thread Jean-Marc Lasgouttes

Le 29/08/2016 à 17:02, Richard Heck a écrit :

You're right of course. Fixed at 68d825fed.

Richard, this is candidate for branch, unless you are in a hurry
prefer that I revert the faulty commit instead.


Go ahead.


Thanks, done.

JMarc



Re: Enable View master document even if there are no child documents

2016-08-29 Thread Michael Berger



On 08/29/2016 04:48 PM, racoon wrote:

On 29.08.2016 15:28, Michael Berger wrote:

Are you sure to have understood the concept of master-child?

Michael


On 08/29/2016 12:22 PM, racoon wrote:

Hi,

I almost never View child documents. Most of the time they don't
compile properly on their own anyway. So I would like to remove the
View button from my interface. Unfortunately, the View master document
button is grayed out if there are no child documents in a "master". Is
that on purpose? Why not enable it anyway? So one normally presses one
and the same button and only for the extraordinary circumstance of
viewing a child document has to press another button.


Maybe, you had in mind what is written in the User Guide:

"[The View Master Document] menu item is only visible if your document 
is included to another document, which is then its “master” (see 
section Child Documents in the Embedded Objects manual for more 
information on this topic)." (A.6.8)


This seems just plain wrong. The menu item (and the toolbar button) is 
visible in any master document as well.


Daniel


No Daniel,
the 'Select default master document' is open as you might want to use it 
as a child in another document, the then master. So you should not be to 
much concerned about this.


When you use/create/include a child document using > Insert > File > 
Child Document you will be presented the Child Documents option in the 
Documents Setting dialogue. And to me this is correct behavior.


If you do use child documents then the settings and preamble are stored 
in the master will rule (although there are some exceptions, e.g. 
modules that need to be set in a child's preamble).


That too is proper behavior in my opinion because otherwise you would 
have to write preambles and settings for each single child document. And 
you would not use the master-child concept for small documents - would you?


Now, as a consequence you most probably get an error when trying to 
compile a child document because it needs the settings of the master. 
You have to save the child first and then compile the master.


That is why I think your statement 'Most of the time they don't compile 
properly on their own anyway' is inappropriate.


Hope that I did not misunderstand you but this is what I have here.

Cheers,

Michael



Re: Enable View master document even if there are no child documents

2016-08-29 Thread Richard Heck
On 08/29/2016 11:10 AM, racoon wrote:
> On 29.08.2016 17:57, Guillaume Munch wrote:
>> Le 29/08/2016 à 11:22, racoon a écrit :
>>> Hi,
>>>
>>> I almost never View child documents. Most of the time they don't
>>> compile
>>> properly on their own anyway. So I would like to remove the View button
>>> from my interface. Unfortunately, the View master document button is
>>> grayed out if there are no child documents in a "master". Is that on
>>> purpose? Why not enable it anyway? So one normally presses one and the
>>> same button and only for the extraordinary circumstance of viewing a
>>> child document has to press another button.
>>>
>>
>> Hi,
>>
>> This has been discussed some time ago. The command:
>>   command-alternative master-buffer-view; buffer-view
>> does what you want.
>
> Thanks. But for some reason I get an "Unknown action" when using the
> command "command-alternative master-buffer-view; buffer-view". I guess
> I misunderstood something.

command-alternativeS

rh



Re: Enable View master document even if there are no child documents

2016-08-29 Thread racoon

On 29.08.2016 18:39, Richard Heck wrote:

On 08/29/2016 11:10 AM, racoon wrote:

On 29.08.2016 17:57, Guillaume Munch wrote:

Le 29/08/2016 à 11:22, racoon a écrit :

Hi,

I almost never View child documents. Most of the time they don't
compile
properly on their own anyway. So I would like to remove the View button
from my interface. Unfortunately, the View master document button is
grayed out if there are no child documents in a "master". Is that on
purpose? Why not enable it anyway? So one normally presses one and the
same button and only for the extraordinary circumstance of viewing a
child document has to press another button.



Hi,

This has been discussed some time ago. The command:
  command-alternative master-buffer-view; buffer-view
does what you want.


Thanks. But for some reason I get an "Unknown action" when using the
command "command-alternative master-buffer-view; buffer-view". I guess
I misunderstood something.


command-alternativeS


Thanks! Used

Item "View master document" "command-alternatives master-buffer-view; 
buffer-view"
Item "Update master document" "command-alternatives 
master-buffer-update; buffer-update"


for my toolbar.

Daniel



Re: Enable View master document even if there are no child documents

2016-08-29 Thread racoon

On 29.08.2016 17:57, Guillaume Munch wrote:

Le 29/08/2016 à 11:22, racoon a écrit :

Hi,

I almost never View child documents. Most of the time they don't compile
properly on their own anyway. So I would like to remove the View button
from my interface. Unfortunately, the View master document button is
grayed out if there are no child documents in a "master". Is that on
purpose? Why not enable it anyway? So one normally presses one and the
same button and only for the extraordinary circumstance of viewing a
child document has to press another button.



Hi,

This has been discussed some time ago. The command:
  command-alternative master-buffer-view; buffer-view
does what you want.


Thanks. But for some reason I get an "Unknown action" when using the 
command "command-alternative master-buffer-view; buffer-view". I guess I 
misunderstood something.





Re: Enable View master document even if there are no child documents

2016-08-29 Thread Richard Heck
On 08/29/2016 11:02 AM, Jean-Marc Lasgouttes wrote:
> Le 29/08/2016 à 16:57, Guillaume Munch a écrit :
>> Le 29/08/2016 à 11:22, racoon a écrit :
>>> Hi,
>>>
>>> I almost never View child documents. Most of the time they don't
>>> compile
>>> properly on their own anyway. So I would like to remove the View button
>>> from my interface. Unfortunately, the View master document button is
>>> grayed out if there are no child documents in a "master". Is that on
>>> purpose? Why not enable it anyway? So one normally presses one and the
>>> same button and only for the extraordinary circumstance of viewing a
>>> child document has to press another button.
>>>
>>
>> Hi,
>>
>> This has been discussed some time ago. The command:
>>   command-alternative master-buffer-view; buffer-view
>> does what you want.
>
> However, it would make sense to have a first-class command that just
> does the right thing IMO.

Or just modify the bindings to use what's above.

Richard



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

2016-08-29 Thread Richard Heck
On 08/29/2016 08:12 AM, Jean-Marc Lasgouttes wrote:
> Le 26/08/2016 à 20:08, Enrico Forestieri a écrit :
>> On Sun, Jul 17, 2016 at 06:37:31PM +0200, Jean-Marc Lasgouttes wrote:
>>>
>>> When everything is sorted out, can you do the backport to 2.2.2? I
>>> think you
>>> are the one who knows best what commits should be cherry-picked.
>>
>> This would be the attached patch.
>
> That looks good to me. Richard?

OK. You know much more about this than I do.

rh



Input adds space

2016-08-29 Thread racoon
I just ran across a problem when inputting files. Apparently LaTeX adds 
a space after the inputted file.


http://tex.stackexchange.com/questions/18017/space-inserted-after-input-call

For me this led to a strange larger space being added after the inputted 
file which was supposed to be only the first part of a paragraph.


Maybe there could be a checkbox in the Child Document dialog that reads 
something like "remove space after child" or so when the Include Type is 
Input. This then automatically adds the \unskip or \endinput command. 
Maybe that should even be the default?


Daniel



Re: [LyX/master] Reset anchor before selecting with S-button1

2016-08-29 Thread Richard Heck
On 08/29/2016 06:08 AM, Jean-Marc Lasgouttes wrote:
> Le 29/08/2016 à 00:27, Guillaume Munch a écrit :
>> This causes a regression in master and stable: when selecting with
>> S-button1 a second time, the previous selection is unselected. This is
>> inconsistent with other software and I am not sure that this was
>> intended.
>
> You're right of course. Fixed at 68d825fed.
>
> Richard, this is candidate for branch, unless you are in a hurry
> prefer that I revert the faulty commit instead.

Go ahead.

rh



Re: Enable View master document even if there are no child documents

2016-08-29 Thread Jean-Marc Lasgouttes

Le 29/08/2016 à 16:57, Guillaume Munch a écrit :

Le 29/08/2016 à 11:22, racoon a écrit :

Hi,

I almost never View child documents. Most of the time they don't compile
properly on their own anyway. So I would like to remove the View button
from my interface. Unfortunately, the View master document button is
grayed out if there are no child documents in a "master". Is that on
purpose? Why not enable it anyway? So one normally presses one and the
same button and only for the extraordinary circumstance of viewing a
child document has to press another button.



Hi,

This has been discussed some time ago. The command:
  command-alternative master-buffer-view; buffer-view
does what you want.


However, it would make sense to have a first-class command that just 
does the right thing IMO.


JMarc



Re: Enable View master document even if there are no child documents

2016-08-29 Thread Guillaume Munch

Le 29/08/2016 à 11:22, racoon a écrit :

Hi,

I almost never View child documents. Most of the time they don't compile
properly on their own anyway. So I would like to remove the View button
from my interface. Unfortunately, the View master document button is
grayed out if there are no child documents in a "master". Is that on
purpose? Why not enable it anyway? So one normally presses one and the
same button and only for the extraordinary circumstance of viewing a
child document has to press another button.



Hi,

This has been discussed some time ago. The command:
  command-alternative master-buffer-view; buffer-view
does what you want.





Re: Enable View master document even if there are no child documents

2016-08-29 Thread racoon

On 29.08.2016 15:28, Michael Berger wrote:

Are you sure to have understood the concept of master-child?

Michael


On 08/29/2016 12:22 PM, racoon wrote:

Hi,

I almost never View child documents. Most of the time they don't
compile properly on their own anyway. So I would like to remove the
View button from my interface. Unfortunately, the View master document
button is grayed out if there are no child documents in a "master". Is
that on purpose? Why not enable it anyway? So one normally presses one
and the same button and only for the extraordinary circumstance of
viewing a child document has to press another button.


Maybe, you had in mind what is written in the User Guide:

"[The View Master Document] menu item is only visible if your document 
is included to another document, which is then its “master” (see section 
Child Documents in the Embedded Objects manual for more information on 
this topic)." (A.6.8)


This seems just plain wrong. The menu item (and the toolbar button) is 
visible in any master document as well.


Daniel



Re: [patch] On-screen justification: stretch in proportion with the em, up to a limit

2016-08-29 Thread Guillaume Munch

Le 29/08/2016 à 13:16, Jean-Marc Lasgouttes a écrit :

Le 29/08/2016 à 00:29, Guillaume Munch a écrit :

Dear list

Attached is a patch that changes some details about text justification.
The spacing is distributed proportionally to the em size (if a row mixes
two font heights one can see distinguish spaces in the big font from
spaces in the small font). Moreover an upper bound is set on the spacing
(1.5em) to prevent situations where there are weirdly wide gaps between
words (inspired my Kindle).


The patch looks good. Where does the 1.5em come from?


Arbitrary and can be adjusted. You can experiment yourself.



Does this fix #10117?


Not at all.




Re: Enable View master document even if there are no child documents

2016-08-29 Thread racoon

On 29.08.2016 14:28, Michael Berger wrote:

Are you sure to have understood the concept of master-child?


I thought so. But maybe I haven't. But what makes you think I haven't?

Daniel



Re: tex2lyx fails with \subfloat without optional arguments

2016-08-29 Thread Jean-Marc Lasgouttes

Le 06/08/2016 à 16:31, José Abílio Matos a écrit :

Basically a call like

\subfloat{somegraphics}

fails to produce a legal lyx file. LyX complains that it gets a corrupted
file: "...file ended unexpectedly, which means that it is probably corrupted."


Hi José,

Do you have a simple test file?

JMarc


Re: [LyX/master] Add verbose option

2016-08-29 Thread Jean-Marc Lasgouttes

Le 20/08/2016 à 00:44, Enrico Forestieri a écrit :

BTW, I find it quite confusing having two files with same name and almost
same content for exactly the same purpose:
src/support/tests/dummy_functions.cpp
src/tests/dummy_functions.cpp


What would you suggest?


Using only one file. See 589f49ff.


I see. Thanks.

JMarc



Re: Our \LyX{} inset breaks compilation in Hebrew (but \LaTeX{} does not)

2016-08-29 Thread Jean-Marc Lasgouttes

Le 29/08/2016 à 01:39, Scott Kostyshak a écrit :

Our compilation of the Hebrew splash file fails with "Missing glyphs!"
errors. Indeed, if you look at the output, the LyX inset outputs are
missing. Interestingly, the \LaTeX{} commands work fine (i.e. do not
cause an error), and result in R-to-L output (XeTaL).


I cannot double check that since the (your?) instructions for installing 
Hebrew support in  Ubuntu are so scary. I am not going to overwrite my 
texlive installation juste for that.



Are our \LyX{} commands supposed to work in this context?


We never wondered about that. What are the packages used in hebrew? Do 
they contain a special definition for \LaTeX? If so, we should do the same.


JMarc


Re: Enable View master document even if there are no child documents

2016-08-29 Thread Michael Berger

Are you sure to have understood the concept of master-child?

Michael


On 08/29/2016 12:22 PM, racoon wrote:

Hi,

I almost never View child documents. Most of the time they don't 
compile properly on their own anyway. So I would like to remove the 
View button from my interface. Unfortunately, the View master document 
button is grayed out if there are no child documents in a "master". Is 
that on purpose? Why not enable it anyway? So one normally presses one 
and the same button and only for the extraordinary circumstance of 
viewing a child document has to press another button.


Daniel






Re: [patch] On-screen justification: stretch in proportion with the em, up to a limit

2016-08-29 Thread Jean-Marc Lasgouttes

Le 29/08/2016 à 00:29, Guillaume Munch a écrit :

Dear list

Attached is a patch that changes some details about text justification.
The spacing is distributed proportionally to the em size (if a row mixes
two font heights one can see distinguish spaces in the big font from
spaces in the small font). Moreover an upper bound is set on the spacing
(1.5em) to prevent situations where there are weirdly wide gaps between
words (inspired my Kindle).


The patch looks good. Where does the 1.5em come from?

Does this fix #10117?

JMarc



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

2016-08-29 Thread Jean-Marc Lasgouttes

Le 26/08/2016 à 20:08, Enrico Forestieri a écrit :

On Sun, Jul 17, 2016 at 06:37:31PM +0200, Jean-Marc Lasgouttes wrote:


When everything is sorted out, can you do the backport to 2.2.2? I think you
are the one who knows best what commits should be cherry-picked.


This would be the attached patch.


That looks good to me. Richard?

JMarc



Re: [LyX/master] Add feedback in status bar when zooming

2016-08-29 Thread Jean-Marc Lasgouttes

Le 27/08/2016 à 17:11, Scott Kostyshak a écrit :

It is not clear to me that we want to do that. If the current zoom is
15, and the user does

buffer-zoom-out

Do we want it to be disabled? Or do we want to enable it but just change
the zoom from 15 to 10? I prefer the second.


JMarc any thoughts?


I prefer the second option too. But is is what happens currently, isn't it?

JMarc



Re: [LyX/master] Add feedback in status bar when zooming

2016-08-29 Thread Jean-Marc Lasgouttes

Le 27/08/2016 à 17:10, Scott Kostyshak a écrit :

This also fixes #9485. Can we close that? I did not do it myself since
I'm not sure if the 10% limit hides the potential assertion or if the
unsigned int fixed it so I'll let you make the decision.


JMarc do you think we can close #9485?


Sorry I missed the message. I closed it now.

You could consider to backport 3826ff64 too, although it is minor.

JMarc


Re: Toward 2.2.2 Release

2016-08-29 Thread Jean-Marc Lasgouttes

Le 27/08/2016 à 22:20, Richard Heck a écrit :

On 08/26/2016 03:43 PM, Jean-Marc Lasgouttes wrote:

At least 10089 is trivial enough to be backported. My insert>caption patch can 
be delayed if you prefer, but basically what it does is the original intended 
behavior (code was buggy).

I will have to remove C++11-isms though.


Go ahead.


Done at bbeb3773 for #10089 and at 9e44cd67 for the Insert>Caption menu 
entry.


JMarc



Mark line(s) on Reverse search instead of close position

2016-08-29 Thread racoon
On Reverse search LyX puts the cursor at a position only *close* to but 
not exactly at the position chosen in the pdf document. It is a bit 
tricky for me to always find the former position in my document. Since 
it is anyway not the exact position maybe it is possible to select the 
whole line(s) rather than a close position?


For example, the PDF reader SumatraPDF does this on Forward search. In 
this way the position is quicker to find.


Daniel



Enable View master document even if there are no child documents

2016-08-29 Thread racoon

Hi,

I almost never View child documents. Most of the time they don't compile 
properly on their own anyway. So I would like to remove the View button 
from my interface. Unfortunately, the View master document button is 
grayed out if there are no child documents in a "master". Is that on 
purpose? Why not enable it anyway? So one normally presses one and the 
same button and only for the extraordinary circumstance of viewing a 
child document has to press another button.


Daniel



Re: LyX 2.2 slowness

2016-08-29 Thread racoon

On 29.08.2016 12:04, racoon wrote:

LyX 2.2 is very slow compared to LyX 2.1.4 (on Windows). (I have only a
meager dual core processor though.)

For example, if I open a long document like the Users Guide and make a
text selection bigger or smaller 2.2 stutters a lot (up to not reacting)
while 2.1.4 works fine. I am not sure this is just the CPU load because
there is "only" a 10 percent difference (50 vs. 40 %).


Sorry, my mistake. I had the complete source preview open somewhere. I 
guess that explains the slowness...


Daniel




Re: [LyX/master] Reset anchor before selecting with S-button1

2016-08-29 Thread Jean-Marc Lasgouttes

Le 29/08/2016 à 00:27, Guillaume Munch a écrit :

This causes a regression in master and stable: when selecting with
S-button1 a second time, the previous selection is unselected. This is
inconsistent with other software and I am not sure that this was intended.


You're right of course. Fixed at 68d825fed.

Richard, this is candidate for branch, unless you are in a hurry prefer 
that I revert the faulty commit instead.


JMarc


Re: LyX 2.2 slowness

2016-08-29 Thread Jean-Marc Lasgouttes

Le 29/08/2016 à 12:04, racoon a écrit :

LyX 2.2 is very slow compared to LyX 2.1.4 (on Windows). (I have only a
meager dual core processor though.)

For example, if I open a long document like the Users Guide and make a
text selection bigger or smaller 2.2 stutters a lot (up to not reacting)
while 2.1.4 works fine. I am not sure this is just the CPU load because
there is "only" a 10 percent difference (50 vs. 40 %).


What Qt version is in use? I guess it is Qt5.x.

Is it only when the document is long?

Do you have any way to run a profiler?

JMarc



LyX 2.2 slowness

2016-08-29 Thread racoon
LyX 2.2 is very slow compared to LyX 2.1.4 (on Windows). (I have only a 
meager dual core processor though.)


For example, if I open a long document like the Users Guide and make a 
text selection bigger or smaller 2.2 stutters a lot (up to not reacting) 
while 2.1.4 works fine. I am not sure this is just the CPU load because 
there is "only" a 10 percent difference (50 vs. 40 %).


Daniel



Correction: Strange behaviour of the colors preference setting in version 2.2.1

2016-08-29 Thread Murat Yildizoglu
Sorry,

Playing more with this problem, I have just discovered that the settings
dialog box is not closed, but it is hidden behind the main LyX Window as
soon as I click the OK button of the color selection dialog. Since it was
just disappearing at the same time as the color dialog box, I was wrongly
assuming that it was also closed.

This is strange anyway, I think. Since the setting dialog box is initially
visible behind the Colors dialog box, it should remain there when we click
the Ok button, and not get hidden behind the main window.

I use the OSX (El Capitan 10.11.06 in French) version of Lyx. I have
forgotten to give this information in my initial mail.

Sorry for my initial confusion and thank you very much for your magnificent
efforts.

2016-08-29 11:11 GMT+02:00 Murat Yildizoglu 
:

> Hi,
>
> I have installed the last version of Lyx, and then wanted to change the
> background color setting in the preferences. When I open
> Preferences/Colours and double-click on the background item, the dialog box
> for color opens and I can select a colour, but as soon as I click the OK
> button of the color dialog box, the whole preferences dialog closes  before
> I have the chance of clicking Apply, and my change is not recorded.
>
> This is strange, no?
>
> Best regards,
>
> Murat
>
> --
> Prof. Murat Yildizoglu
>
> Note: Please use the following address as such
>
> UNIVERSITE DE BORDEAUX
> GREThA (UMR CNRS 5113)
> MURAT YILDIZOGLU
> 16 AVENUE LEON DUGUIT
> CS 50057
> 33608 PESSAC CEDEX
> FRANCE
>
> Bureau : E-331
>
> mail: murat.yildizoglu at u-bordeaux.fr
>
> web: www.yildizoglu.fr
>



-- 
Prof. Murat Yildizoglu

Note: Please use the following address as such

UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)
MURAT YILDIZOGLU
16 AVENUE LEON DUGUIT
CS 50057
33608 PESSAC CEDEX
FRANCE

Bureau : E-331

mail: murat.yildizoglu at u-bordeaux.fr

web: www.yildizoglu.fr


Re: Strange behaviour of the colors preference setting in version 2.2.1

2016-08-29 Thread racoon

On 29.08.2016 11:11, Murat Yildizoglu wrote:

Hi,

I have installed the last version of Lyx, and then wanted to change the
background color setting in the preferences. When I open
Preferences/Colours and double-click on the background item, the dialog
box for color opens and I can select a colour, but as soon as I click
the OK button of the color dialog box, the whole preferences dialog
closes  before I have the chance of clicking Apply, and my change is not
recorded.

This is strange, no?


I cannot reproduce this on Windows 7. What's your set up?

Daniel



Strange behaviour of the colors preference setting in version 2.2.1

2016-08-29 Thread Murat Yildizoglu
Hi,

I have installed the last version of Lyx, and then wanted to change the
background color setting in the preferences. When I open
Preferences/Colours and double-click on the background item, the dialog box
for color opens and I can select a colour, but as soon as I click the OK
button of the color dialog box, the whole preferences dialog closes  before
I have the chance of clicking Apply, and my change is not recorded.

This is strange, no?

Best regards,

Murat

-- 
Prof. Murat Yildizoglu

Note: Please use the following address as such

UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)
MURAT YILDIZOGLU
16 AVENUE LEON DUGUIT
CS 50057
33608 PESSAC CEDEX
FRANCE

Bureau : E-331

mail: murat.yildizoglu at u-bordeaux.fr

web: www.yildizoglu.fr