Re: LyX 1.4svn with MSVC 2005

2006-08-15 Thread Joost Verburg
Index: src/support/package.C.in === --- src/support/package.C.in(revision 14695) +++ src/support/package.C.in(working copy) @@ -44,6 +44,10 @@ # include // FSFindFolder, FSRefMakePath #endif +#ifndef PATH_MAX +# define P

Re: external template for Tgif

2006-08-15 Thread Tribulations Parallèles
On Wednesday 16 August 2006 01:31, Lars Gullik Bjønnes wrote: > | I have just only a problem: if I write a lyx file for example with "g y > | y", and then VIEW->POSTSCRIPT, I obtain: "103 121 121". How can I avoid > | to obtain character codes? ;-) > > You have to create a patch that exports the p

Cntl-G causes crash in 1.4.3svn.

2006-08-15 Thread John McCabe-Dansted
Hi, is this a known bug? Pressing Cntl-G usually causes crash. Steps to reproduce: 1) Start Lyx-1.4.3svn 2) Start new document 3) Type Hello. 4) Press Cntl-G Result: /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../../include/c++/4.0.2/debug/vector:208: error: attempt to access an element in an

Re: LyX 1.4svn with MSVC 2005

2006-08-15 Thread Bo Peng
On 8/15/06, Bo Peng <[EMAIL PROTECTED]> wrote: > I'm using the boost included with LyX 1.4svn. Does 1.4 support boost 1.33.1? generated for trunk before and I will see if that patch more or less works for the branch. Hi, JMarc, Attached patch is required to compile lyx1.4.x with msvc/scons. C

Re: [PATCH] Bug 2727: LyX crashes when undoing super/subscript deletion

2006-08-15 Thread Enrico Forestieri
On Mon, Aug 14, 2006 at 05:21:49PM +0200, Jean-Marc Lasgouttes wrote: > The following patch fixes this bug for me. Indeed, the crash is gone. However, after applying this patch I still observe a weird behavior which may be reproduced by the following steps: 1) Ctrl-N (new document) 2) Shift-Ctrl

Re: It looks like you guys really are talking more than ever!

2006-08-15 Thread Paul A. Rubin
Angus Leeming wrote: No, I wrote a script to generate columnar data and then fed it into Excel 2007 Beta2. Managed to crash it twice ;-) That's why it's only a beta distribution. The production version will be able to handle an continuous unattended crash-restart-crash loop. Interesting d

Re: [PATCH] Re: note/comment eats the blank after it?

2006-08-15 Thread Lars Gullik Bjønnes
Georg Baum <[EMAIL PROTECTED]> writes: | Am Dienstag, 15. August 2006 21:05 schrieb Bo Peng: | | > What is going on with the svn server? | | I don't know. I hope Lars finds it out. It looks like it is still swapping | a lot. To get more memory is a real project... (logistic wise...) --

Re: SVN is slow as hell

2006-08-15 Thread Lars Gullik Bjønnes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: | Only two files retrieved in 10 minutes and still going on... [EMAIL PROTECTED] lyx-devel]$ time svn up [...snip...] Updated to revision 14695. real0m24.240s user0m0.216s sys 0m0.340s Ok with me. During the last days there have been p

Re: Error when displaying fr_Intro.lyx

2006-08-15 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | > "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | | Jean-Marc> I get the following messages when reading fr_Intro.lyx: | | Jean-Marc> Error returned from iconv EILSEQ An invalid multibyte | Jean-Marc> sequence has been enco

Re: external template for Tgif

2006-08-15 Thread Lars Gullik Bjønnes
Tribulations Parallèles <[EMAIL PROTECTED]> writes: | On Tuesday 15 August 2006 18:38, Lars Gullik Bjønnes wrote: | | > | > Tribulations> Here is the report of Valgrind, it terminates with a | > | > Tribulations> message of bug in LyX: | > | > | > | > And if you run it under gdb? (it would be bet

Re: [Patch] Further BufferView <-> WorkArea reorganisation

2006-08-15 Thread Enrico Forestieri
On Wed, Aug 16, 2006 at 12:05:47AM +0200, Abdelrazak Younes wrote: > Michael Gerz wrote: > > 5-b) I remember some work from Georg and Enrico about some math > > symbols. I thing Georg put a FIXME in qt4 for that. > > Done by Edwin IIRC. Nope. The FIXME is still there in QDelimiterDialog.C. --

RE: Re: [Patch] Further BufferView <-> WorkArea reorganisation

2006-08-15 Thread Leuven, E.
> >5) Some new code needs to be ported from the qt3 frontend, look at > > the svn log: 5-a) I remember the QNote thing from Martin, he even sent > > a preliminar patch for qt4 but I did not have the time to look at it > > yet. > > Not sure this was done yet, Edwin, Martin? not by me, but we sh

Re: [Patch] Further BufferView <-> WorkArea reorganisation

2006-08-15 Thread Abdelrazak Younes
Michael Gerz wrote: Abdel, I don't know the status regarding (1) - is there anything missing? Are there any changes to qt3 that haven't been ported to qt4? I think qt4 has now the same feature set as qt3 plus some more candy: And qt4 has a much nicer code base now, most notably for: How ab

Re: [Patch] Further BufferView <-> WorkArea reorganisation

2006-08-15 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Abdelrazak Younes wrote: Hello, This patch continue my tedious cleanup work. Basically it transfer most of the LyXView use from BufferView to WorkArea, most notably: LyXView::updateLayoutChoice(); LyXView::updateToolbars(); LyXView::getLyXFunc().processKeySym(key, st

Re: LyX 1.4svn with MSVC 2005

2006-08-15 Thread Bo Peng
I'm using the boost included with LyX 1.4svn. Does 1.4 support boost 1.33.1? OK. I will try to compile qt3 and see if I get the same errors. As a matter of facts, lyx1.4.x will most likely not work with msvc. A msvc patch was generated for trunk before and I will see if that patch more or less w

Re: [patch] Improving CAS support in LyX

2006-08-15 Thread Enrico Forestieri
On Tue, Aug 15, 2006 at 11:24:31AM -0500, Bo Peng wrote: > It tooks me a while to compile clisp and maxima, but I still can not > test your patch (at least it compiles though) because all screen > display and output are strange characters now, due to the ongoing > unicode business. It could also

Re: LyX 1.4svn with MSVC 2005

2006-08-15 Thread Joost Verburg
Bo Peng wrote: Did someone succeed to compile LyX 1.4svn with MSVC 2005? I keep getting compile errors in boost\libs\regex\src\w32_regex_traits.cpp: I did not try that, but are you using boost 1.32 (instead of 1.33.1)? I'm using the boost included with LyX 1.4svn. Does 1.4 support boost 1.33.

Re: LyX 1.4svn with MSVC 2005

2006-08-15 Thread Bo Peng
Did someone succeed to compile LyX 1.4svn with MSVC 2005? I keep getting compile errors in boost\libs\regex\src\w32_regex_traits.cpp: I did not try that, but are you using boost 1.32 (instead of 1.33.1)? Bo

Re: external template for Tgif

2006-08-15 Thread Tribulations Parallèles
On Tuesday 15 August 2006 18:38, Lars Gullik Bjønnes wrote: > | > Tribulations> Here is the report of Valgrind, it terminates with a > | > Tribulations> message of bug in LyX: > | > > | > And if you run it under gdb? (it would be better to use an unstripped > | > binary in this case). > | > | And

LyX 1.4svn with MSVC 2005

2006-08-15 Thread Joost Verburg
Hi, Did someone succeed to compile LyX 1.4svn with MSVC 2005? I keep getting compile errors in boost\libs\regex\src\w32_regex_traits.cpp: error C2027: use of undefined type 'boost::w32_regex_traits' Joost

Re: [Patch] Further BufferView <-> WorkArea reorganisation

2006-08-15 Thread Michael Gerz
Abdel, I don't know the status regarding (1) - is there anything missing? Are there any changes to qt3 that haven't been ported to qt4? I think qt4 has now the same feature set as qt3 plus some more candy: And qt4 has a much nicer code base now, most notably for: How about http://www.mail-a

Re: [Patch] Further BufferView <-> WorkArea reorganisation

2006-08-15 Thread Michael Gerz
Well, I compiled qt4 by myself to make sure that there is really no need to keep qt3 :-) - Original Message - From: "Georg Baum" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 15, 2006 10:19 PM Subject: Re: [Patch] Further BufferView <-> WorkArea reorganisation Am Dienstag, 15. Au

Re: SVN is slow as hell

2006-08-15 Thread Martin Vermeer
On Tue, Aug 15, 2006 at 09:53:42PM +0300, Martin Vermeer wrote: > On Tue, Aug 15, 2006 at 08:21:06PM +0200, Abdelrazak Younes wrote: > > Only two files retrieved in 10 minutes and still going on... > > > > I don't get anything out of SVN... > > [EMAIL PROTECTED] lyx-devel]$ svn up > Connection c

Re: [Patch] Further BufferView <-> WorkArea reorganisation

2006-08-15 Thread Georg Baum
Am Dienstag, 15. August 2006 21:03 schrieb Michael Gerz: > mainly replacing qt3 function calls by qt4 function calls. BTW: Last week, I > compiled qt4 on my old SuSE 9.3 machine - absolutely problem-free! No need to do that - the opensuse people provide qt4 rpms for 9.3, but they are well hidde

Re: [Patch] Further BufferView <-> WorkArea reorganisation

2006-08-15 Thread Abdelrazak Younes
Michael Gerz wrote: Hi Abdel, The same argument applies to qt3. Furthermore, qt4 is feature complete now thanks to Edwin latest Bullet patch. So please, let's just drop it. I think that Lars isn't fully against dropping qt3. In one of his recent emails (about two weeks ago), he said that the

Re: [PATCH] Re: note/comment eats the blank after it?

2006-08-15 Thread Georg Baum
Am Dienstag, 15. August 2006 21:05 schrieb Bo Peng: > What is going on with the svn server? I don't know. I hope Lars finds it out. It looks like it is still swapping a lot. Georg

Re: [PATCH] Re: note/comment eats the blank after it?

2006-08-15 Thread Bo Peng
> Done. Please don't forget trunk. I did it this morning for both trunk and 1.4.x. svn stopped after 'transmitting data ' and I had to kill the processes. Now, I am running 'svn up', and 'svn log' and get no response from the server. What is going on with the svn server? Bo

Re: [Patch] Further BufferView <-> WorkArea reorganisation

2006-08-15 Thread Michael Gerz
Hi Abdel, The same argument applies to qt3. Furthermore, qt4 is feature complete now thanks to Edwin latest Bullet patch. So please, let's just drop it. I think that Lars isn't fully against dropping qt3. In one of his recent emails (about two weeks ago), he said that there are mainly two thi

Re: SVN is slow as hell

2006-08-15 Thread Martin Vermeer
On Tue, Aug 15, 2006 at 08:21:06PM +0200, Abdelrazak Younes wrote: > Only two files retrieved in 10 minutes and still going on... > I don't get anything out of SVN... [EMAIL PROTECTED] lyx-devel]$ svn up Connection closed by 62.70.27.115 svn: Connection closed unexpectedly - Martin pgpsBHXvj

Re: [PATCH] Re: note/comment eats the blank after it?

2006-08-15 Thread Georg Baum
Am Dienstag, 15. August 2006 17:08 schrieb Bo Peng: > > Conclusion: you can apply your patch to 1.4, but remove the % before > > \end{comment} > > Done. Please don't forget trunk. Georg

Re: It looks like you guys really are talking more than ever!

2006-08-15 Thread Angus Leeming
> Angus> Data culled from http://marc.theaimsgroup.com/?l=lyx-devel > Angus> Keep it up ;-) > Did you do that by hand? No, I wrote a script to generate columnar data and then fed it into Excel 2007 Beta2. Managed to crash it twice ;-) > Interesting data. What it shows, though, is how little > di

SVN is slow as hell

2006-08-15 Thread Abdelrazak Younes
Only two files retrieved in 10 minutes and still going on...

[PATCHes] Fix bug 2068 and more

2006-08-15 Thread Jean-Marc Lasgouttes
The main goal of those patches is to fix bug 2068: [Bug 2068] Spellcheck correction of words with ligatures doubles initial character http://bugzilla.lyx.org/show_bug.cgi?id=2068 The 1.4 version does just that, but the 1.5 version does some cleanup in some code from CutAndPaste.C that was used i

Re: It looks like you guys really are talking more than ever!

2006-08-15 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Data culled from http://marc.theaimsgroup.com/?l=lyx-devel Keep Angus> it up ;-) Did you do that by hand? Interesting data. What it shows, though, is how little discussion there was in the 1.4 development cycle... JMarc

It looks like you guys really are talking more than ever!

2006-08-15 Thread Angus Leeming
Data culled from http://marc.theaimsgroup.com/?l=lyx-devel Keep it up ;-) Angus

Re: Error when displaying fr_Intro.lyx

2006-08-15 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc> I get the following messages when reading fr_Intro.lyx: Jean-Marc> Error returned from iconv EILSEQ An invalid multibyte Jean-Marc> sequence has been encountered in the input. When converting Jean-Marc> from UCS-4 to

Re: Error when displaying fr_Intro.lyx

2006-08-15 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | I get the following messages when reading fr_Intro.lyx: | | Error returned from iconv | EILSEQ An invalid multibyte sequence has been encountered in the input. | When converting from UCS-4 to UCS-2. | Input: 0xff 0xff 0xff 0xab Here the 0xff's r

Re: external template for Tgif

2006-08-15 Thread Lars Gullik Bjønnes
Tribulations Parallèles <[EMAIL PROTECTED]> writes: | On Tuesday 15 August 2006 16:49, you wrote: | | > Tribulations> Here is the report of Valgrind, it terminates with a | > Tribulations> message of bug in LyX: | > | > And if you run it under gdb? (it would be better to use an unstripped | > bin

Error when displaying fr_Intro.lyx

2006-08-15 Thread Jean-Marc Lasgouttes
I get the following messages when reading fr_Intro.lyx: Error returned from iconv EILSEQ An invalid multibyte sequence has been encountered in the input. When converting from UCS-4 to UCS-2. Input: 0xff 0xff 0xff 0xab Error returned from iconv EILSEQ An invalid multibyte sequence has been encount

Re: [patch] Improving CAS support in LyX

2006-08-15 Thread Bo Peng
> > Please find attached a patch which monotonically improves such support. > > I tested it with octave, maxima, and mathematica. Hi, Enrico, It tooks me a while to compile clisp and maxima, but I still can not test your patch (at least it compiles though) because all screen display and output

Re: external template for Tgif

2006-08-15 Thread Tribulations Parallèles
On Tuesday 15 August 2006 16:49, Jean-Marc Lasgouttes wrote: > Tribulations> Here is the report of Valgrind, it terminates with a > Tribulations> message of bug in LyX: > > And if you run it under gdb? (it would be better to use an unstripped > binary in this case). With the unstripped executable

Re: external template for Tgif

2006-08-15 Thread Tribulations Parallèles
On Tuesday 15 August 2006 16:49, you wrote: > Tribulations> Here is the report of Valgrind, it terminates with a > Tribulations> message of bug in LyX: > > And if you run it under gdb? (it would be better to use an unstripped > binary in this case). And the backtrace (Sorry): (gdb) bt #0 0xb74e

Re: [PATCH] Re: note/comment eats the blank after it?

2006-08-15 Thread Bo Peng
Conclusion: you can apply your patch to 1.4, but remove the % before \end{comment} Done. Bo

Re: external template for Tgif

2006-08-15 Thread Jean-Marc Lasgouttes
> "Tribulations" == Tribulations Parallèles <[EMAIL PROTECTED]> writes: Tribulations> Here is the report of Valgrind, it terminates with a Tribulations> message of bug in LyX: And if you run it under gdb? (it would be better to use an unstripped binary in this case). JMarc

Re: ICONV_CONST and scons

2006-08-15 Thread Bo Peng
Sorry Bo, I don't have the time to test today. The combined patch (Peter's and mine) seems correct anyway so just shove it in. Done. Now I see that it is timely to split scons for 1.4.x and 1.5.x because of these different tests. Bo

qt4: removal bitBlt()

2006-08-15 Thread Edwin Leuven
i am going to commit the attached since bitBlt() is depreciated in qt4... http://doc.trolltech.com/4.1/qimage-qt3.html#bitBlt Index: BulletsModule.C === --- BulletsModule.C (revision 14688) +++ BulletsModule.C (working copy)

Re: external template for Tgif

2006-08-15 Thread Tribulations Parallèles
On Tuesday 15 August 2006 15:06, Georg Baum wrote: > > Then have compiled LyX. > > So I obtained "lyx-qt3". When I launch it, nothing happens. > > The size of src/lyx-qt3 executable is 109M, whereas the size of the lyx > > executable of my rpm distribution is 7M. What happened? > > These are debug

[Trivial patches] remove unused stuff

2006-08-15 Thread Jean-Marc Lasgouttes
These patches remove unused stuff in both 1.4 and 1.5. Going in now. JMarc Index: src/BufferView.C === --- src/BufferView.C (revision 14684) +++ src/BufferView.C (working copy) @@ -20,7 +20,6 @@ #include "bufferlist.h" #include

Re: external template for Tgif

2006-08-15 Thread Georg Baum
Tribulations Parallèles wrote: > I have updated my svn local copy, and commented these lines in > Formats::edit(): > > /*if (filename.empty() || !fs::exists(filename)) { > .___.___Alert::error(_("Cannot edit file"), > .___.___.___bformat(_("File does not exist: %1$s"), > .

Re: More unicode problems

2006-08-15 Thread Georg Baum
Lars Gullik Bjønnes wrote: > Georg Baum <[EMAIL PROTECTED]> > writes: > > | Could we not simply put the template solution in? Even if you'd like the > | other one better, this is code for an older compiler that will go away > | some day. I just don't think that we should drop support for gcc 3.3

Re: More unicode problems

2006-08-15 Thread Lars Gullik Bjønnes
Georg Baum <[EMAIL PROTECTED]> writes: | Could we not simply put the template solution in? Even if you'd like the | other one better, this is code for an older compiler that will go away some | day. I just don't think that we should drop support for gcc 3.3 now. Yes. Put that in for now. I'll hav

Re: More unicode problems

2006-08-15 Thread Georg Baum
Lars Gullik Bjønnes wrote: > You are saying that we cannot have a > > template<> char_traits in the header file? At least it does not work for some of the functions. I tried that, and the result was multiple definitions of at least char_traits::eof()eof() at the linking stage. There were more, b

Re: More unicode problems

2006-08-15 Thread Lars Gullik Bjønnes
Georg Baum <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: | | > Georg Baum <[EMAIL PROTECTED]> | > writes: | > | > | Am Montag, 14. August 2006 20:11 schrieb Lars Gullik Bjønnes: | > | > Ahh... that is what you have done. | > | > But we should not add the templates ourself I think. O

Re: r14661 - in /lyx-devel/trunk/src: BufferView_pimpl.C fron...

2006-08-15 Thread Jean-Marc Lasgouttes
> "Peter" == Peter Kümmel <[EMAIL PROTECTED]> writes: Peter> Using boost but complaining about a simple template class, I Peter> still can't understand this. What was soo complicated with Peter> my solution? Has LyX become a Visual Basic project? It's a Peter> rhetoric question, no answer

Re: [PATCH] bug 2630: lyx crashes on marking a line in a table

2006-08-15 Thread Abdelrazak Younes
Peter Kümmel wrote: - new document - insert 1x1 table - move curser into the table - press a key OK, thanks, I can confirm this. The problem is as JMarc said a missing updateMetric in the insettabular. I don't understand why it worked in the past. I seem to remember that it worked two month

Re: Bug: qt4 mouse wheel scrolling

2006-08-15 Thread Abdelrazak Younes
Peter Kümmel wrote: Scrolling with the mouse wheel does not work for the qt4 frontend. Is this a bug of GuiWorkArea? No I think it's a general bug of the scrolling (most probably my fault). Setting "Cursor follows scrolling" in the preference settings should help. Abdel.

Re: More unicode problems

2006-08-15 Thread Georg Baum
Lars Gullik Bjønnes wrote: > Georg Baum <[EMAIL PROTECTED]> > writes: > > | Am Montag, 14. August 2006 20:11 schrieb Lars Gullik Bjønnes: > | > Ahh... that is what you have done. > | > But we should not add the templates ourself I think. Only the explit > | > specialization of the functions. > |

Re: external template for Tgif

2006-08-15 Thread Tribulations Parallèles
On Tuesday 15 August 2006 08:44, Georg Baum wrote: > Your use case makes indeed sense. I am not sure whether we can generally > drop the check for existing files in Formats::edit(), or whether we need to > add a flag. I have updated my svn local copy, and commented these lines in Formats::edit()

Re: [Patch] Further BufferView <-> WorkArea reorganisation

2006-08-15 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Hello, This patch continue my tedious cleanup work. Basically it transfer most of the LyXView use from BufferView to WorkArea, most notably: LyXView::updateLayoutChoice(); LyXView::updateToolbars(); LyXView::getLyXFunc().processKeySym(key, state); LyXView::dispatch(cm

Re: ICONV_CONST and scons

2006-08-15 Thread Abdelrazak Younes
Bo Peng wrote: > My apologies. A long while ago, I post the .m4 code of ICONV_CONST > test and ask if someone who knows m4 could explain it to me. Abdel > provided a patch that seemed to work and I applied it. Sorry about that Bo but this was my first python patch ever IIRC ;-) The test was ab

Re: [Patch] Further BufferView <-> WorkArea reorganisation

2006-08-15 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> I would like to commit it and wait for some kind soul to Abdelrazak> verify that it also compile and work for qt3 and gtk. gtk build: - when resizing, the screen goes black. If I click somewhe

Re: r14661 - in /lyx-devel/trunk/src: BufferView_pimpl.C fron...

2006-08-15 Thread Peter Kümmel
Lars Gullik Bjønnes wrote: > Peter Kümmel <[EMAIL PROTECTED]> writes: > > | Reflecting: > | > | So much trouble because of ICONV_CONST. > | > | We should have used my initial solution: > | > | template > | struct optional_p2p_const_cast > | { > | optional_p2p_const_cast(T const ** p2p) : t_

Re: r14661 - in /lyx-devel/trunk/src: BufferView_pimpl.C fron...

2006-08-15 Thread Lars Gullik Bjønnes
Peter Kümmel <[EMAIL PROTECTED]> writes: | Reflecting: | | So much trouble because of ICONV_CONST. | | We should have used my initial solution: | | template | struct optional_p2p_const_cast | { | optional_p2p_const_cast(T const ** p2p) : t_p2p(p2p) {} | operator T const **() { return t_