]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agoctests: xy package has issue with newest LuaTeX
Scott Kostyshak [Sat, 3 Sep 2016 01:21:36 +0000 (21:21 -0400)]
ctests: xy package has issue with newest LuaTeX

LuaTeX export of docs with xy package are now marked as having TeX
issues. Hopefully these will be fixed in a TL package update.

7 years agoExit with error if child exits with error (#10188)
Scott Kostyshak [Fri, 2 Sep 2016 21:10:41 +0000 (17:10 -0400)]
Exit with error if child exits with error (#10188)

Before, it could have been the case that

  lyx -e pdf2 file.lyx

had exit code 0 even though file.lyx includes a file that exits with
error. If compiled in the GUI a warning was given, but from the
command line exit code it would seem there was no problem. The exit
code for this case is now non-zero and the word "Warning" is now
removed from the message because it should be treated as an error.

An exception is thrown from InsetInclude and is caught in
Buffer::makeLaTeXFile() and added to the error list.

The (similar) use case at #8840 is also fixed by this commit.

7 years agoctests: ignore obsolete aastex.cls
Scott Kostyshak [Fri, 2 Sep 2016 15:25:35 +0000 (11:25 -0400)]
ctests: ignore obsolete aastex.cls

aastex.cls is obsolete and replaced by aastex6.cls.

This is consistent with how we treat the obsolete latex8.sty.

7 years agoctests: mark failing LyXHTML tests as "lyxbugs"
Scott Kostyshak [Fri, 2 Sep 2016 03:26:03 +0000 (23:26 -0400)]
ctests: mark failing LyXHTML tests as "lyxbugs"

For more information, see #10355.

7 years agoctests: uninvert three tests
Scott Kostyshak [Fri, 2 Sep 2016 02:56:11 +0000 (22:56 -0400)]
ctests: uninvert three tests

These exports now succeed, and manual inspection of the output
confirms there are no obvious problem.

7 years agohe/splash.lyx: mark \LaTeX{} insets as English
Scott Kostyshak [Thu, 1 Sep 2016 21:37:30 +0000 (17:37 -0400)]
he/splash.lyx: mark \LaTeX{} insets as English

This makes sure they're output in the correct direction, consistent
with the previous commit (although this does not change the exit
code of the export).

For more details, see:
https://www.mail-archive.com/search?l=mid&q=20160828233923.guhveaqxdxh356nm%40steph

7 years agohe/splash.lyx: fix compilation
Scott Kostyshak [Thu, 1 Sep 2016 21:32:16 +0000 (17:32 -0400)]
he/splash.lyx: fix compilation

We need to mark the LyX inset as English to avoid "missing glyph"
errors.

For more details, see:
https://www.mail-archive.com/search?l=mid&q=20160828233923.guhveaqxdxh356nm%40steph

7 years agoctests: update tests to reflect lualatex fixes
Scott Kostyshak [Thu, 1 Sep 2016 21:12:09 +0000 (17:12 -0400)]
ctests: update tests to reflect lualatex fixes

europeCV and modernCV examples can now be exported to PDF using
LuaTeX. For the specific output that was fixed, look at the diff and
see the description in suspiciousTests that was removed by this
commit. The output was checked manually and appears fine. These
tests are thus "uninverted".

Exporting those examples to DVI with LuaTeX does not exit with
error, but the output drops characters with accents. Thus, these
tests are now marked with the "wrong_output" label. I reported this
issue on the LuaTeX mailing list at [1], but since DVI export is not
given high priority, I don't expect much action.

Note that these changes reflect an updated TeX Live 2016
installation.

[1]
https://www.mail-archive.com/search?l=mid&q=20160831134006.4fewxothddqfeyw4%40steph

7 years agoRemove unused 'glue' parameter
Jean-Marc Lasgouttes [Tue, 30 Aug 2016 15:20:21 +0000 (17:20 +0200)]
Remove unused 'glue' parameter

It was probably useful at some time, but not now.

7 years agoRemove unused struct members
Jean-Marc Lasgouttes [Tue, 30 Aug 2016 15:06:13 +0000 (17:06 +0200)]
Remove unused struct members

Interestingly, cppcheck detected that they were not initialized (see
8a047a41), but not that they were unused.

7 years agoImprove status check of LFUN_BUFFER_ZOOM_{OUT,IN}
Scott Kostyshak [Tue, 19 Jul 2016 05:44:39 +0000 (01:44 -0400)]
Improve status check of LFUN_BUFFER_ZOOM_{OUT,IN}

buffer-zoom-out can actually zoom in (by giving a positive number as
the argument), so it should only be disabled at the minimum zoom
level if it is indeed zooming out.

Similarly, buffer-zoom-in can zoom out, so it should be disabled if
the user is at the minimum zoom and it is called to zoom out.

This commit amends 8884c404.

7 years agoCmake build: Add format V2.2 to export tests
Kornel Benko [Mon, 29 Aug 2016 16:14:37 +0000 (18:14 +0200)]
Cmake build: Add format V2.2 to export tests

7 years agoAmend b583fb26e89
Jean-Marc Lasgouttes [Mon, 29 Aug 2016 10:03:33 +0000 (12:03 +0200)]
Amend b583fb26e89

It failed in the case where a selection already existed (the anchor would be wrongly reset).

7 years agoAmend previous commit, 0e49231b
Scott Kostyshak [Mon, 29 Aug 2016 00:08:40 +0000 (20:08 -0400)]
Amend previous commit, 0e49231b

Thanks to Guillaume.

7 years agoConvert deprecated '\rm' to '\textrm' in examples
Scott Kostyshak [Sun, 28 Aug 2016 23:12:20 +0000 (19:12 -0400)]
Convert deprecated '\rm' to '\textrm' in examples

This change fixes the export of our FeynmanDiagrams.lyx example
files on the latest TeX Live 2016.

The IJMP(C|D).lyx examples compiled before the change but might as
well convert these instances of '\rm' also.

The changes were made with the help of the following command:

  find ./ -iregex .*lyx -exec sed -i 's/\\rm /\\textrm /g' {} \;

and the resulting diff was confirmed manually.

This commit is consistent with 3cecd4d3.

7 years agoAction.cpp: replace a reference with a shared_ptr
Guillaume Munch [Wed, 3 Aug 2016 21:06:20 +0000 (22:06 +0100)]
Action.cpp: replace a reference with a shared_ptr

Replace the member reference to FuncRequest in Action.cpp with a
shared_ptr. Compared to copying the FuncRequest, the shared_ptr has two
advantages:

* Recreating the menu each time creates a lot of new actions, so we avoid a lot
  of copies.

* FuncRequest can remain forward-declared in Action.h.

7 years agoChange "Format" into "Formats"
Guillaume Munch [Sun, 28 Aug 2016 15:51:15 +0000 (16:51 +0100)]
Change "Format" into "Formats"

The plural form seems more appropriate and the tag [[output]] is added for
disambiguation (e.g. for the French translation).

7 years agoproducesOutput() should not be redeclared as producesOutput(bool).
Richard Heck [Sun, 28 Aug 2016 04:02:43 +0000 (00:02 -0400)]
producesOutput() should not be redeclared as producesOutput(bool).

7 years agoTrivial clean-up
Guillaume Munch [Sun, 28 Aug 2016 01:34:34 +0000 (02:34 +0100)]
Trivial clean-up

7 years agoFix Unicode use in Format's prettyname
Guillaume Munch [Sun, 28 Aug 2016 00:27:37 +0000 (01:27 +0100)]
Fix Unicode use in Format's prettyname

The field prettyname can accept Unicode and therefore must be parsed into a
docstring.

Little simplification of the code on the way.

* For other fields, either a validator should be set to prevent non-ascii input
  in the preferences, or they should be transformed into docstring too.

7 years agoFix the compare_locale function by relying on Qt's (#9030)
Guillaume Munch [Sun, 28 Aug 2016 00:25:41 +0000 (01:25 +0100)]
Fix the compare_locale function by relying on Qt's (#9030)

7 years agoAdd more lib/symbols unicodemapping
Georg Baum [Sat, 27 Aug 2016 09:52:31 +0000 (11:52 +0200)]
Add more lib/symbols unicodemapping

There are still many math symbols in lib/symbols that lack a corresponding
entry in lib/unicodesymbols, although a clear mapping exists. This commit
adds some of them (not all yet). In the future we should probably move the
information from both files into one database.

7 years agoUpdate it.po
Enrico Forestieri [Fri, 26 Aug 2016 17:05:04 +0000 (19:05 +0200)]
Update it.po

7 years agoAdd a wrong_output ctest for mixing inTitle #10347
Scott Kostyshak [Fri, 26 Aug 2016 15:35:19 +0000 (11:35 -0400)]
Add a wrong_output ctest for mixing inTitle #10347

As of 0b1cf133 we now warn in the GUI of this issue, but there is a
discussion about whether we should change our LaTeX output and allow
for the workflow of mixing inTitle layouts. For more information,
see #10347.

7 years agoUpdate sk.po
Kornel Benko [Fri, 26 Aug 2016 10:54:44 +0000 (12:54 +0200)]
Update sk.po

7 years agode.po
Juergen Spitzmueller [Fri, 26 Aug 2016 10:49:41 +0000 (12:49 +0200)]
de.po

7 years agoImplement proper dialog titles in InsetParamsDialogs
Juergen Spitzmueller [Fri, 26 Aug 2016 09:35:12 +0000 (11:35 +0200)]
Implement proper dialog titles in InsetParamsDialogs

Fixes: #10329
7 years agoFix \@ifundefined check for covexample(s)
Juergen Spitzmueller [Fri, 26 Aug 2016 08:45:15 +0000 (10:45 +0200)]
Fix \@ifundefined check for covexample(s)

Fixes: #10340
7 years agoDo not set layout for no-op paragraph break
Jean-Marc Lasgouttes [Wed, 24 Aug 2016 13:29:17 +0000 (15:29 +0200)]
Do not set layout for no-op paragraph break

When breaking paragraph in an empty top-level paragraph, nothing
happens on screen but yet there is an undo step because the layout is
reset to what it already was.

Avoid this case.

Fixes bug #10089.

7 years agoMove correctly the end of proof marker when row is large
Jean-Marc Lasgouttes [Tue, 23 Aug 2016 15:43:38 +0000 (17:43 +0200)]
Move correctly the end of proof marker when row is large

This was a regression from 2.1.x in LtR mode, and it never worked correctly in RtL mode.

Fixes bug #10344.

7 years agoReset anchor before selecting with S-button1
Jean-Marc Lasgouttes [Tue, 23 Aug 2016 10:22:35 +0000 (12:22 +0200)]
Reset anchor before selecting with S-button1

7 years agoLet M-x give focus to minibuffer when it is already open
Jean-Marc Lasgouttes [Fri, 19 Aug 2016 12:53:31 +0000 (14:53 +0200)]
Let M-x give focus to minibuffer when it is already open

7 years agoCorrect library name of installed hunspell framework (it does not match the patch...
Stephan Witt [Mon, 22 Aug 2016 07:02:50 +0000 (09:02 +0200)]
Correct library name of installed hunspell framework (it does not match the patch version number)

7 years agoRemove unused variable warning and remove preprocessor switch.
Guillaume Munch [Sat, 20 Aug 2016 15:05:41 +0000 (16:05 +0100)]
Remove unused variable warning and remove preprocessor switch.

7 years agoQuote filenames used for forward-search with SumatraPDF
Enrico Forestieri [Sun, 21 Aug 2016 21:33:01 +0000 (23:33 +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, otherwise they are stripped out.

See #10342.

7 years agoFix regression of 88603655
Georg Baum [Sun, 21 Aug 2016 18:34:40 +0000 (20:34 +0200)]
Fix regression of 88603655

The XHTML entries were added in the wrong field, if they are given we need
extra xhtml requires. The order is inconsistent, there are discussions on the
list about that but for now I'll use the existing order to fix the export tests.

The format of the lib/symbols file does not support "" for empty strings.
One would have to use x for fields that are not set (this is a hack), but
actually we know how to fill the extra field.

7 years agoAdd check for existance of Qt translations directory
Stephan Witt [Sun, 21 Aug 2016 15:50:48 +0000 (17:50 +0200)]
Add check for existance of Qt translations directory

7 years agoUse only one file for dummy implementations
Enrico Forestieri [Fri, 19 Aug 2016 22:41:04 +0000 (00:41 +0200)]
Use only one file for dummy implementations

7 years agoUpdate sk.po
Kornel Benko [Fri, 19 Aug 2016 20:54:17 +0000 (22:54 +0200)]
Update sk.po

7 years agoAdd missing entries in syntax.default
Jean-Marc Lasgouttes [Fri, 19 Aug 2016 14:02:36 +0000 (16:02 +0200)]
Add missing entries in syntax.default

These are: \cellcolor, columncolor and rowcolor

Fix \rotatebox

Remove ",," in argument of color command, this is actually not used.

7 years agoRemove horizontal spacing around previews
Jean-Marc Lasgouttes [Thu, 21 Jul 2016 18:16:27 +0000 (20:16 +0200)]
Remove horizontal spacing around previews

This concerns the preview version of InsetPreview and InsetIPA.

Fixes bug #10304.

7 years agoSimplify menus when there is only one caption type
Jean-Marc Lasgouttes [Fri, 19 Aug 2016 12:01:00 +0000 (14:01 +0200)]
Simplify menus when there is only one caption type

This removes the submenu indirection in Insert and the type changer in
contextual menu. Interestingly, the code was there, but it did not
work at all.

7 years agoCmake build: Add verbose variable to some dummy_functions.cpp
Kornel Benko [Fri, 19 Aug 2016 09:15:10 +0000 (11:15 +0200)]
Cmake build: Add verbose variable to some dummy_functions.cpp

7 years agoWarn in GUI when mixing Title and InTitle layouts
Scott Kostyshak [Wed, 17 Aug 2016 02:09:57 +0000 (22:09 -0400)]
Warn in GUI when mixing Title and InTitle layouts

Since we process layouts sequentially, we export LaTeX code for the
title once we arrive to a layout that has InTitle false. If the
document then later has a layout with InTitle true, we do not
(currently) go back to add it to the title and just output it
in-place. We previously warned with LYXERR0, but since this can
cause missing or unexpected output we now warn in the GUI.

For more information, see the following lyx-devel thread:
https://www.mail-archive.com/search?l=mid&q=a65ae226-d3bd-8fc5-a93b-7bb23f1cda82%40lyx.org

7 years agoFix exit code from runCommand on Windows
Enrico Forestieri [Wed, 17 Aug 2016 20:58:13 +0000 (22:58 +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 handle.

Fixes #10327

7 years agoAdd verbose option
Enrico Forestieri [Wed, 17 Aug 2016 20:32:14 +0000 (22:32 +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.

7 years agoUse proper QPalette::NoRole enum value instead of our own
Jean-Marc Lasgouttes [Wed, 17 Aug 2016 10:10:25 +0000 (12:10 +0200)]
Use proper QPalette::NoRole enum value instead of our own

7 years agoA more radical approach to inset background painting
Jean-Marc Lasgouttes [Wed, 17 Aug 2016 09:21:38 +0000 (11:21 +0200)]
A more radical approach to inset background painting

Now by default all insets paint their own background when needed. This
means that 63cf3297 and part of 9940acc5 can be reverted.

To avoid extra painting, background drawing is disabled for
InsetCommand and InsetCollapsable. These insets draw background as
part of their normal drawing activity.

This will avoid drawing artifacts with InsetNewpage, InsetVSpace and
probably some others.

7 years agoA PainterInfo variable should be named `pi'.
Jean-Marc Lasgouttes [Tue, 16 Aug 2016 12:29:58 +0000 (14:29 +0200)]
A PainterInfo variable should be named `pi'.

7 years agoAssertions when doing Export As... (#10321)
Guillaume Munch [Thu, 4 Aug 2016 16:00:21 +0000 (17:00 +0100)]
Assertions when doing Export As... (#10321)

Fix assertion with gcc 6: The comparison function must be a strict weak
orderings and not give x < x.

Fix assertion when a custom exportable document format is given a non-ASCII
name. Use qt_ to be consistent with the rest of the code.

Use Qt's locale-aware comparison for appropriate sorting.

7 years agoAdapt code to comment
Enrico Forestieri [Mon, 15 Aug 2016 01:22:01 +0000 (03:22 +0200)]
Adapt code to comment

7 years agoCorrect comment
Enrico Forestieri [Sat, 13 Aug 2016 15:43:03 +0000 (17:43 +0200)]
Correct comment

According to C++11 rules, static locals are thread safe for
the first-time initialization.

See also:
http://stackoverflow.com/questions/12302057/c11-safe-double-checked-locking-for-lazy-initialization-possible

7 years agoCommands to select the posix variant for the mingw cross-compilation script
Guillaume Munch [Sun, 7 Aug 2016 12:13:08 +0000 (13:13 +0100)]
Commands to select the posix variant for the mingw cross-compilation script

The win32 thread model of gcc does not support the <thread> and <mutex> headers
yet.

7 years agoFoils.lyx: fix output of author
Scott Kostyshak [Tue, 9 Aug 2016 16:53:56 +0000 (12:53 -0400)]
Foils.lyx: fix output of author

By moving date and author above the standard layouts, author is now
output in the PDF and the terminal error from LyX about mixing an
InTitle layout with non-InTitle layouts is gone.

7 years agoLiterate.lyx: move date with other InTitle layouts
Scott Kostyshak [Tue, 9 Aug 2016 03:43:15 +0000 (23:43 -0400)]
Literate.lyx: move date with other InTitle layouts

This leads to the date being output in the PDF and gets rid of the
terminal error from LyX about mixing an InTitle layout with
non-InTitle layouts.

7 years agoImprove a layout LYXERR0 message
Scott Kostyshak [Tue, 9 Aug 2016 03:41:59 +0000 (23:41 -0400)]
Improve a layout LYXERR0 message

The name of the layout is now included in an error message about
layouts. This will help with finding the root issue of several
documents we have.

7 years agoUpdate tex2lyx tests.
Richard Heck [Mon, 8 Aug 2016 20:47:06 +0000 (16:47 -0400)]
Update tex2lyx tests.

7 years agoCmake build: Ignore also files with extension .patch --
Kornel Benko [Mon, 8 Aug 2016 19:23:20 +0000 (21:23 +0200)]
Cmake build: Ignore also files with extension .patch --

These files should not be installed.

7 years agoFix dviluatex exports of Sweave/knitr/Lily/noweb
Scott Kostyshak [Sun, 7 Aug 2016 17:31:41 +0000 (13:31 -0400)]
Fix dviluatex exports of Sweave/knitr/Lily/noweb

After the fix at fe06ef0e, several converter chains to DVI
(dviluatex) were broken because they had previously gone through an
incorrect link in the chain.

This commit adds converters for the above formats to dviluatex and
fixes the following ctests:

  export/examples/Literate_dvi3_texF
  export/examples/Literate_dvi3_systemF
  export/examples/knitr_dvi3_texF
  export/examples/knitr_dvi3_systemF
  export/examples/lilypond_dvi3_texF
  export/examples/lilypond_dvi3_systemF
  export/examples/noweb2lyx_dvi3_texF
  export/examples/noweb2lyx_dvi3_systemF
  export/examples/sweave_dvi3_texF
  export/examples/sweave_dvi3_systemF
  export/templates/RJournal_dvi3_texF

7 years agoCmake build: Amend 41e409f8: Use std::call_once only if it is actually available
Kornel Benko [Sun, 7 Aug 2016 09:32:53 +0000 (11:32 +0200)]
Cmake build: Amend 41e409f8: Use std::call_once only if it is actually available

7 years agoUse std::call_once only if it is actually available
Enrico Forestieri [Sun, 7 Aug 2016 02:58:41 +0000 (04:58 +0200)]
Use std::call_once only if it is actually available

7 years agoRemove debugging code.
Richard Heck [Sat, 6 Aug 2016 01:39:58 +0000 (21:39 -0400)]
Remove debugging code.

7 years agoFix XHTML export of German Additional Features manual.
Richard Heck [Fri, 5 Aug 2016 02:43:17 +0000 (22:43 -0400)]
Fix XHTML export of German Additional Features manual.

There was an oddity in the manual that exposed a problem with the
test for the "special case" of an inset all by itself in a pargraph.
If a font change is applied to that inset, we still need to open the
paragraph.

7 years agoInsetNote is not output for XHTML.
Richard Heck [Fri, 5 Aug 2016 02:17:09 +0000 (22:17 -0400)]
InsetNote is not output for XHTML.

Also fixes whitespace.

7 years agoDebugging code.
Richard Heck [Fri, 5 Aug 2016 02:00:24 +0000 (22:00 -0400)]
Debugging code.

7 years agoWe don't need to crash here, but can try to continue in release
Richard Heck [Fri, 5 Aug 2016 01:57:13 +0000 (21:57 -0400)]
We don't need to crash here, but can try to continue in release
mode.

7 years agoRemove stray "typewriter" font.
Richard Heck [Fri, 5 Aug 2016 01:40:37 +0000 (21:40 -0400)]
Remove stray "typewriter" font.

7 years agoSpecial characters should be output to the TOC.
Richard Heck [Fri, 5 Aug 2016 01:09:32 +0000 (21:09 -0400)]
Special characters should be output to the TOC.

7 years agoFix bug #10320.
Richard Heck [Thu, 4 Aug 2016 21:45:10 +0000 (17:45 -0400)]
Fix bug #10320.

Layout::write needs to allow for the possility that the name of the
style may contain a space. It seems sufficient just always to quote it.

7 years agoLet InsetSpecialChar draw its background when necessary
Jean-Marc Lasgouttes [Thu, 4 Aug 2016 21:20:18 +0000 (23:20 +0200)]
Let InsetSpecialChar draw its background when necessary

This is the same fix as in 9940acc5 for auote inset and math macro template.

7 years agoPartially revert "Replace static with thread_local when used for caching"
Guillaume Munch [Thu, 4 Aug 2016 12:30:47 +0000 (13:30 +0100)]
Partially revert "Replace static with thread_local when used for caching"

As noticed by Stephan, clang on Mac is nowhere near to support thread_local for
some reason:
http://stackoverflow.com/questions/28094794/why-does-apple-clang-disallow-c11-thread-local-when-official-clang-supports

It does not look realistic to me to provide a configure-based alternative. The
solution is to not use thread_local until it is reasonably supported on
Mac. According to sources, this means requiring Xcode >= 8.

This reverts commit 82d4f1a446260333ef1590f3622196e7c76e414d partially.

7 years agoWhitespace
Juergen Spitzmueller [Thu, 4 Aug 2016 10:49:33 +0000 (12:49 +0200)]
Whitespace

7 years agoDocument file format change
Juergen Spitzmueller [Thu, 4 Aug 2016 10:41:11 +0000 (12:41 +0200)]
Document file format change

7 years agoInclude all [scr]article styles in beamer article layouts.
Juergen Spitzmueller [Thu, 4 Aug 2016 09:42:06 +0000 (11:42 +0200)]
Include all [scr]article styles in beamer article layouts.

File format change. On format reversion, we need to put some extra code
in the local layout that emulates the 2.3 behavior.
Simply Input'ing the respective layouts is unfortunately not enough,
due to the insertion order.

See #9977

7 years agoCorrect default font of beamer article layouts
Juergen Spitzmueller [Thu, 4 Aug 2016 08:27:10 +0000 (10:27 +0200)]
Correct default font of beamer article layouts

Fixes: #9977
7 years agoCorrect backends() allocation with japanese encoding
Juergen Spitzmueller [Thu, 4 Aug 2016 08:01:06 +0000 (10:01 +0200)]
Correct backends() allocation with japanese encoding

Fixes error introduced by ad9887da9c18.

7 years agoActivate LyX window after reverse search (#10196)
Scott Kostyshak [Thu, 4 Aug 2016 05:25:36 +0000 (01:25 -0400)]
Activate LyX window after reverse search (#10196)

"lyxclient -g" now calls the just implemented lyx-activate (see
previous commit) after server-goto-file-row. This allows the PDF
viewer to switch to LyX after executing a reverse search.

7 years agoNew LFUN lyx-activate to focus LyX window
Scott Kostyshak [Thu, 4 Aug 2016 05:20:14 +0000 (01:20 -0400)]
New LFUN lyx-activate to focus LyX window

On Linux and Mac OS, this action brings the LyX window into focus.
Such behavior is not allowed by Windows OS so instead the color of
the taskbar entry is changed to indicate that the window has changed
in some way.

The action is hidden in the shortcuts menu because it would make
sense to assign a shortcut to it. The only way to execute shortcut
would be if the LyX window is already activated.

lyx-activate will be used (see next commit) to allow the PDF viewer
to switch to LyX after executing a reverse search.

7 years agoRELEASE-NOTES: add the new LFUN branch-invert
Scott Kostyshak [Thu, 4 Aug 2016 05:44:04 +0000 (01:44 -0400)]
RELEASE-NOTES: add the new LFUN branch-invert

7 years agoFix embarrassing logic mistake
Guillaume Munch [Wed, 3 Aug 2016 21:11:00 +0000 (22:11 +0100)]
Fix embarrassing logic mistake

Thanks Richard for pointing at it.

7 years agode.po: fix meta data
Juergen Spitzmueller [Wed, 3 Aug 2016 12:57:57 +0000 (14:57 +0200)]
de.po: fix meta data

7 years agode.po: minor fixes
Juergen Spitzmueller [Wed, 3 Aug 2016 12:53:09 +0000 (14:53 +0200)]
de.po: minor fixes

7 years agoCmake build: Specify the correct value of 'PACKAGE' define in config.h
Kornel Benko [Wed, 3 Aug 2016 10:09:04 +0000 (12:09 +0200)]
Cmake build: Specify the correct value of 'PACKAGE' define in config.h

This was wrong in case where no program suffix was allowed
Spotted by Scott.

7 years agoFix problem noticed by Scott.
Richard Heck [Tue, 2 Aug 2016 22:54:31 +0000 (18:54 -0400)]
Fix problem noticed by Scott.

7 years agoNo need to display contents of the branch when it is open.
Richard Heck [Tue, 2 Aug 2016 20:33:18 +0000 (16:33 -0400)]
No need to display contents of the branch when it is open.

Thanks to Vincent for noticing.

7 years agode.po: update
Juergen Spitzmueller [Tue, 2 Aug 2016 11:20:50 +0000 (13:20 +0200)]
de.po: update

7 years agoReplace static with thread_local when used for caching
Guillaume Munch [Sat, 30 Jul 2016 23:42:51 +0000 (00:42 +0100)]
Replace static with thread_local when used for caching

thread_local is a per-thread static variable, so it is thread-safe and can be
used for caching purpose.

Remove the cache for parameter lists as discussed on the list
http://mid.gmane.org/6e871431-0e87-ed2a-3e31-b63356c2391e@lyx.org.

(requires gcc >= 4.8)

7 years agoFix aliasing logic for polylines
Guillaume Munch [Mon, 1 Aug 2016 19:50:46 +0000 (20:50 +0100)]
Fix aliasing logic for polylines

7 years agoEnable to specify the target format for converting the local layout
Guillaume Munch [Sat, 23 Jul 2016 14:29:40 +0000 (15:29 +0100)]
Enable to specify the target format for converting the local layout

* New constant LYXFILE_LAYOUT_FORMAT in src/TextClass.cpp. This determines the
  layout format corresponding to the current lyx file format.

* The Local Layout pane is changed so that the "Convert" button does not convert
  to the internal layout format but to the current lyx file format, to make sure
  that the file does not become unreadable with a specified earlier version of
  LyX.

* If LYXFILE_LAYOUT_FORMAT == LAYOUT_FORMAT then LyX behaves as before. This is
  the value defined in master.

7 years agoAdd an option to layout2layout to convert to a particular format
Guillaume Munch [Fri, 22 Jul 2016 19:52:29 +0000 (20:52 +0100)]
Add an option to layout2layout to convert to a particular format

7 years agoPerf comments: getFormatFromFile slows LyX startup considerably
Guillaume Munch [Thu, 28 Jul 2016 15:52:14 +0000 (16:52 +0100)]
Perf comments: getFormatFromFile slows LyX startup considerably

It is currently called on hundreds of files: settings, layouts, icons, cached
graphics files (incl. graphics from files that are not opened on startup).

According to callgrind, fixing the FIXME comments could speed up startup by more
than 30%.

7 years agoUse call_once to ensure something is only called once
Guillaume Munch [Sat, 30 Jul 2016 19:46:29 +0000 (20:46 +0100)]
Use call_once to ensure something is only called once

This is thread-safe.

7 years agoMake static counters atomic
Guillaume Munch [Sun, 10 Jul 2016 15:50:19 +0000 (16:50 +0100)]
Make static counters atomic

This ensures thread-safety

(requires: gcc >= 4.6, MSVC >= 2015)

7 years agoC++11 supports thread-safe initialization of statics
Guillaume Munch [Sat, 30 Jul 2016 19:28:44 +0000 (20:28 +0100)]
C++11 supports thread-safe initialization of statics

A static local variable is guaranteed to be initialized only once, and in time.

Lambda expressions can be used to perform complex initialization of those static
variables on the spot.

(starting from: gcc >= 4.8, msvc >= 2015)

7 years agoFix "scroll here" feature of scrollbar (#10311)
Guillaume Munch [Fri, 29 Jul 2016 20:27:13 +0000 (21:27 +0100)]
Fix "scroll here" feature of scrollbar (#10311)

Prevent setRange() from causing a recursive call to scrollTo(). Reduces three
calls of scrollTo() to one call for all scrolling functions of the scroll bar
(e.g. clicking on the arrow, dragging, or clicking somewhere on the scrollbar).

7 years agoBasic implementation of QSignalBlocker for qt4
Guillaume Munch [Fri, 29 Jul 2016 20:18:43 +0000 (21:18 +0100)]
Basic implementation of QSignalBlocker for qt4

7 years agoFix typo in new dia converter.
Richard Heck [Sun, 31 Jul 2016 16:46:12 +0000 (12:46 -0400)]
Fix typo in new dia converter.

7 years agoCustomization.lyx: port recent changes to master
Uwe Stöhr [Sun, 31 Jul 2016 08:43:00 +0000 (10:43 +0200)]
Customization.lyx: port recent changes to master

7 years agoCustomization.lyx: accept Richards changes
Uwe Stöhr [Sun, 31 Jul 2016 08:37:28 +0000 (10:37 +0200)]
Customization.lyx: accept Richards changes

Richard, please do everything that does not depend on LyX 2.3 this in the 2.2.x branch. Also don't upgrade the fileformat if not necessary.

7 years agoFix output of floats, etc, inside environments.
Richard Heck [Sun, 31 Jul 2016 07:18:32 +0000 (03:18 -0400)]
Fix output of floats, etc, inside environments.

Fixes bug #9094.