]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agoWhen running latex one needs to have a proper buffer
Jean-Marc Lasgouttes [Mon, 27 Mar 2017 15:43:18 +0000 (17:43 +0200)]
When running latex one needs to have a proper buffer

Calms down coverity

7 years agoHandle properly exception that can be thrown by to_local8bit
Jean-Marc Lasgouttes [Mon, 27 Mar 2017 14:08:22 +0000 (16:08 +0200)]
Handle properly exception that can be thrown by to_local8bit

Remove the use of this function in GuiAlert.

This was spotted by coverity

7 years agoAmend 16d5c49b
Enrico Forestieri [Mon, 27 Mar 2017 13:08:30 +0000 (15:08 +0200)]
Amend 16d5c49b

Remove redundant action when toggling the dashes check box.

7 years agoFix #9732: Inconsistent font properties for the preview and superscript insets
Enrico Forestieri [Mon, 27 Mar 2017 13:00:43 +0000 (15:00 +0200)]
Fix #9732: Inconsistent font properties for the preview and superscript insets

7 years agolyx2lyx: fix #9006 (python3 with non-utf8 encoding as the system default)
José Matos [Mon, 27 Mar 2017 10:35:29 +0000 (11:35 +0100)]
lyx2lyx: fix #9006 (python3 with non-utf8 encoding as the system default)

This patch fixes lyx2lyx running on python 3 for those systems
where the default encoding is not UTF-8, since open by default
uses the default system encoding.

7 years agolyx2lyx: remove trailing whitespaces from lyx_1_6.py
José Matos [Mon, 27 Mar 2017 10:26:58 +0000 (11:26 +0100)]
lyx2lyx: remove trailing whitespaces from lyx_1_6.py

7 years agolyx2lyx: more descriptive member name (document.start -> document.initial_format)
José Matos [Mon, 27 Mar 2017 09:36:30 +0000 (10:36 +0100)]
lyx2lyx: more descriptive member name (document.start -> document.initial_format)

7 years agolyx2lyx: Cosmetic clean up of the lyx_2_?.py files.
José Matos [Mon, 27 Mar 2017 09:16:31 +0000 (10:16 +0100)]
lyx2lyx: Cosmetic clean up of the lyx_2_?.py files.

Remove the duplicated \# -*- coding: utf-8 -*-
lines that show in the third line.
As far as I know they are not used, the first line though is used
by python and text editors (emacs, vi & co) to get the file encoding.
That will also work in the second lines (because of the shebang convention)
but not in other lines.

Remove trailing whitespaces.

7 years agouk.po: translation update for master by Yuri
Uwe Stöhr [Sun, 26 Mar 2017 22:04:25 +0000 (00:04 +0200)]
uk.po: translation update for master by Yuri

7 years agode.po: improve a string
Juergen Spitzmueller [Sun, 26 Mar 2017 16:11:32 +0000 (18:11 +0200)]
de.po: improve a string

7 years agoTranslate file filters for external material
Juergen Spitzmueller [Sun, 26 Mar 2017 16:10:30 +0000 (18:10 +0200)]
Translate file filters for external material

7 years agoGuiExternal: use proper model/view separation and sort the templates
Juergen Spitzmueller [Sun, 26 Mar 2017 15:56:47 +0000 (17:56 +0200)]
GuiExternal: use proper model/view separation and sort the templates

7 years agode.po
Juergen Spitzmueller [Sun, 26 Mar 2017 13:41:33 +0000 (15:41 +0200)]
de.po

7 years agoSplit external_templates to individual *.xtemplate files
Juergen Spitzmueller [Sun, 26 Mar 2017 13:32:01 +0000 (15:32 +0200)]
Split external_templates to individual *.xtemplate files

This makes it easier to add new templates or change existing ones
in the user directory.

Fixes: #3983
The CMake changes should be double-checked.

7 years agoCmake build: Set cache variables correctly
Kornel Benko [Sat, 25 Mar 2017 11:43:53 +0000 (12:43 +0100)]
Cmake build: Set cache variables correctly

In case of LYX_EXTERNAL_MYTHES==AUTO, the setting never made it into cache.

7 years agoFix coverity issues about exceptions
Jean-Marc Lasgouttes [Fri, 24 Mar 2017 15:44:14 +0000 (16:44 +0100)]
Fix coverity issues about exceptions

There a some exceptions related to the fact that BOOST_ASSERT throws
an unhandled exception, which is fait enough. This is handled by
uploading a modeling file to coverity.

The second batch of issues are related to the use of lexical_cast in
convert.cpp. We use now a wrapper around boost::lexical_cast that does
not throw but return empty strings instead. I am not sure actually of
when lexical_cast could fail.

7 years agoTry alternative syntax for signaling false positive
Jean-Marc Lasgouttes [Fri, 24 Mar 2017 14:54:16 +0000 (15:54 +0100)]
Try alternative syntax for signaling false positive

7 years agoCheck return value of regex_match instead of looking at first match
Jean-Marc Lasgouttes [Fri, 24 Mar 2017 14:51:26 +0000 (15:51 +0100)]
Check return value of regex_match instead of looking at first match

Spotted by coverity.

7 years agoTwo places where coverity urges us to limit string length
Jean-Marc Lasgouttes [Fri, 24 Mar 2017 14:25:42 +0000 (15:25 +0100)]
Two places where coverity urges us to limit string length

These two issues make sense, but there are probably others.

7 years agoPass big parameters by address
Jean-Marc Lasgouttes [Fri, 24 Mar 2017 14:06:13 +0000 (15:06 +0100)]
Pass big parameters by address

Spotted by coverity.

7 years agoReduce horizontal spacing for simple inline equations
Jean-Marc Lasgouttes [Thu, 17 Nov 2016 15:17:49 +0000 (16:17 +0100)]
Reduce horizontal spacing for simple inline equations

7 years agoLinearize macros in box edit mode too.
Jean-Marc Lasgouttes [Wed, 8 Feb 2017 15:42:14 +0000 (16:42 +0100)]
Linearize macros in box edit mode too.

The special mode used by macros where the macro name is displayed as
grey text in a box is now one of the possible marker types for any
inset. The new code puts the macro name below the text, which means
that only the text below the current line will be moved. This makes
edition much more comfortable. The grey border around the contents has
been removed too.

The marker_type enum has been moved from Inset to InsetMath. A
markerMargin() function returns the horizontal margin required on each
side for the marker. Only the corner-type markers MARKER and MARKER2
need some.

A new BOX_MARKER enum value has been added and is taken care of in
afterMetricsMarkers (renamed from metricsMarkerVertical) and
drawMarkers.

The InsetMath::marker() macro now takes a BufferView pointer as
argument, so that the marker type can depend on editing state.

MathRow::metrics now makes changes to the MathRow object when needed.

The specific metrics/draw code in MathMacro has been removed and
replaced by assertions. Code in addToMathRow and marker is adapted to
reflect the cases where linearization is possible.

7 years agoCorrect FORMAT documentation
Juergen Spitzmueller [Tue, 21 Mar 2017 09:24:31 +0000 (10:24 +0100)]
Correct FORMAT documentation

7 years agoFurther amendment to 72a488d7
Enrico Forestieri [Mon, 20 Mar 2017 22:59:16 +0000 (23:59 +0100)]
Further amendment to 72a488d7

Rephrase positively the check box for the output of en- and em-dashes
and disable it when using non-TeX fonts. The state of the check box
is remembered, so that toggling the non-TeX fonts check box does not
cause information loss.

7 years agoFix compilation warning in DepTable.cpp
Jean-Marc Lasgouttes [Mon, 20 Mar 2017 14:03:09 +0000 (15:03 +0100)]
Fix compilation warning in DepTable.cpp

7 years agoAlso account for development versions
Enrico Forestieri [Mon, 20 Mar 2017 14:08:17 +0000 (15:08 +0100)]
Also account for development versions

7 years agoAmend 72a488d7
Enrico Forestieri [Mon, 20 Mar 2017 13:37:25 +0000 (14:37 +0100)]
Amend 72a488d7

- Mention the new buffer parameter in development/FORMAT

- Assure that lyx2lyx generates the same output obtained when saving
  a converted document from within lyx

- Don't require any action when converting a document created with
  lyx 2.2 in order to assure unchanged output (thanks José for the hint)

7 years agoFix missing OutlinerName in simplecv
Guillaume Munch [Sun, 19 Mar 2017 23:12:30 +0000 (00:12 +0100)]
Fix missing OutlinerName in simplecv

7 years agoFix output of en- and em-dashes with TeX fonts
Enrico Forestieri [Sun, 19 Mar 2017 19:50:34 +0000 (20:50 +0100)]
Fix output of en- and em-dashes with TeX fonts

This commit fixes the regression introduced in 2.2 about the
output of en- and em-dashes. In 2.2 en- and em-dashes are output as
the \textendash and \textemdash macros when using TeX fonts, causing
changed output in old documents and also bugs (for example, #10490).

Now documents produced with older versions work again as intended,
while documents produced with 2.2 can be made to produce the exact
same output by simply checking "Don't use ligatures for en-and
em-dashes" in Document->Settings->Fonts.

When exporting documents using TeX fonts to earlier versions, in order
to avoid changed output, a zero-width space character is inserted after
each en/em-dash if dash ligatures are allowed. These characters are
removed when reloading  documents with 2.3, so that they don't accumulate.

7 years agoConsider text-mode accents of the form {\v a} in BiblioInfo
Juergen Spitzmueller [Sun, 19 Mar 2017 15:15:03 +0000 (16:15 +0100)]
Consider text-mode accents of the form {\v a} in BiblioInfo

Fixes #9340.

7 years agorepair Cursor::x_target mechanism (#10168)
Guillaume Munch [Sun, 19 Mar 2017 13:41:54 +0000 (14:41 +0100)]
repair Cursor::x_target mechanism (#10168)

7 years agoRegularly check if preview is modified when visible on screen
Guillaume Munch [Sun, 19 Mar 2017 13:41:54 +0000 (14:41 +0100)]
Regularly check if preview is modified when visible on screen

In case one cannot rely on QFileSystemWatcher.

7 years agoRegularly check if graphics is modified when visible on screen (#10596)
Guillaume Munch [Sun, 19 Mar 2017 13:41:54 +0000 (14:41 +0100)]
Regularly check if graphics is modified when visible on screen (#10596)

In case one cannot rely on QFileSystemWatcher.

see https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg199112.html

7 years agoCosmetic
Guillaume Munch [Sat, 18 Mar 2017 23:09:02 +0000 (00:09 +0100)]
Cosmetic

7 years agoRessurect old FileMonitor à la Frankenstein
Guillaume Munch [Sat, 18 Mar 2017 23:06:40 +0000 (00:06 +0100)]
Ressurect old FileMonitor à la Frankenstein

ActiveFileMonitor combines QFileSystemWatcher with the previous checksum
approach.

7 years agoBlocking signals also blocks the notification of file creation (#10595)
Guillaume Munch [Sat, 18 Mar 2017 19:39:34 +0000 (20:39 +0100)]
Blocking signals also blocks the notification of file creation (#10595)

7 years agoCorrect ownership
Guillaume Munch [Sat, 18 Mar 2017 19:37:55 +0000 (20:37 +0100)]
Correct ownership

One can now delete a file monitor if a blocker is active.

7 years agoImprove BibTeX name parsing #4
Juergen Spitzmueller [Sun, 19 Mar 2017 13:03:48 +0000 (14:03 +0100)]
Improve BibTeX name parsing #4

Handle name prefix (aka "von" part) as a separate entity, just like
BibTeX and Biblatex do. This allows to omit or reposition it in
accordance to the current style ("Goethe, Johann Wolfgang" or
"von Goethe, Johann Wolfgang" or "Goethe, Johann Wolfgang von" are all
valid and used).

LyX's name parser should now be on par with BibTeX's.

7 years agoReplace "junior" with the more generic term "suffix".
Juergen Spitzmueller [Sun, 19 Mar 2017 12:33:56 +0000 (13:33 +0100)]
Replace "junior" with the more generic term "suffix".

7 years agoImprove BibTeX name parsing #3
Juergen Spitzmueller [Sun, 19 Mar 2017 11:42:18 +0000 (12:42 +0100)]
Improve BibTeX name parsing #3

Correctly handle name suffix ("Jr.-part")

7 years agoAllow for simple conditions in name scheme.
Juergen Spitzmueller [Sun, 19 Mar 2017 10:45:42 +0000 (11:45 +0100)]
Allow for simple conditions in name scheme.

I.e., only output a comma between last and first name if there is
a first name.

7 years agoImprove BibTeX name parsing #2
Juergen Spitzmueller [Sun, 19 Mar 2017 10:44:22 +0000 (11:44 +0100)]
Improve BibTeX name parsing #2

Also consider grouping when looking for name separators.

Cases such as {{Barnes and Noble, Inc.}} are now handled correctly.

7 years agoImprove BibTeX name parsing #1
Juergen Spitzmueller [Sun, 19 Mar 2017 10:41:33 +0000 (11:41 +0100)]
Improve BibTeX name parsing #1

Consider groupings of name parts via {...}

7 years agoFix typo in comment
Scott Kostyshak [Tue, 7 Mar 2017 03:52:23 +0000 (22:52 -0500)]
Fix typo in comment

7 years agoUse "Prename Surname" format for basic numeric styles.
Juergen Spitzmueller [Sat, 18 Mar 2017 14:35:45 +0000 (15:35 +0100)]
Use "Prename Surname" format for basic numeric styles.

7 years agoClean up
Guillaume Munch [Sat, 18 Mar 2017 14:08:20 +0000 (15:08 +0100)]
Clean up

Only keep one dynamic-cast. This fixes coverity warnings.

7 years agoInput stdciteformats to the cite engines directly
Juergen Spitzmueller [Sat, 18 Mar 2017 10:26:23 +0000 (11:26 +0100)]
Input stdciteformats to the cite engines directly

not to individual layouts.

Possibly fixes #10582

7 years agolyx2lyx: Remove UTF-8 BOM if present in the lyx file
José Matos [Wed, 15 Mar 2017 10:06:30 +0000 (10:06 +0000)]
lyx2lyx: Remove UTF-8 BOM if present in the lyx file

7 years agoOutput debug message when creating bad length
Jean-Marc Lasgouttes [Tue, 14 Mar 2017 14:20:09 +0000 (15:20 +0100)]
Output debug message when creating bad length

Coverity is right to say that we should check the return value.

7 years agoAnother forgotten unreachable `return' that is not needed
Jean-Marc Lasgouttes [Tue, 14 Mar 2017 13:46:02 +0000 (14:46 +0100)]
Another forgotten unreachable `return' that is not needed

The compilers we use now do not care, but coverity complains.

7 years agoFixup commit 50060053
Jean-Marc Lasgouttes [Tue, 14 Mar 2017 13:26:26 +0000 (14:26 +0100)]
Fixup commit 50060053

Fix two instances where theFormats() was used instead of a local parameter.

Fix layout test.

7 years agoOnly accept non-negative lyxscale parameters
Jean-Marc Lasgouttes [Mon, 13 Mar 2017 17:16:27 +0000 (18:16 +0100)]
Only accept non-negative lyxscale parameters

Since lyxscale is unsigned, a negative value would lead to a very
large positive value.

Spotted by coverity.

7 years agoMove the global formats and system_formats variables into the
Richard Heck [Tue, 14 Mar 2017 03:33:40 +0000 (23:33 -0400)]
Move the global formats and system_formats variables into the
LyX singleton.

Mostly, this is very boring, but it might be good if someone would
check what I did about the dummy implementation in tex2lyx.

7 years agoUse FileName::lastModified() intead of stat() in DepTable
Jean-Marc Lasgouttes [Fri, 10 Mar 2017 10:23:55 +0000 (11:23 +0100)]
Use FileName::lastModified() intead of stat() in DepTable

This patch removes explicit calls to stat() in the DepTable code. The
original motivation was to get read of a stat() invokation where the
error condition was not checked (spotted by coverity).

7 years agoRemove optimization that avoids drawing some math inset cells.
Jean-Marc Lasgouttes [Fri, 24 Feb 2017 22:25:40 +0000 (23:25 +0100)]
Remove optimization that avoids drawing some math inset cells.

It is not clear that the optimization is a gain, but it is clear that
it has a cost: some elements of formulas will not be present in the
position cache.

Fixes bug #10520.

7 years agoMake InsetMathNest::editXY more robust
Jean-Marc Lasgouttes [Fri, 24 Feb 2017 22:58:53 +0000 (23:58 +0100)]
Make InsetMathNest::editXY more robust

If no reasonable cell has been found to put the cursor in (maybe
because the cell exist but is not in the cache), exit gracefully.

Fixes bug #10520

7 years agoDo not use the global variable `formats' in Formats class
Jean-Marc Lasgouttes [Mon, 13 Mar 2017 10:39:26 +0000 (11:39 +0100)]
Do not use the global variable `formats' in Formats class

Using this global variable in the class is clearly a bug. If we wanted
to avoid doing it by mistake, the variable should be moved to the LyX
singleton.

Also add an underscore to the private variable formatlist_.

7 years agoFix problem noted at bug #10582.
Richard Heck [Sun, 12 Mar 2017 20:43:15 +0000 (16:43 -0400)]
Fix problem noted at bug #10582.

When we have a name with more than two parts, but no "von",
it was coming out as, e.g.:
Obama, Barack Hussain Obama
i.e., with the last name appearing twice.

Also adds a check for names without spaces, which would have given:
Pele, Pele

This was not the original issue at #10582, so that bug is still
open (though I cannot reproduce it).

7 years agoWhitespace and const'ing.
Richard Heck [Sun, 12 Mar 2017 20:27:36 +0000 (16:27 -0400)]
Whitespace and const'ing.

7 years agoFix compilation with 5 <= qt < 5.4
Guillaume Munch [Sat, 11 Mar 2017 21:21:11 +0000 (22:21 +0100)]
Fix compilation with 5 <= qt < 5.4

7 years agoCompilation fix
Jean-Marc Lasgouttes [Sat, 11 Mar 2017 19:51:39 +0000 (20:51 +0100)]
Compilation fix

It is actually better to compile code before pushing changes...

7 years agoLimit the size of strings we read from RCS
Jean-Marc Lasgouttes [Sat, 11 Mar 2017 19:46:32 +0000 (20:46 +0100)]
Limit the size of strings we read from RCS

This calms down Coverity which fears than an evil RCS repository would break LyX.

7 years agoUpdate sk.po
Kornel Benko [Sat, 11 Mar 2017 09:15:32 +0000 (10:15 +0100)]
Update sk.po

7 years agode.po
Juergen Spitzmueller [Sat, 11 Mar 2017 08:21:06 +0000 (09:21 +0100)]
de.po

7 years agoWhen catching exception, give error on STDERR
Scott Kostyshak [Fri, 10 Mar 2017 22:11:58 +0000 (17:11 -0500)]
When catching exception, give error on STDERR

The error is reported in the GUI, but for the terminal we must write
explicitly to STDERR.

For a specific example of this type of exception, see the previous
commit, 72c3dbd.

7 years agoChange a warning to an error if missing include
Scott Kostyshak [Fri, 10 Mar 2017 20:38:27 +0000 (15:38 -0500)]
Change a warning to an error if missing include

If an included file is not found, it seems impossible that the final
output would be correct. Before this commit, when exporting on the
command line, LyX would create the PDF and exit with a zero error
code so unless the user was monitoring the terminal output, they
would not know there is a problem.

This change is consistent with 1a374a93.

7 years agoNonsense for whoever insists on using gcc4.6 & qt4.8 in 2017
Guillaume Munch [Fri, 10 Mar 2017 23:11:02 +0000 (00:11 +0100)]
Nonsense for whoever insists on using gcc4.6 & qt4.8 in 2017

7 years agoRemove legacy FileMonitor
Guillaume Munch [Fri, 10 Mar 2017 21:41:48 +0000 (22:41 +0100)]
Remove legacy FileMonitor

7 years agoReplace FileMonitor with FileMonitor2 in RenderPreview
Guillaume Munch [Thu, 9 Mar 2017 21:44:07 +0000 (22:44 +0100)]
Replace FileMonitor with FileMonitor2 in RenderPreview

7 years agoReplace FileMonitor with FileMonitor2 in GraphicsCacheItem
Guillaume Munch [Mon, 6 Mar 2017 22:16:04 +0000 (23:16 +0100)]
Replace FileMonitor with FileMonitor2 in GraphicsCacheItem

Remove dead code

7 years agoClarify dialog
Guillaume Munch [Sun, 5 Mar 2017 22:55:59 +0000 (23:55 +0100)]
Clarify dialog

7 years agoDisable edition when external modifications are detected
Guillaume Munch [Wed, 1 Mar 2017 21:03:44 +0000 (22:03 +0100)]
Disable edition when external modifications are detected

Introduce a distinction between being read-only and having the read-only flag. A
buffer is read-only if either it has been externally modified or if it has the
read-only flag.

7 years agoNotification of external modification inspired by gedit
Guillaume Munch [Wed, 1 Mar 2017 23:41:02 +0000 (00:41 +0100)]
Notification of external modification inspired by gedit

7 years agoNew LFUN buffer-external-modification-clear
Guillaume Munch [Wed, 1 Mar 2017 20:16:37 +0000 (21:16 +0100)]
New LFUN buffer-external-modification-clear

7 years agoClean-up
Guillaume Munch [Wed, 1 Mar 2017 19:32:33 +0000 (20:32 +0100)]
Clean-up

7 years agoDisplay externally modified status
Guillaume Munch [Tue, 28 Feb 2017 21:58:44 +0000 (22:58 +0100)]
Display externally modified status

7 years agoWhitespace
Guillaume Munch [Tue, 28 Feb 2017 21:24:51 +0000 (22:24 +0100)]
Whitespace

7 years agoImplement real-time detection of external modifications
Guillaume Munch [Sun, 5 Mar 2017 19:12:07 +0000 (20:12 +0100)]
Implement real-time detection of external modifications

7 years agoImplement FileMonitor as a wrapper for QFileSystemWatcher
Guillaume Munch [Mon, 27 Feb 2017 22:46:10 +0000 (23:46 +0100)]
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.

7 years agoPreventive fix inspired from ~
Guillaume Munch [Fri, 10 Mar 2017 22:20:29 +0000 (23:20 +0100)]
Preventive fix inspired from ~

7 years agoAmend 63be456c8
Guillaume Munch [Fri, 10 Mar 2017 21:55:33 +0000 (22:55 +0100)]
Amend 63be456c8

Fix crash when clicking on math previews

7 years agoAdd option to ignore a parameter in InsetCommandParams
Guillaume Munch [Tue, 14 Feb 2017 20:16:39 +0000 (21:16 +0100)]
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.

7 years agobuffer-export default
Guillaume Munch [Thu, 9 Mar 2017 22:35:27 +0000 (23:35 +0100)]
buffer-export default

7 years ago Update fr.po
jpc [Fri, 10 Mar 2017 18:14:09 +0000 (19:14 +0100)]
       Update fr.po

7 years ago Class agutex.cls is obsolete: information given in the LyX template
jpc [Fri, 10 Mar 2017 18:11:22 +0000 (19:11 +0100)]
     Class agutex.cls is obsolete: information given in the LyX template

7 years agoExperiment: limit size of strings read from lib/symbols
Jean-Marc Lasgouttes [Fri, 10 Mar 2017 15:29:09 +0000 (16:29 +0100)]
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.

7 years agoSmall cleanup to LayoutBox and CategorizedCombo
Jean-Marc Lasgouttes [Fri, 10 Mar 2017 14:54:27 +0000 (15:54 +0100)]
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.

7 years agoAdd label 'defaultoutput' to export tests using document default output format
Kornel Benko [Fri, 10 Mar 2017 13:32:21 +0000 (14:32 +0100)]
Add label 'defaultoutput' to export tests using document default output format

7 years agoBe careful about unparsable bibtex years
Jean-Marc Lasgouttes [Fri, 10 Mar 2017 09:32:38 +0000 (10:32 +0100)]
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).

7 years agoAnother unreachable `return' that is not needed
Jean-Marc Lasgouttes [Thu, 9 Mar 2017 14:12:03 +0000 (15:12 +0100)]
Another unreachable `return' that is not needed

The compilers we use now do not care, but coverity complains.

7 years agoRemove unreachable return statements
Jean-Marc Lasgouttes [Thu, 9 Mar 2017 14:05:33 +0000 (15:05 +0100)]
Remove unreachable return statements

They were needed long ago to avoid gcc warnings, but now all they do
is create coverity warnings.

7 years agoHandle the case where doc_bv is null
Jean-Marc Lasgouttes [Thu, 9 Mar 2017 13:41:27 +0000 (14:41 +0100)]
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.

7 years agoAvoid dereferencing an iterator at the end
Jean-Marc Lasgouttes [Thu, 9 Mar 2017 13:26:17 +0000 (14:26 +0100)]
Avoid dereferencing an iterator at the end

Found by coverity, could lead to a crash with badly formed kmap file.

7 years agoAdd a comment.
Richard Heck [Wed, 8 Mar 2017 22:34:07 +0000 (17:34 -0500)]
Add a comment.

7 years agoMake a test clearer
Jean-Marc Lasgouttes [Wed, 8 Mar 2017 16:03:48 +0000 (17:03 +0100)]
Make a test clearer

This should hopefully please coverity now. For some reason, the
annotation did not work. Should it be in lower case?

7 years agoMake a false positive explicit
Jean-Marc Lasgouttes [Wed, 8 Mar 2017 15:50:03 +0000 (16:50 +0100)]
Make a false positive explicit

Pleases coverity

7 years agoFix missing initialization
Jean-Marc Lasgouttes [Wed, 8 Mar 2017 15:41:42 +0000 (16:41 +0100)]
Fix missing initialization

This was already fixed after coverity report at bad511f3fe04aff4ff,
but this part was missing.

7 years agoInitialize members spotted by coverity
Jean-Marc Lasgouttes [Wed, 8 Mar 2017 15:37:26 +0000 (16:37 +0100)]
Initialize members spotted by coverity

7 years agoMake a dummier LyXRC for tex2lyx
Jean-Marc Lasgouttes [Wed, 8 Mar 2017 15:30:22 +0000 (16:30 +0100)]
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.

7 years agoDescribe the use of '*' in -e/-E CL options
Scott Kostyshak [Tue, 7 Mar 2017 08:19:03 +0000 (03:19 -0500)]
Describe the use of '*' in -e/-E CL options

The use of '*' in buffer-export was implemented at 494ce664.