]>
git.lyx.org Git - features.git/log
Guillaume Munch [Thu, 2 Jun 2016 20:40:11 +0000 (21:40 +0100)]
Toc: clean-up
Guillaume Munch [Thu, 9 Jun 2016 20:54:31 +0000 (21:54 +0100)]
Replace foreach with for
C++11 allows foreach-style iterations with the following syntax:
for (auto & element : container) {
...
}
Guillaume Munch [Sat, 11 Jun 2016 11:13:00 +0000 (12:13 +0100)]
climits
It's as you prefer, Jean-Marc.
Guillaume Munch [Sat, 11 Jun 2016 07:21:38 +0000 (08:21 +0100)]
rewrite
51a15c45
Poor wording
Kornel Benko [Sun, 12 Jun 2016 17:56:31 +0000 (19:56 +0200)]
Cmake build: Check for make_unique and PATH_MAX symbols added.
Stephan Witt [Sun, 12 Jun 2016 11:03:06 +0000 (13:03 +0200)]
Use iostream instead of sstream and move it from header to cpp-source of LyX-Server
Richard Heck [Sun, 12 Jun 2016 04:58:33 +0000 (00:58 -0400)]
When we use InPremable styles, we want to write as many versions
to the premable as the user enters.
Richard Heck [Sun, 12 Jun 2016 04:34:35 +0000 (00:34 -0400)]
Add comments to fix coverity #23505 and 23507.
Richard Heck [Sun, 12 Jun 2016 04:31:33 +0000 (00:31 -0400)]
Add comment to fix coverity #111935.
Richard Heck [Sun, 12 Jun 2016 04:26:38 +0000 (00:26 -0400)]
Fix coverity issue #127197.
We may fail to get a buffer when we request one.
Richard Heck [Sun, 12 Jun 2016 04:22:09 +0000 (00:22 -0400)]
Add comment about coverity #102061.
Richard Heck [Sun, 12 Jun 2016 04:12:03 +0000 (00:12 -0400)]
Add a check to please coverity.
Fixes #23496.
Richard Heck [Sun, 12 Jun 2016 03:39:45 +0000 (23:39 -0400)]
Fix a number of other uninitialized members.
Fixes coverity #23392, 23394, 23397, 23403, 23414, 23424,
23448, 23477.
Richard Heck [Sun, 12 Jun 2016 03:47:54 +0000 (23:47 -0400)]
Add comment to fix coverity #23438.
Richard Heck [Sun, 12 Jun 2016 03:30:33 +0000 (23:30 -0400)]
Initialize a bunch of uninitialized members. It does not seem to
matter what they are initialized to. Fixes coverity #23391.
Richard Heck [Sun, 12 Jun 2016 03:26:02 +0000 (23:26 -0400)]
Add some comments to fix coverity #23386.
Richard Heck [Sun, 12 Jun 2016 03:13:01 +0000 (23:13 -0400)]
False positive on coverity #23366.
Richard Heck [Sun, 12 Jun 2016 03:08:54 +0000 (23:08 -0400)]
Add a LATTEST, just in case this ever causes a problem.
Fixes coverity #23363.
Richard Heck [Sun, 12 Jun 2016 03:03:15 +0000 (23:03 -0400)]
Check to make sure we have a preview loader.
Fixes coverity #23353.
Richard Heck [Sun, 12 Jun 2016 03:01:21 +0000 (23:01 -0400)]
Add comment fixing coverity #23351.
Richard Heck [Sun, 12 Jun 2016 02:59:01 +0000 (22:59 -0400)]
Add comment about coverity #23335.
Richard Heck [Sun, 12 Jun 2016 02:54:15 +0000 (22:54 -0400)]
Add comment to fix coverity #23308
Richard Heck [Sun, 12 Jun 2016 02:41:57 +0000 (22:41 -0400)]
Make sure we have a buffer in VC_COMPARE.
Fixes coverity #23304.
Richard Heck [Sun, 12 Jun 2016 02:49:23 +0000 (22:49 -0400)]
Add comment for coverity, fixing #23307.
Richard Heck [Sun, 12 Jun 2016 02:38:57 +0000 (22:38 -0400)]
Mark a number of coverity false positives.
Fixes coverity #23284, 23285, 23286, 23287, 23289.
Scott Kostyshak [Sat, 11 Jun 2016 21:05:28 +0000 (17:05 -0400)]
Add a comment and FIXME that lualatex can make DVI
The command 'lualatex' can produce a DVI with the option
--output-format=dvi
It is best to keep things as is because it is better to guess a PDF
than to guess a DVI (we do not use that feature of the 'lualatex'
command internally; we use 'dvilualatex' instead). However, we
should ideally get this information in a more robust way.
Thanks to Günter for pointing this out.
Pavel Sanda [Sat, 11 Jun 2016 18:23:39 +0000 (11:23 -0700)]
* Math.lyx : add few maxima examples to ch. 23.1.
Georg Baum [Sat, 11 Jun 2016 12:45:18 +0000 (14:45 +0200)]
Improve comments and add missing decoding call
We do already fill the first line of the body in the first pass, so the body
has to be converted to the correct encoding as well.
Günter Milde [Sat, 11 Jun 2016 11:54:33 +0000 (13:54 +0200)]
fix #10199 Non-encodable characters with XeTeX and utf8-plain
XeTeX with TeX fonts is only safe with ASCII input encoding (see #9740)
and we therefore force "ascii" when exporting with XeTeX and 8-bit TeX-fonts.
However, "utf8-plain" is a "power-user" option, which allows to switch off LyX's
encoding of the LaTeX file:
keep this also for "XeTeX with TeX fonts".
The user is responsible to ensure all characters can be processed and are
correctly shown in the output. The provided test sample shows the problems
with this encoding without special measures (like loading fontspec in the
user-preamble or a document class).
Kornel Benko [Sat, 11 Jun 2016 10:44:15 +0000 (12:44 +0200)]
Cmake build: Correct wrong comment
Kornel Benko [Sat, 11 Jun 2016 10:23:33 +0000 (12:23 +0200)]
Cmake build: Determine availability of 'std::regex' if using clang compiler
Georg Baum [Sat, 11 Jun 2016 09:06:11 +0000 (11:06 +0200)]
Some python 3 fixes for lyx2lyx
These were found by 2to3 and later adapted to use the compatibility code
which was already used in some parts of lyx2lyx, e.g. lyx_1_5.py.
Georg Baum [Sat, 11 Jun 2016 08:09:48 +0000 (10:09 +0200)]
Fix linking with std::regex and included boost
Stephan Witt [Sat, 11 Jun 2016 07:56:35 +0000 (09:56 +0200)]
Add missing includes after change to boost signals2
Georg Baum [Sat, 11 Jun 2016 07:28:11 +0000 (09:28 +0200)]
Do not try to build an empty boost lib
This should fix a build failure on OS X:
Making all in boost
AR liblyxboost.a
ar: no archive members specified
Georg Baum [Sat, 11 Jun 2016 07:20:16 +0000 (09:20 +0200)]
Skip boost linking test if not needed
We only link against boost libraries if we do not use std::regex.
Therefore, we do not need to test how to link against boost libs unconditionally.
Also, the warning regarding stdlib-debug is only needed if we link against boost.
Georg Baum [Sat, 11 Jun 2016 07:04:50 +0000 (09:04 +0200)]
Get rid of boost signals in multithreading test
Test for regex instead since this is the only boost library we are linking against.
Richard Heck [Sat, 11 Jun 2016 04:48:55 +0000 (00:48 -0400)]
Fix silly error outputting math sizes. Fixes bug #10129.
Guillaume Munch [Wed, 1 Jun 2016 17:27:36 +0000 (18:27 +0100)]
Fix bug #10119
This makes Qt 5.4 as usable as Qt 5.5.1 in my experience. Otherwise, fix again
INSTALL.
Guillaume Munch [Sat, 11 Jun 2016 04:25:34 +0000 (05:25 +0100)]
Clarify Qt requirements for 2.3
As discussed on the list. If the needs to drop Qt 4.8 arises, then this should
be discussed again.
Guillaume Munch [Sat, 11 Jun 2016 04:08:23 +0000 (05:08 +0100)]
Add missing header
Spotted by jkulesza
Richard Heck [Mon, 6 Jun 2016 23:36:27 +0000 (19:36 -0400)]
Restore last selected label when using the "go to label" feature
of the reference dialog.
Kornel Benko [Fri, 10 Jun 2016 11:38:29 +0000 (13:38 +0200)]
Cmake build: Finetune some destination data paths on UNIX
Jean-Marc Lasgouttes [Fri, 10 Jun 2016 09:58:11 +0000 (11:58 +0200)]
Allow to disable std::regex manually with autoconf
Update INSTALL and remove mention of --disable-cxx11.
Georg Baum [Thu, 9 Jun 2016 20:25:34 +0000 (22:25 +0200)]
Replace Boost.Signals with Boost.Signals2
Boost.Signals is deprecated. This fixes bug #9943.
The only thing left to do is to rewrite (or get rid of) the boost -mt test
in config/lyxinclude.m4 not to use signals anymore.
Georg Baum [Thu, 9 Jun 2016 18:47:19 +0000 (20:47 +0200)]
Rerun extract.sh to get rid of more boost
After the latest changes we require less parts of boost, but unfortunaly the
effect is only small.
Guillaume Munch [Thu, 2 Jun 2016 21:27:52 +0000 (22:27 +0100)]
Exercise: simplify the definition of IconvProcessor
It is no longer needed to create fake copy constructors and assignment and to
deal with deletion by hand, thanks to unique_ptr, the inference of move
constructor and assignment operator, and the compatibility of standard
containers with movable objects.
Guillaume Munch [Thu, 2 Jun 2016 19:38:15 +0000 (20:38 +0100)]
Remove non-copyable idioms
Two better ways of making a class non-copyable in C++11:
* Store the p. impl. in a unique_ptr (for the cases of classes with p. impl.),
or:
* Define publicly the copy constructor and assignment as deleted
Lots of other classes could be cleaned up in this way.
Guillaume Munch [Thu, 9 Jun 2016 15:09:14 +0000 (16:09 +0100)]
Missing headers
Found by Jean-Marc
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 15:38:30 +0000 (17:38 +0200)]
Initialize GuiDocument:biblioChanged_ in constructor
Found by Coverity
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 15:34:14 +0000 (17:34 +0200)]
Initialize correctly SystemcallPrivate in constructor
It seems that Error is the best possibility when nothing has been done yet.
Found by Coverity
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 15:26:55 +0000 (17:26 +0200)]
Initialize bool member of Package in default constructor
Found by Coverity
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 15:23:27 +0000 (17:23 +0200)]
Initialize properly InsetTabular members in constructor
Found by Coverity
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 15:11:41 +0000 (17:11 +0200)]
Initialize Parse::theCatCode_ in constructor
Normally, it is done before tokenizing, but it does not hurt to do it
even before.
Found by Coverity.
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 15:05:24 +0000 (17:05 +0200)]
Initialize FindAndReplaceOptions in default constructor
Found by coverity
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:58:13 +0000 (16:58 +0200)]
Initialize correctly GuiErrorList::from_master_ in constructor
Found by Coverity
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:51:07 +0000 (16:51 +0200)]
Initialize InsetExteralParams::preview_mode in constructor
The value PREVIEW_OFF is the same default as for external::Template.
Found by Coverity
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:44:56 +0000 (16:44 +0200)]
Initialize GuiSendto::format_ in constructor
Found by Coverity.
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:42:24 +0000 (16:42 +0200)]
Always initialize InsetQuote language in constructor
Found by Coverity
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:38:32 +0000 (16:38 +0200)]
Initialize some GuiTabular members in constructor
Found by Coverity.
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:34:25 +0000 (16:34 +0200)]
Initialize ScopeBuffer::buffer member in constructor
Found by Coverity.
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:25:02 +0000 (16:25 +0200)]
Initialize LyXModule::available_ in constructor
Found by Coverity.
Guillaume Munch [Thu, 2 Jun 2016 19:06:59 +0000 (20:06 +0100)]
Replace boost::tuple with std::tuple
Guillaume Munch [Thu, 2 Jun 2016 17:13:55 +0000 (18:13 +0100)]
Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr
shared_ptrs now only require the <memory> header.
Guillaume Munch [Thu, 2 Jun 2016 22:49:36 +0000 (23:49 +0100)]
Replace boost::scoped_ptr with unique_ptr
Guillaume Munch [Thu, 2 Jun 2016 17:00:22 +0000 (18:00 +0100)]
Autotools: restore deprecation warning
-Wno-deprecated-declarations was added at
314a121c .
Guillaume Munch [Thu, 2 Jun 2016 20:58:52 +0000 (21:58 +0100)]
Replace auto_ptr with unique_ptr
This is a mechanical replacement. For now it seems that unique_ptrs are
essentially used for exception-safety. More could certainly be done to clarify
pointer ownership in general.
Guillaume Munch [Tue, 24 May 2016 22:25:41 +0000 (23:25 +0100)]
unique_ptr and make_unique
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:19:31 +0000 (16:19 +0200)]
Initialize all MathMacroTemplate members in constructors
Found by coverity.
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:02:39 +0000 (16:02 +0200)]
Please Coverity (code should be equivalent)
The parameter passed to allowDisplayMath will need to be copied, so it
made sense to pass it by value. Since Coverity complains about that,
the code is rewritten to make the copy explicit.
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 13:51:07 +0000 (15:51 +0200)]
Annotate source code to please coverity
This code is signalled as a copy and paste error, but it is a false
positive.
According to the documentation, adding a comment starting with
// coverity[name_of_error]
should be enough to flag the false positive.
Jean-Marc Lasgouttes [Mon, 6 Jun 2016 12:01:02 +0000 (14:01 +0200)]
Fix right_boundary properly after a row is shortened
Instead of resetting it to false, do a proper test to see whether
there is a separator at the end of the row.
Fixes bug #10180.
Pavel Sanda [Thu, 9 Jun 2016 02:33:08 +0000 (19:33 -0700)]
Improve build for FreeBSD.
Patch from Shankar Giri Venkita Giri.
Uwe Stöhr [Thu, 9 Jun 2016 00:14:28 +0000 (02:14 +0200)]
Win installer: new version with Qt 5.6.1
- the update to JabRef 3.4 which fixes installation problems if user has no admin privileges
- also update MiKTeX and ImageMagick
Georg Baum [Wed, 8 Jun 2016 20:17:14 +0000 (22:17 +0200)]
Add missing backslashes
Found by 2to3, but useful for python2 as well for consistency reasons.
Georg Baum [Wed, 8 Jun 2016 18:02:33 +0000 (20:02 +0200)]
Make scripts python3 compatible
Again using 2to3 and manual checking
Georg Baum [Wed, 8 Jun 2016 17:29:15 +0000 (19:29 +0200)]
Make configure.py python3 compatible
This was done using 2to3 and manual tweaking afterwards to ensure that it
works with python2 as well.
Georg Baum [Wed, 8 Jun 2016 16:41:57 +0000 (18:41 +0200)]
Make commented code python3 compatible
Kornel Benko [Wed, 8 Jun 2016 07:21:48 +0000 (09:21 +0200)]
Cmake build: Check for QPA_XCB when QT_USES_X11 is known
Since QT_USES_X11 is determined in ConfigureChecks
we have to check after this call
Georg Baum [Tue, 7 Jun 2016 20:29:38 +0000 (22:29 +0200)]
Mention C++11 requirement in INSTALL
Thanks to Scott and Jean-Marc for pointing that out, I forgot it.
Georg Baum [Tue, 7 Jun 2016 20:19:10 +0000 (22:19 +0200)]
We do not use the provided MSVC proj files
Georg Baum [Tue, 7 Jun 2016 20:10:49 +0000 (22:10 +0200)]
Remove boost::typeof
Jean-Marc found out that we do not need it.
Georg Baum [Tue, 7 Jun 2016 19:14:12 +0000 (21:14 +0200)]
Update boost to version 1.61
I updated using the new extract script. This gets rid of boost::bind, but the
other parts are still needed internally.
Georg Baum [Tue, 7 Jun 2016 19:10:19 +0000 (21:10 +0200)]
Remove unneeded files from extract.sh
We do require less files from boost now.
Georg Baum [Tue, 7 Jun 2016 18:49:27 +0000 (20:49 +0200)]
Remove zombie noncopyable.hpp dependency
The header was still included, but not used.
Georg Baum [Tue, 7 Jun 2016 18:33:06 +0000 (20:33 +0200)]
Require a C++11 compiler
As discussed on the list. If no C++11 compiler is found configuration stops
with an error. There are now unneeded parts of boost, the will be removed in
a second commit.
Kornel Benko [Tue, 7 Jun 2016 12:38:20 +0000 (14:38 +0200)]
Cmake build: Correct some installation paths
Richard Heck [Tue, 7 Jun 2016 00:41:07 +0000 (20:41 -0400)]
Fix bug #10194: Space missing in UI.
Richard Heck [Mon, 6 Jun 2016 23:55:54 +0000 (19:55 -0400)]
Fix some problems with the preamble in th eKoma-script letter
template.
Thanks to Richard Talley for the report.
Georg Baum [Mon, 6 Jun 2016 19:55:39 +0000 (21:55 +0200)]
Fix cppcheck initialization warnings
Georg Baum [Mon, 6 Jun 2016 19:52:52 +0000 (21:52 +0200)]
Rethrow excepction instead of a copy
This fixes the cppcheck warning "(style) Throwing a copy of the caught
exception instead of rethrowing the original exception."
Georg Baum [Sun, 5 Jun 2016 17:48:31 +0000 (19:48 +0200)]
Remove duplicated if clause
This was a thinko in
760b7cf2 (found by cppcheck), it was added in
977bbd9b as
well.
Scott Kostyshak [Mon, 6 Jun 2016 08:57:47 +0000 (04:57 -0400)]
Start a fresh RELEASE-NOTES
Kornel Benko [Mon, 6 Jun 2016 06:29:07 +0000 (08:29 +0200)]
Cmake build: Refactor determination of destination paths.
Kornel Benko [Sun, 5 Jun 2016 20:59:13 +0000 (22:59 +0200)]
Cmake build: Set new installation paths
For a suffixed version (with suffix 2.3) and installation dir (/usr/local)
the new paths are:
binary -> /usr/local/bin
system-lib -> /usr/local/share/lyx2.3
fonts -> /usr/local/fonts/truetype/lyx2.3
manuals -> /usr/local/man/man1
locales -> /usr/local/share/locale
tex -> /usr/local/texmf/tex/latex/lyx2.3
Georg Baum [Sun, 5 Jun 2016 14:53:55 +0000 (16:53 +0200)]
Fix encoding for computer modern fonts
The essential hints came from Guillaume amd Jean-Marc at bug #8883.
Tested by comparing the output of
python generate_symbols_list.py `kpsewhich fontmath.ltx`
with lib/symbols.
Georg Baum [Sun, 5 Jun 2016 14:38:57 +0000 (16:38 +0200)]
Make generate_symbols_list.py python3 compatible
Kornel Benko [Sun, 5 Jun 2016 14:26:59 +0000 (16:26 +0200)]
Cmake build: Allow user defined suffix for program files
Georg Baum [Sun, 5 Jun 2016 13:54:29 +0000 (15:54 +0200)]
Implement gcc version check for cmake
Georg Baum [Sun, 5 Jun 2016 13:40:00 +0000 (15:40 +0200)]
Require at least gcc 4.3
This is a prerequisite for mandatory C++11 support.
I could not find a cmake gcc version check btw.