]> git.lyx.org Git - lyx.git/log
lyx.git
6 years agoAdditional.lyx: minor fixes.
Juergen Spitzmueller [Wed, 26 Jul 2017 14:25:43 +0000 (16:25 +0200)]
Additional.lyx: minor fixes.

6 years agode/UserGuide: adapt and translate the remaining bits of the 2.3 changes
Juergen Spitzmueller [Wed, 26 Jul 2017 12:23:02 +0000 (14:23 +0200)]
de/UserGuide: adapt and translate the remaining bits of the 2.3 changes

6 years agode/Additional.lyx: translate bibliography-related changes
Juergen Spitzmueller [Wed, 26 Jul 2017 11:34:33 +0000 (13:34 +0200)]
de/Additional.lyx: translate bibliography-related changes

6 years agoAdditional.lyx: fix typo
Juergen Spitzmueller [Wed, 26 Jul 2017 11:34:20 +0000 (13:34 +0200)]
Additional.lyx: fix typo

6 years agoCmake export tests: Ignore missing glyphs also for doc/de/UserGuide
Kornel Benko [Wed, 26 Jul 2017 10:39:46 +0000 (12:39 +0200)]
Cmake export tests: Ignore missing glyphs also for doc/de/UserGuide

6 years agode/UserGuide: adaptation and translation of the bibliography-related changes.
Juergen Spitzmueller [Wed, 26 Jul 2017 07:43:34 +0000 (09:43 +0200)]
de/UserGuide: adaptation and translation of the bibliography-related changes.

6 years agoUserGuide: minor corrections in the Biblatex passages.
Juergen Spitzmueller [Wed, 26 Jul 2017 07:43:08 +0000 (09:43 +0200)]
UserGuide: minor corrections in the Biblatex passages.

6 years agoEmbeddedObjects.lyx: accept info for minted support
Uwe Stöhr [Tue, 25 Jul 2017 23:11:08 +0000 (01:11 +0200)]
EmbeddedObjects.lyx: accept info for minted support

- see my mail to the devel list for open issues with this
- transfer this info to the other languages

6 years agocorrect a typo in filename
Uwe Stöhr [Tue, 25 Jul 2017 23:09:39 +0000 (01:09 +0200)]
correct a typo in filename

6 years agode/UserGuide.lyx: adapt and translate refstyle updates.
Juergen Spitzmueller [Tue, 25 Jul 2017 16:24:22 +0000 (18:24 +0200)]
de/UserGuide.lyx: adapt and translate refstyle updates.

6 years agode/UserGuide: translate the quotation mark section.
Juergen Spitzmueller [Tue, 25 Jul 2017 14:22:28 +0000 (16:22 +0200)]
de/UserGuide: translate the quotation mark section.

6 years agoCorrect an info-inset
Juergen Spitzmueller [Tue, 25 Jul 2017 14:17:31 +0000 (16:17 +0200)]
Correct an info-inset

6 years agoDocument devel-mode-toggle
Jean-Marc Lasgouttes [Tue, 25 Jul 2017 13:19:17 +0000 (15:19 +0200)]
Document devel-mode-toggle

6 years agode/Additional.lyx: Translation of the LyXServer section.
Juergen Spitzmueller [Tue, 25 Jul 2017 13:10:03 +0000 (15:10 +0200)]
de/Additional.lyx: Translation of the LyXServer section.

6 years agoAdditional.lyx: Some minor corrections wrt LyXServer I came across
Juergen Spitzmueller [Tue, 25 Jul 2017 13:09:28 +0000 (15:09 +0200)]
Additional.lyx: Some minor corrections wrt LyXServer I came across

while translating

6 years agoCheck whether a class is known before loading it
Jean-Marc Lasgouttes [Tue, 25 Jul 2017 09:51:49 +0000 (11:51 +0200)]
Check whether a class is known before loading it

Fixes bug #10719.

6 years agolayouttranslation: update some finish items.
Pavel Sanda [Tue, 25 Jul 2017 08:26:53 +0000 (10:26 +0200)]
layouttranslation: update some finish items.

See the discussion about updates at
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg201157.html

6 years agoCopy the recent Additiona.lyx changes wrt forward/reverse search to the localized...
Juergen Spitzmueller [Tue, 25 Jul 2017 06:54:04 +0000 (08:54 +0200)]
Copy the recent Additiona.lyx changes wrt forward/reverse search to the localized docs and accept changes in English doc.

6 years agoFix scrollbar not appearing in new documents unless reloaded (#10729)
Guillaume MM [Mon, 24 Jul 2017 22:15:20 +0000 (00:15 +0200)]
Fix scrollbar not appearing in new documents unless reloaded (#10729)

QSignalBlocker in updateScrollbar is too strong and prevents the scroll bar from
communicating with its scroll area. The only solution to block signals between
specifically between two objects is to disconnect. This makes sense in this
case, by making updateScrollbar responsible for managing the connection in the
first place.

6 years agoWin installer: prepare for a new 2.3 release (hopefully a beta)
Uwe Stöhr [Mon, 24 Jul 2017 22:31:45 +0000 (00:31 +0200)]
Win installer: prepare for a new 2.3 release (hopefully a beta)

6 years agolayouttranslations.review: "fr" checked by J-P
Scott Kostyshak [Mon, 24 Jul 2017 21:59:35 +0000 (17:59 -0400)]
layouttranslations.review: "fr" checked by J-P

Jean-Pierre checked it at:

    https://www.mail-archive.com/search?l=mid&q=b555a4e2-bc58-4423-dff4-ccfd6511cef7%40free.fr

6 years agoMake "devel mode" configurable at run time
Jean-Marc Lasgouttes [Sun, 23 Jul 2017 22:21:43 +0000 (00:21 +0200)]
Make "devel mode" configurable at run time

Traditionally LyX behaves differently when the directive DEVEL_VERSION
is defined at compile time. This covers
* more detailed description of current position in status bar
* the help files are open in read/write mode
* more detailed debug output in the View Source panel

This patch introduces the new function devel-mode-toggle that allows
to use devel mode in stable releases, and vice versa.

The information is saved in the session file. The default is to
disable devel mode.

Remove all traces of DEVEL_VERSION in autoconf and cmake

6 years ago Amend previous workaround: replace LyXbar by textemdash
jpc [Mon, 24 Jul 2017 16:31:05 +0000 (18:31 +0200)]
    Amend previous workaround: replace LyXbar by textemdash
                                   to be able to compile with xetex

6 years agoAmend bbb631873 once more
Juergen Spitzmueller [Mon, 24 Jul 2017 11:43:18 +0000 (13:43 +0200)]
Amend bbb631873 once more

6 years agoAmend bbb631873
Juergen Spitzmueller [Mon, 24 Jul 2017 09:20:31 +0000 (11:20 +0200)]
Amend bbb631873

6 years agoAccount for spaces in paths in the windows reverse search proposals
Juergen Spitzmueller [Mon, 24 Jul 2017 09:14:00 +0000 (11:14 +0200)]
Account for spaces in paths in the windows reverse search proposals

Fixes: #10557
6 years ago Remove em dashes triggering 'Missing glyphs' with xelatex
jpc [Mon, 24 Jul 2017 08:02:42 +0000 (10:02 +0200)]
    Remove em dashes triggering 'Missing glyphs' with xelatex

6 years ago{Over,under}full [hv]box warning is a warning.
Juergen Spitzmueller [Mon, 24 Jul 2017 07:09:48 +0000 (09:09 +0200)]
{Over,under}full [hv]box warning is a warning.

Since this is something one should be aware of, make it more prominent
in the Log dialog.

6 years agoDo not error on missing ZWNJ (ligature break) characters.
Juergen Spitzmueller [Sun, 23 Jul 2017 16:41:06 +0000 (18:41 +0200)]
Do not error on missing ZWNJ (ligature break) characters.

Since TeXLive 2016, "fontspec" maps the ligature break command
\textcompwordmark to the ZWNJ character (U+200C).
This character is missing in many fonts (including the default: Latin
Modern) which leads to "Missing character" warnings in the XeTeX/LuaTeX
log file if a document using non-TeX fonts contains a ligature break.

LyX reports missing characters as error since fixing #9610.
In case of "invisible" characters, there is no data loss, in case of the
ZWNJ the functionality is kept: ligatures are prevented also if the ZWNJ
is missing in a font.

Therefore, a missing ZWNJ is now treated similar to missing characters
in "nullfont" (see [63f41711/lyxgit], bug #10394) and does not trigger
an error.

Fixes: #10727
6 years agoProperly import \newtheorem*
Juergen Spitzmueller [Sun, 23 Jul 2017 11:19:59 +0000 (13:19 +0200)]
Properly import \newtheorem*

Fixes: #10622
6 years agoBulk cleanup/fix incorrect annotation at the end of namespaces.
Christian Ridderström [Sun, 23 Jul 2017 11:11:54 +0000 (13:11 +0200)]
Bulk cleanup/fix incorrect annotation at the end of namespaces.

This commit does a bulk fix of incorrect annotations (comments) at the
end of namespaces.

The commit was generated by initially running clang-format, and then
from the diff of the result extracting the hunks corresponding to
fixes of namespace comments. The changes being applied and all the
results have been manually reviewed. The source code successfully
builds on macOS.

Further details on the steps below, in case they're of interest to
someone else in the future.

1. Checkout a fresh and up to date version of src/

    git pull && git checkout -- src && git status src

2. Ensure there's a suitable .clang-format in place, i.e. with options
   to fix the comment at the end of namespaces, including:

    FixNamespaceComments:                           true
    SpacesBeforeTrailingComments:                   1

and that clang-format is >= 5.0.0, by doing e.g.:

    clang-format -dump-config | grep Comments:
    clang-format --version

3. Apply clang-format to the source:

    clang-format -i $(find src -name "*.cpp" -or -name "*.h")

4. Create and filter out hunks related to fixing the namespace

    git diff -U0 src > tmp.patch
    grepdiff '^} // namespace' --output-matching=hunk tmp.patch  > fix_namespace.patch

5. Filter out hunks corresponding to simple fixes into to a separate patch:

    pcregrep -M -e '^diff[^\n]+\nindex[^\n]+\n--- [^\n]+\n\+\+\+ [^\n]+\n'  \
        -e '^@@ -[0-9]+ \+[0-9]+ @@[^\n]*\n-\}[^\n]*\n\+\}[^\n]*\n'         \
        fix_namespace.patch > fix_namespace_simple.patch

6. Manually review the simple patch and then apply it, after first
   restoring the source.

    git checkout -- src
    patch -p1 < fix_namespace_simple.path

7. Manually review the (simple) changes and then stage the changes

    git diff src
    git add src

8. Again apply clang-format and filter out hunks related to any
   remaining fixes to the namespace, this time filter with more
   context. There will be fewer hunks as all the simple cases have
   already been handled:

    clang-format -i $(find src -name "*.cpp" -or -name "*.h")
    git diff src > tmp.patch
    grepdiff '^} // namespace' --output-matching=hunk tmp.patch  > fix_namespace2.patch

9. Manually review/edit the resulting patch file to remove hunks for files
   which need to be dealt with manually, noting the file names and
   line numbers. Then restore files to as before applying clang-format
   and apply the patch:

    git checkout src
    patch -p1 < fix_namespace2.patch

10. Manually fix the files noted in the previous step. Stage files,
    review changes and commit.

6 years agotypo in comment
Juergen Spitzmueller [Sun, 23 Jul 2017 10:11:03 +0000 (12:11 +0200)]
typo in comment

6 years agoSome comments wrt log file encoding (#10728)
Juergen Spitzmueller [Sun, 23 Jul 2017 10:06:58 +0000 (12:06 +0200)]
Some comments wrt log file encoding (#10728)

6 years agoUse appropriate conv. method
Juergen Spitzmueller [Sun, 23 Jul 2017 07:37:11 +0000 (09:37 +0200)]
Use appropriate conv. method

These are plain ASCII strings, no need for local8bit conversion.

6 years agoSelect Latin Modern fonts for beamer lyx-files
Kornel Benko [Fri, 21 Jul 2017 22:22:00 +0000 (00:22 +0200)]
Select Latin Modern fonts for beamer lyx-files

On TL17, the original default fonts used to work only with help of fix-cm package.
Only the Japanese bemer files are unchanged, because the output was only a mix
of Latin letters and thus not readable. Probably missing font on my side.

6 years agopt_BR.po: updates for 2.3 from Georger
Uwe Stöhr [Fri, 21 Jul 2017 00:28:33 +0000 (02:28 +0200)]
pt_BR.po: updates for 2.3 from Georger

6 years agoMake InsetInfo active agin (aka the vengeance of the neverending saga)
Jean-Marc Lasgouttes [Thu, 20 Jul 2017 21:56:45 +0000 (23:56 +0200)]
Make InsetInfo active agin (aka the vengeance of the neverending saga)

This is a fixup to fc7fb6a5642bf. The fix in there seems perfectly
correct (up to now), but for some reason, I could not refrain from
making InsetInfo not active. "What could possibly go wrong?", I heard
myself think.

Now I know: this causes an assertion error in InsetText::updateBuffer
because DocIterator::forwardPos does not enter the inset anymore.

6 years agoTry to end the neverending fixIfBroken saga
Jean-Marc Lasgouttes [Thu, 20 Jul 2017 09:18:20 +0000 (11:18 +0200)]
Try to end the neverending fixIfBroken saga

This is a fixup to the  series of commits 522516d9d0acc3e513c3c148.

Actually the right thing to consider in all situations is isActive(),
which really means `can a cursor be in there?'.

Improve the description of isActive() and editable() in Inset.h.

Set isActive() to false for InsetInfo, since no cursor should ever go there.

Again part of #10667.

6 years agoChanges approved by Juergen.
Pavel Sanda [Wed, 19 Jul 2017 12:38:46 +0000 (14:38 +0200)]
Changes approved by Juergen.

6 years agode and de-alt reviewed.
Juergen Spitzmueller [Wed, 19 Jul 2017 12:30:51 +0000 (14:30 +0200)]
de and de-alt reviewed.

6 years agode.po: review of 'list of listings'
Juergen Spitzmueller [Wed, 19 Jul 2017 12:27:37 +0000 (14:27 +0200)]
de.po: review of 'list of listings'

6 years agolayouttranslations.review: "it" was obviously checked by Enrico (coming from minted)
Pavel Sanda [Wed, 19 Jul 2017 11:53:57 +0000 (13:53 +0200)]
layouttranslations.review: "it" was obviously checked by Enrico (coming from minted)

6 years agoWe have new translation which slipped through the cracks.
Pavel Sanda [Wed, 19 Jul 2017 11:36:06 +0000 (13:36 +0200)]
We have new translation which slipped through the cracks.

6 years agolayouttranslations: new untracked movements for "List of listings".
Pavel Sanda [Wed, 19 Jul 2017 11:27:31 +0000 (13:27 +0200)]
layouttranslations: new untracked movements for "List of listings".

Likely follow-up from ab47e48dcc.

6 years agoUpdate some translation by Jari-Matti Mäkelä
Kornel Benko [Wed, 19 Jul 2017 10:39:10 +0000 (12:39 +0200)]
Update some translation by Jari-Matti Mäkelä

6 years agoTypo in lib/layouttranslations makefile machinery.
Pavel Sanda [Wed, 19 Jul 2017 10:38:13 +0000 (12:38 +0200)]
Typo in lib/layouttranslations makefile machinery.

6 years agoUpdate fi.po
Kornel Benko [Wed, 19 Jul 2017 10:02:01 +0000 (12:02 +0200)]
Update fi.po

Translations from Jari-Matti Mäkelä <jmjmak@utu.fi>

6 years agoSome minor polishment and comments.
Juergen Spitzmueller [Wed, 19 Jul 2017 08:22:13 +0000 (10:22 +0200)]
Some minor polishment and comments.

6 years agoScripts for connecting LyX with evince for backward/forward search
Juergen Spitzmueller [Tue, 18 Jul 2017 17:08:44 +0000 (19:08 +0200)]
Scripts for connecting LyX with evince for backward/forward search

The scripts have been initially developed by Benjamin Kellermann (2011)
as a derivation of gedit-synctex-plugin by José Aliste
(https://github.com/jaliste/gedit-synctex-plugin, 2010) and published on
https://ubuntuforums.org/showthread.php?t=1716268.

The work here is based on a further derivation of this work for Sublime
Text LaTeX Tools
(https://github.com/SublimeText/LaTeXTools/tree/master/evince).

Adaptations for the use with LyX as well as the initial translation of
the evince_sync bash script to python have been done by myself.

The python code (particularly evince_sync_lyx) needs audit!

6 years agoFix minor whitespace error.
Christian Ridderström [Mon, 17 Jul 2017 20:23:17 +0000 (22:23 +0200)]
Fix minor whitespace error.

Fix the whitespace in e.g. 'QString&' to 'QString &' as this
incorrect, but primarily to simplify a comparison related to
later possibly introducing the use of .clang-format.

6 years agoAccept modifications in R examples
Guillaume MM [Mon, 17 Jul 2017 20:15:12 +0000 (22:15 +0200)]
Accept modifications in R examples

6 years agoDefine theorem counter for acmart layout
Guillaume MM [Sat, 1 Jul 2017 21:02:54 +0000 (23:02 +0200)]
Define theorem counter for acmart layout

6 years agoAdd some notes on forward/reverse search with evince.
Juergen Spitzmueller [Mon, 17 Jul 2017 08:26:43 +0000 (10:26 +0200)]
Add some notes on forward/reverse search with evince.

Evince is a special case, since it provides f/r search not via command
line switches and pref settings, but via DBUS. On Linux at least, this
can be used by LyX via some external scripts. The possibility is now
mentioned here, the details (and the scripts) are provided on the wiki.

6 years agoUpdate lib/Makefile.am
Enrico Forestieri [Sun, 16 Jul 2017 09:22:05 +0000 (11:22 +0200)]
Update lib/Makefile.am

6 years agoFix comment
Jean-Marc Lasgouttes [Sat, 15 Jul 2017 16:41:56 +0000 (18:41 +0200)]
Fix comment

6 years agoClassic icon for toolbar-toggle-review
Enrico Forestieri [Sat, 15 Jul 2017 14:43:18 +0000 (16:43 +0200)]
Classic icon for toolbar-toggle-review

6 years agoAvoid multiple execution of AddToPreamble and friends
Jean-Marc Lasgouttes [Thu, 13 Jul 2017 17:03:06 +0000 (19:03 +0200)]
Avoid multiple execution of AddToPreamble and friends

When trying to read a textclass, read(Lexer, Readtype) parses and
executes the first token and only then verifies that its effect was to
set format properly. Otherwise it exits.

This is wrong, because if the first tag is "AddToPreamble", then it will
have modified the preamble by the time we notice it was not "Format" and
therefore exit.

The new code starts by requiring a correct "Format" tag.

Fixes bug #10725.

6 years agoOxygen icon for toolbar-toggle-review
Enrico Forestieri [Sat, 15 Jul 2017 14:12:40 +0000 (16:12 +0200)]
Oxygen icon for toolbar-toggle-review

6 years agoTweak some icons
Enrico Forestieri [Sat, 15 Jul 2017 13:27:36 +0000 (15:27 +0200)]
Tweak some icons

- Move down the ERT icon
- Remove the transparent background from note icons as it turns out
  not to be transparent on some combinations of platform/Qt version

6 years agoBetter icon for toolbar-toggle-review
Enrico Forestieri [Sat, 15 Jul 2017 13:04:00 +0000 (15:04 +0200)]
Better icon for toolbar-toggle-review

6 years agosv.po: translation update from Jim Rotmalm
Scott Kostyshak [Sat, 15 Jul 2017 08:45:07 +0000 (04:45 -0400)]
sv.po: translation update from Jim Rotmalm

6 years agoUpdate of Swedish splash.lyx from Jim Rotmalm
Scott Kostyshak [Sat, 15 Jul 2017 08:22:33 +0000 (04:22 -0400)]
Update of Swedish splash.lyx from Jim Rotmalm

6 years agouk.gmo: update to match latest po
Scott Kostyshak [Sat, 15 Jul 2017 08:08:50 +0000 (04:08 -0400)]
uk.gmo: update to match latest po

This amends ca0ba098 and f01ca45d.

6 years agoCmake build: Use the same destination for lyx-tex-files as in automake
Kornel Benko [Fri, 14 Jul 2017 09:24:20 +0000 (11:24 +0200)]
Cmake build: Use the same destination for lyx-tex-files as in automake

6 years agode.po: address shortcut clash
Juergen Spitzmueller [Fri, 14 Jul 2017 07:23:22 +0000 (09:23 +0200)]
de.po: address shortcut clash

6 years agoFix generation of lyx_commit_hash.h
Jean-Marc Lasgouttes [Thu, 13 Jul 2017 15:58:49 +0000 (17:58 +0200)]
Fix generation of lyx_commit_hash.h

The code in the Makefile was incorrect.

6 years ago Copy documentation of new features of Additional.lyx in de, es, fr and ja document...
jpc [Wed, 12 Jul 2017 20:31:30 +0000 (22:31 +0200)]
   Copy documentation of new features of Additional.lyx in de, es, fr and ja documentation files
   as change tracking and remove chnage tracking in Additional.lyx

6 years ago Translations of backports from 2.2 from Uwe
jpc [Wed, 12 Jul 2017 19:44:05 +0000 (21:44 +0200)]
       Translations of backports from 2.2 from Uwe

6 years ago Typo in fr.po
jpc [Wed, 12 Jul 2017 16:20:08 +0000 (18:20 +0200)]
        Typo in fr.po

6 years agoTextMetrics::leftMargin does not need a max_width parameter
Jean-Marc Lasgouttes [Wed, 12 Jul 2017 08:25:54 +0000 (10:25 +0200)]
TextMetrics::leftMargin does not need a max_width parameter

Additionally move it to private: section.

6 years agoWhen cleaning up before quitting, take care of exceptions
Jean-Marc Lasgouttes [Tue, 11 Jul 2017 13:28:06 +0000 (15:28 +0200)]
When cleaning up before quitting, take care of exceptions

We do not want the cleanup work to be interrupted by a buffer exception.

Spotted by coverity. See bug #9979 for discussion.

6 years agoRemove copy-and-paste error
Jean-Marc Lasgouttes [Tue, 11 Jul 2017 11:43:32 +0000 (13:43 +0200)]
Remove copy-and-paste error

6 years agoDo not record undo when typing two spaces has been blocked
Jean-Marc Lasgouttes [Tue, 11 Jul 2017 10:15:29 +0000 (12:15 +0200)]
Do not record undo when typing two spaces has been blocked

Move the code that forbids character insertion in its own helper function.

Call this function before doing a recordUndo. This avoids to mark the
document dirty in cases where nothing happens.

Part of bug #10721.

6 years agoLoad color before polyglossia also in preview snippets
Juergen Spitzmueller [Tue, 11 Jul 2017 08:03:03 +0000 (10:03 +0200)]
Load color before polyglossia also in preview snippets

This fixes an error in the preview generation with polyglossia
and bidi that prevents snippet generation (and consequently also
"math as image" xhtml output).

Fixes: #10716.
6 years agoCmake build: Install lyx-provided fonts to where GuiFontLoader.cpp expects them
Kornel Benko [Mon, 10 Jul 2017 11:17:29 +0000 (13:17 +0200)]
Cmake build: Install lyx-provided fonts to where GuiFontLoader.cpp expects them

6 years ago Forgot 1 fuzzy in fr.po
jpc [Mon, 10 Jul 2017 09:45:31 +0000 (11:45 +0200)]
      Forgot 1 fuzzy in fr.po

6 years ago Update fr.po for beta
jpc [Mon, 10 Jul 2017 09:08:26 +0000 (11:08 +0200)]
      Update fr.po for beta

6 years agoFix bug #10718
Enrico Forestieri [Sun, 9 Jul 2017 20:27:06 +0000 (22:27 +0200)]
Fix bug #10718

Due to the peculiarities of Windows, it may happen that
pdftocairo is built without png support when compiled on this
platform. Unless explicitly requested (maybe for some peculiar
application and certainly not for usual distros), this is
highly improbable to occur on other platforms.

6 years agoAmend f01ca45: uk.po: translation update from Yuri Chornoivan
Kornel Benko [Sun, 9 Jul 2017 06:58:00 +0000 (08:58 +0200)]
Amend f01ca45: uk.po: translation update from Yuri Chornoivan

6 years agouk.po: translation update from Yuri Chornoivan
Scott Kostyshak [Fri, 7 Jul 2017 14:06:32 +0000 (10:06 -0400)]
uk.po: translation update from Yuri Chornoivan

6 years agoRewrite stripName without regex
Jean-Marc Lasgouttes [Thu, 6 Jul 2017 13:26:32 +0000 (15:26 +0200)]
Rewrite stripName without regex

Using a regular expression to find /src/ or \src\ in a string is overkill,
and since regexes can throw exceptions, it makes coverity nervous.

The new code is simpler anyway.

6 years agoFix uninitialized members outfd and infd
Jean-Marc Lasgouttes [Thu, 6 Jul 2017 12:46:03 +0000 (14:46 +0200)]
Fix uninitialized members outfd and infd

Also move initialization of some variables to initializers list.

Only the non-win32 part has been tested, but it should be OK.

Spotted by coverity.

6 years agoFix unitialized member
Jean-Marc Lasgouttes [Thu, 6 Jul 2017 12:45:21 +0000 (14:45 +0200)]
Fix unitialized member

Spotted by coverity.

6 years agoRemove test that is not needed.
Jean-Marc Lasgouttes [Thu, 6 Jul 2017 12:14:43 +0000 (14:14 +0200)]
Remove test that is not needed.

We know that buf is not null at this point.

Spotted by coverity.

6 years agoh_use_minted is a bool, not a string
Jean-Marc Lasgouttes [Thu, 6 Jul 2017 12:09:18 +0000 (14:09 +0200)]
h_use_minted is a bool, not a string

We have a mix in this file of boolean stored as such or as strings.
This translates to values written as true/false or 1/0 in .lyx files.

In this case, the value of use_minted could only be true, since the
char * pointer is non null.

Also add some else clauses.

Spotted by coverity.

6 years agoRename some macro-related insets
Jean-Marc Lasgouttes [Wed, 5 Jul 2017 12:31:28 +0000 (14:31 +0200)]
Rename some macro-related insets

These classes should have names that start with "Inset". Renaming done:
MathMacro => InsetMathMacro
MathMacroTemplate => InsetMathMacroTemplate
MathMacroArgument => InsetMathMacroArgument
ArgumentProxy => InsetArgumentProxy
DisplayLabelBox => InsetDisplayLabelBox
CommandInset => InsetMathCommand

6 years agoDo not use toobar menu as fallback context menu
Jean-Marc Lasgouttes [Wed, 5 Jul 2017 10:28:26 +0000 (12:28 +0200)]
Do not use toobar menu as fallback context menu

This is a consequence of e91572a0, although it is not clear why. The
contextMenuEvent code of the workarea should not delegate context
menu when it cannot honor it.

Also fix a small memory leak.

Fixes bug #10616.

6 years ago New file recollecting changes in the 2.3 doc
jpc [Wed, 5 Jul 2017 07:34:13 +0000 (09:34 +0200)]
        New file recollecting changes in the 2.3 doc

6 years agoUse the proper buffer when recording undo
Jean-Marc Lasgouttes [Tue, 4 Jul 2017 14:34:34 +0000 (16:34 +0200)]
Use the proper buffer when recording undo

The code in InsetLabel::updateReferences code changes reference insets
in potentially several buffers. When recording undo, it is important
to use the right undo stack, otherwise crashes can ensue.

Once it is done, it is neccessary to create undo groups as needed.
This is done using UndoGroupHelper. This demonstrates a shortcoming of
UndoGroup helper: if a buffer is encountered in two seperate
occasions, two undo groups will be created for this buffer. This is
not correct.

Fixes bug #10643.

6 years agoFix whitespace in some more files.
Richard Heck [Mon, 3 Jul 2017 18:46:27 +0000 (14:46 -0400)]
Fix whitespace in some more files.

6 years agoFix trailing whitespace in txt files.
Richard Heck [Mon, 3 Jul 2017 17:53:41 +0000 (13:53 -0400)]
Fix trailing whitespace in txt files.

6 years agoFix trailing whitespace in cpp files.
Richard Heck [Mon, 3 Jul 2017 17:53:14 +0000 (13:53 -0400)]
Fix trailing whitespace in cpp files.

6 years agoFix whitespace at EOL.
Richard Heck [Mon, 3 Jul 2017 17:45:58 +0000 (13:45 -0400)]
Fix whitespace at EOL.

7 years agonatbibapa.module: Do not overwrite preamble.
Juergen Spitzmueller [Sun, 2 Jul 2017 08:54:39 +0000 (10:54 +0200)]
natbibapa.module: Do not overwrite preamble.

Also add author information.

Candidate for stable.

7 years agoDon't give users dangerous instructions
Enrico Forestieri [Tue, 27 Jun 2017 22:30:56 +0000 (00:30 +0200)]
Don't give users dangerous instructions

7 years agoSort images file list also for cmake
Kornel Benko [Tue, 27 Jun 2017 17:18:24 +0000 (19:18 +0200)]
Sort images file list also for cmake

This is not needed for recent cmake versions, but since we expect
also older cmake version be used, sort the list nevertheless.
See https://reproducible-builds.org/ for why this matters.

Amends b8e3615

7 years agoFixup the fixup d0acc3e57044: use editable()/isActive()
Jean-Marc Lasgouttes [Fri, 23 Jun 2017 18:32:32 +0000 (20:32 +0200)]
Fixup the fixup d0acc3e57044: use editable()/isActive()

While 522516d9 was too strong and broke mathed, d0acc3e57044 is too
lenient and can accept insets (mathed/CommandInset, InsetInfo) that
have a positive nargs() but are not editable (because they encapsulate
something).

Therefore the best solution for now is to use editable() in text and
isActive() in mathed, until those two things are merged.

Part of #10667.

7 years agosort svgz file list
Bernhard M. Wiedemann [Thu, 22 Jun 2017 13:52:43 +0000 (15:52 +0200)]
sort svgz file list

(required because filesystems return listings in undeterministic order)
to generate Resources.qrc and thereby Resources.cpp and the lyx binary
in a reproducible way

Setting LC_ALL=C because sort order might vary with locales.

See https://reproducible-builds.org/ for why this matters.

Fixes #10711.

7 years agoCmake export tests: Ignore missing glyphs on some tests
Kornel Benko [Tue, 27 Jun 2017 08:26:27 +0000 (10:26 +0200)]
Cmake export tests: Ignore missing glyphs on some tests

Could not find a suitable tex font for the following tests:
export/doc/uk/Intro_pdf4_texF
export/examples/uk/splash_pdf4_texF
export/examples/minted-filelisting_pdf4_texF

7 years agoDon't enclose in braces minted languages
Enrico Forestieri [Mon, 26 Jun 2017 22:58:07 +0000 (00:58 +0200)]
Don't enclose in braces minted languages

This is because the braces would be part of the language name.