Guillaume Munch
b6b56d8518
Notification of external modification inspired by gedit
2017-03-11 00:50:57 +01:00
Guillaume Munch
299242bb16
New LFUN buffer-external-modification-clear
2017-03-11 00:50:57 +01:00
Guillaume Munch
656bc46892
Clean-up
2017-03-11 00:50:57 +01:00
Guillaume Munch
1e57fd12b1
Display externally modified status
2017-03-11 00:50:57 +01:00
Guillaume Munch
7c123507a4
Whitespace
2017-03-11 00:50:57 +01:00
Guillaume Munch
cf3c035266
Implement real-time detection of external modifications
2017-03-11 00:50:57 +01:00
Guillaume Munch
caa54e80ee
Implement FileMonitor as a wrapper for QFileSystemWatcher
...
The new file monitor supports both boost and qt signals. It is implemented in a
ressource-safe way.
2017-03-11 00:50:57 +01:00
Guillaume Munch
22edb3df96
Preventive fix inspired from ~
2017-03-11 00:50:57 +01:00
Guillaume Munch
b034389e6d
Amend 63be456c8
...
Fix crash when clicking on math previews
2017-03-11 00:50:57 +01:00
Guillaume Munch
387ac78088
Add option to ignore a parameter in InsetCommandParams
...
It will not be saved to the file and will always be equal to a given default
value.
2017-03-11 00:50:57 +01:00
Guillaume Munch
3dec5826da
buffer-export default
2017-03-11 00:50:57 +01:00
jpc
8e9fb2eabc
Update fr.po
2017-03-10 19:14:09 +01:00
jpc
ac06a54163
Class agutex.cls is obsolete: information given in the LyX template
2017-03-10 19:11:22 +01:00
Jean-Marc Lasgouttes
9a013637bb
Experiment: limit size of strings read from lib/symbols
...
Coverity complains that we might read strings that are arbitrary
large, and that this can be a security issue. This is a problem in
particular, when we feed these strings to from_utf8(), which coverity
flags as dangerous for some reason.
The best solution would be IMO to model from_utf8() properly, but I do
not know how to do that. Here I try a different solution, where I
cannot read a string larger than 64k from the file.
Let's see whether this removes part of coverity warnings.
2017-03-10 16:29:09 +01:00
Jean-Marc Lasgouttes
0f220503ff
Small cleanup to LayoutBox and CategorizedCombo
...
Coverity does not find it obvious that p is never negative. Normally
it is the case (because the items have been filtered), but it is
better to play safe.
2017-03-10 15:57:31 +01:00
Kornel Benko
c99e2f1fad
Add label 'defaultoutput' to export tests using document default output format
2017-03-10 14:35:11 +01:00
Jean-Marc Lasgouttes
e2f2915f8e
Be careful about unparsable bibtex years
...
Handle gracefully the case where the regex that parses a year fails.
This is a fixup to ba171930
(spotted by coverity).
2017-03-10 10:35:03 +01:00
Jean-Marc Lasgouttes
4b8e5a9d53
Another unreachable `return' that is not needed
...
The compilers we use now do not care, but coverity complains.
2017-03-09 15:12:03 +01:00
Jean-Marc Lasgouttes
ce0c11ba4e
Remove unreachable return statements
...
They were needed long ago to avoid gcc warnings, but now all they do
is create coverity warnings.
2017-03-09 15:05:33 +01:00
Jean-Marc Lasgouttes
5a62e37add
Handle the case where doc_bv is null
...
It might only happens in specific cases where no file is open and for
some reason the new file cannot be opened.
2017-03-09 14:41:27 +01:00
Jean-Marc Lasgouttes
f7ab893def
Avoid dereferencing an iterator at the end
...
Found by coverity, could lead to a crash with badly formed kmap file.
2017-03-09 14:26:17 +01:00
Richard Heck
4569010b66
Add a comment.
2017-03-08 17:34:07 -05:00
Jean-Marc Lasgouttes
dee0ea0c21
Make a test clearer
...
This should hopefully please coverity now. For some reason, the
annotation did not work. Should it be in lower case?
2017-03-08 17:03:48 +01:00
Jean-Marc Lasgouttes
000dcb8672
Make a false positive explicit
...
Pleases coverity
2017-03-08 16:50:03 +01:00
Jean-Marc Lasgouttes
2d86b2debb
Fix missing initialization
...
This was already fixed after coverity report at bad511f3fe
,
but this part was missing.
2017-03-08 16:41:42 +01:00
Jean-Marc Lasgouttes
f0ab93c4b8
Initialize members spotted by coverity
2017-03-08 16:37:53 +01:00
Jean-Marc Lasgouttes
ed15c31bf8
Make a dummier LyXRC for tex2lyx
...
The old version made coverity complain about uninitialized members.
The new one is the same as in support/tests/dummy_impl.cpp.
2017-03-08 16:37:53 +01:00
Scott Kostyshak
37290fdb61
Describe the use of '*' in -e/-E CL options
...
The use of '*' in buffer-export was implemented at 494ce664
.
2017-03-08 00:36:28 -05:00
Scott Kostyshak
24ad64c406
Implement '*' in "buffer-export <FORMAT> <DEST>"
...
For the variant of buffer-export that allows a format and a
filename, the substitution must be done after the argument is split.
Related to 494ce664
.
2017-03-08 00:36:28 -05:00
Kornel Benko
2136887ea2
Typo: Copy/Paste error
2017-03-07 14:40:56 +01:00
Kornel Benko
5d3d26b024
Cmake build: Adapt handling of mytheslib to automek behaviour
...
The added cmake-parameter is:
-DLYX_EXTERNAL_MYTHES=<value>
where <value> is one of
AUTO (Default) Search first on system for mythes (lib and include)
ON Use installed only (errors if not installed)
OFF Compile the provided source in 3rdparty
2017-03-07 14:27:08 +01:00
Jean-Marc Lasgouttes
dc126bad04
Fix typo found by coverity
...
We were not testing for the right end(), although it is not sure that
an actual bug could be triggered because of that.
2017-03-07 12:02:54 +01:00
Jean-Marc Lasgouttes
25d64bf43a
Fix test to make coverity happy
...
It is not obvious that cur is not null iff thisSlice is not -1, but
this is what happens in the caller.
2017-03-07 11:56:59 +01:00
Jean-Marc Lasgouttes
55957c4576
Fix test to make coverity happy
...
It is not obvious that cur is not null iff thisSlice is not -1, but
this is what happens in the caller.
2017-03-07 11:48:32 +01:00
Jean-Marc Lasgouttes
bb7551258c
Fix distcheck for mythes
...
For some reason, I mistyped "myspell" instead of "mythes" as a reflex. I
thought that I fixed all occurences, but it appears that I missed
one...
2017-03-07 11:14:58 +01:00
Kornel Benko
15babdc0f1
Amend 0e50ad8
'move mythes sources to 3rdparty' for cmake build.
2017-03-06 19:31:23 +01:00
Jean-Marc Lasgouttes
0e50ad8b16
Update bundled mythes to version 1.2.5
...
Move it to 3rdparty/ directory alongside the other ones.
2017-03-06 17:08:38 +01:00
Jean-Marc Lasgouttes
8cb021b32f
Rewrite detection of MyThes library
...
Now configure searches in this order
1. system-installed library
2. code bundled with LyX
If --with-included-mythes or if no mythes library is installed, then
the script selects the bundled version. There should be no cases
leading to error message.
2017-03-06 16:10:11 +01:00
Guillaume Munch
3d2d02510a
Amend 841825aa56
...
sort alphabetically
2017-03-06 01:01:11 +01:00
Guillaume Munch
3d06c09d8d
Fix color of todo notes
...
Yellow on blue causes display issues (some text elements that become black on
blue, math insets that are no longer readable). Switch to black on orange to
match the pdf output.
2017-03-05 08:45:52 +01:00
Guillaume Munch
841825aa56
Add default export to the menu
2017-03-05 08:45:52 +01:00
Guillaume Munch
76f3f6eb01
Fix warning
2017-03-05 08:45:52 +01:00
Guillaume Munch
a0ce37147c
Allow Ctrl+Enter in GuiCitation even if the citation is already there
2017-03-05 08:45:52 +01:00
Guillaume Munch
354897f6d9
Tabular::editXY should not touch the selection
2017-03-05 08:45:52 +01:00
Guillaume Munch
494ce6647a
buffer-export * synonymous to buffer-export
2017-03-05 08:45:52 +01:00
Uwe Stöhr
79241febf6
ja.po: update for master from Koji
2017-03-05 01:07:53 +01:00
Enrico Forestieri
5940dc53aa
Fix bug #10579
...
The \lyxdeleted macro cannot cope with empty lines.
2017-03-03 13:00:32 +01:00
Jean-Marc Lasgouttes
aa6619237d
Fixup to 2f701e6a1
...
Use the bundled mythes by default again, since the current situaiton
create an error for anybody who does not have the system one
installed.
This is a stop gap measure and I'll return to it later (in a hurry now).
2017-03-03 12:01:54 +01:00
Kornel Benko
ef05496ce9
Cmake tests: Add visual indication if a test is ignoring some latex error messages
2017-03-02 15:53:34 +01:00
Jean-Marc Lasgouttes
1de8ab6ed5
Try to see if coverity annotations should be in lower case
...
The current one did not work.
2017-03-02 15:24:12 +01:00