Commit Graph

27969 Commits

Author SHA1 Message Date
Peter Kümmel
05881b8ff5 cmake: better developer defaults enable NLS, build debug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38693 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-10 18:30:43 +00:00
Peter Kümmel
ce4cdf2258 cmake: enable in-source CMakeLists.txt files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38692 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-10 18:04:49 +00:00
Peter Kümmel
897edc10c0 cmake: move CMakeLists.txt into source dir (multiple steps)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38691 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-10 17:44:41 +00:00
Peter Kümmel
8102ae514f cmake: restore history
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38690 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-10 17:21:45 +00:00
Peter Kümmel
80b12deb54 cmake: restore history
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38689 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-10 17:21:15 +00:00
Peter Kümmel
aa35a7033f cmake: restore history
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38688 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-10 17:16:49 +00:00
Abdelrazak Younes
33f7c028a2 gcc 4.5 warning fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38687 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-10 15:03:49 +00:00
Enrico Forestieri
cdb1f9a000 Add tooltips
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38686 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-10 10:08:02 +00:00
Uwe Stöhr
db67e55e5f lyx_2_1.py: add missing SVN EOL entry and SCons entry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38683 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-10 00:04:31 +00:00
Enrico Forestieri
1717ef203c Introduce the possibility of setting a prefix for the TEXINPUTS environment
variable. This is done in the preferences, much like as the PATH prefix.
A single '.' in the paths will get replaced with the current document dir
and also non-absolute paths will be prefixed with that dir.

The default semantics of TEXINPUTS apply, such that, for example, if a
path is terminated with a double slash, all subdirectories will be also
searched by both the TeX engine and ancillary programs such as dvi
previewers or dvips. As an example, if the prefix is set to ".:figs", the
TEXINPUTS variable will be set as ".:<docdir>:<docdir>/figs:$ORIGTEXINPUTS",
where <docdir> is the document directory.

The initial '.' is necessary to address the actual current dir (this will
be the temp dir at preview time), while if TEXINPUTS was initially unset,
such that $ORIGTEXINPUTS is empty, a colon (or semicolon on Windows) will
end the path list. This is very important, because we don't want to replace
the system directories but to complement them and, in order to do that, an
empty element has to be present in the list. Indeed, according to the
TEXINPUTS semantics, an empty element means the standard search path.
This works whether TEXINPUTS is originally set or not, because if the
original TEXINPUTS starts with a colon (meaning that the standard search
path is wanted there) we will have an empty element at that point,
otherwise the final colon will simply serve as a path separator.

Of course, on Windows a ';' has to be used as a path separator. LyX will
take care of transforming the platform path list into one understandable
by the TeX engine. For example, this will be the case for a Cygwin version
of LyX using a native Windows TeX engine or viceversa. I tested all of
this and it works for me.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38681 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 23:25:51 +00:00
Richard Heck
161e60b7ea Fix for bug #7319. This is an attempt to fix the bug cheaply.
We clear the refernce cache so that we won't get conflicts with labels
that get pasted into the buffer. We should update this before its being
empty matters. If not (i.e., if we encounter bugs), then this should
instead be:
  cur.buffer().updateBuffer();
But we'll try the cheaper solution in trunk.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38680 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 23:23:24 +00:00
Peter Kümmel
3219d4c142 cmake: small msvc fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38679 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 22:31:13 +00:00
Kornel Benko
de46406e8d Moved development/cmake/CMakeLists.txt into top level
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38678 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 21:54:31 +00:00
Richard Heck
3526e67e24 We need to do the update here simply because of the inset deletion.
It must have been wrong before the updateBuffer() refactoring, too.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38676 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 21:50:35 +00:00
Stephan Witt
154b06766c last revised version
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38672 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 18:59:29 +00:00
Richard Heck
45b57a0966 Fix crash reported by John Kennan.
We are missing the updateBuffer() call when we go through
mouseEventDispatch(). A consequence of the massive updateBuffer()
refactoring. Wish it had been caught before...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38667 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 18:05:31 +00:00
Julien Rioux
757def9c5e Add lyx_2_1.py to the distribution; it was added in r38570.
Probably needs to be added to scons, too.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38666 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 17:58:03 +00:00
Richard Heck
9ec3c86d66 Make the script more flexible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38661 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 15:36:59 +00:00
Richard Heck
30864d048f Add stats updating script to development/tools/.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38659 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 15:27:10 +00:00
Richard Heck
3cc6e03378 Add patch-premable to development tools.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38656 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 15:10:24 +00:00
Edwin Leuven
3034bc266d ensure that latex output for decimally aligned columns does NOT depend on cached metrics info (the member decimal_width)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38655 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 12:33:32 +00:00
Pavel Sanda
170020ecc8 Take news entry into trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38654 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 06:34:17 +00:00
Tommaso Cucinotta
c23eef3abf Still addressing #6560: instead of cloning the BufferParams, which might cause
a number of unforeseen issues (like the inheritance of the default master, as
pointed out in http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg168225.html),
now we simply set the language into the search & replace buffers.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38647 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 23:51:44 +00:00
Enrico Forestieri
5791d41544 MikTeX's kpsewhich doesn't mention "kpathsea emulation" anymore.
On Cygwin, the most reliable way to tell what is the right path
separator to use is a direct check.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38646 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 21:09:38 +00:00
Georg Baum
a3a80a4e17 Forgot this (why did this file not show up in svn diff?)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38645 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 20:39:22 +00:00
Pavel Sanda
84f3f109d3 typo, closing #7427
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38642 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 12:28:54 +00:00
Georg Baum
eed26c2ca6 Fix bug #7511 by moving the old label instead of creating a new one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38640 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 11:19:55 +00:00
Georg Baum
8356e9e2c0 remove dead code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38638 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 10:56:53 +00:00
Georg Baum
467bf135e9 Partial fox for bug #6622: Display \undertilde on screen correctly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38636 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 10:23:56 +00:00
Georg Baum
32f6c066cc Partial fox for bug #6622: Display \utilde on screen correctly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38633 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 10:06:33 +00:00
Kornel Benko
1d23f8bf79 While using internal libintl, make sure it is uptodate before linking lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38631 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 09:19:12 +00:00
Kornel Benko
f66746be70 Update INSTALL.cmake
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38629 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 08:48:13 +00:00
Georg Baum
12f8e7a6f9 Small improvement for bug #7509 as suggested by JMarc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38628 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 08:23:42 +00:00
Kornel Benko
2ff1181e52 Make installed python scripts executable (as in autotools)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38627 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 07:28:19 +00:00
Richard Heck
1493191f77 Fix bug #7500: There is presently no way in the GUI to update local
layout to the current format.

This probably isn't needed for branch, since local layout was a
"hidden feature" prior to 2.0, and one can update local layout by:
  (a) copying to a file
  (b) running layout2layout on that file
  (c) pasting back into LyX
So we should probably just leave this in trunk.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38622 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 00:54:17 +00:00
Richard Heck
33ee5c9ae8 Fix bug #7499. The problem here is that there was no way for the
inset to know that the BibTeX data had changed. So we introduce a
Buffer-wide variable that we can query for that information.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38619 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-07 23:02:53 +00:00
Kornel Benko
ed67b9a6b5 * sk.po
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38616 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-07 17:06:39 +00:00
Peter Kümmel
fc5060a5e6 fix win32 linker errors
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38614 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-07 13:01:30 +00:00
Richard Heck
5855043599 Initial work to fix bug involving embedded macros and
XHTML output.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38613 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-07 11:57:08 +00:00
Peter Kümmel
0ba6efb073 cmake: CMAKE_SOURCE_DIR has changed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38612 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-07 11:55:06 +00:00
Peter Kümmel
8f993bfcf1 cmake: update readmes, we have now a top level cmake file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38611 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-07 11:47:30 +00:00
Peter Kümmel
f81f512390 cmake: remove obsolete comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38610 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-07 11:34:22 +00:00
Peter Kümmel
7dd0314c72 cmake: remove 2.8 warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38609 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-07 11:34:20 +00:00
Kornel Benko
d096463859 New cmake build from top source dir
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38608 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-07 10:38:22 +00:00
Kornel Benko
45b61c6ecf 1.) Corrected internal compilation for Libintl
2.) Changed cmake-files accordingly
Patch from Jean-Marc Lasgouttes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38606 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-06 19:24:54 +00:00
Stephan Witt
b65d0c087b let the compiler do the maths to compute array size
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38599 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-06 06:49:55 +00:00
Richard Heck
47a95c1094 Fix bug #7531, also reported by Jim Oldfield. Need to use master
buffer's counters.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38597 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-05 20:31:47 +00:00
Richard Heck
d1f15298f7 Start the clean up of the updateMacros() calls by moving the necessary
calls into the file writing routines and out of doExport(). They were in
both places before: Called once in doExport, and then again in the e.g.
writeLaTeXSource()---and then again, actually, in validate().

It is possible this will reveal some missing updateBuffer() calls
somewhere. But it should somewhat speed up View>Source, since we now do
not do an extra set of such calls in that routine. Rather, we rely upon
the Buffer's having been made up to date first, by the updateBuffer()
call after dispatch.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38596 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-05 20:18:16 +00:00
Richard Heck
96e86c8113 Fix thinko in lyx2lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38595 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-05 19:51:10 +00:00
Kornel Benko
7187d8d8f0 * sk.po
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38593 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-05 17:22:37 +00:00