Re: [Patch] non-existent CharStyle crash

2005-05-02 Thread Georg Baum
Martin Vermeer wrote: > On Sat, Apr 30, 2005 at 03:25:09PM +0200, Juergen Spitzmueller wrote: >> What does it do with the contents of such charstyles? Transform it to >> containing layout? Also, shouldn't the warning be the same as for missing >> layouts? (cf. the recent discussion on bug 1591).

[Patch] Re: [Patch] non-existent CharStyle crash

2005-05-02 Thread Martin Vermeer
On Mon, May 02, 2005 at 09:16:40AM +0200, Georg Baum wrote: > Martin Vermeer wrote: > > > On Sat, Apr 30, 2005 at 03:25:09PM +0200, Juergen Spitzmueller wrote: > >> What does it do with the contents of such charstyles? Transform it to > >> containing layout? Also, shouldn't the warning be the same

Re: [Patch] non-existent CharStyle crash

2005-05-02 Thread Juergen Spitzmueller
Georg Baum wrote: > >> What does it do with the contents of such charstyles? Transform it to > >> containing layout? Also, shouldn't the warning be the same as for > >> missing layouts? (cf. the recent discussion on bug 1591). > > IMO it should be transformed to standard layout with a warning (as i

Re: "buffer-write" crash w/ readonly (bug 1873)

2005-05-02 Thread Lars Gullik Bjønnes
Juergen Spitzmueller <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> | LyX crashes when you try to save read-only documents.  The reason is an >> | assert within boost::filesystem. >> >> There is something you are not telling... >> >> Does lyx allow you to save a read-only document or

link problem in compiling lyx-1.3.5

2005-05-02 Thread wolfram
Hello, when I try to compile lyx-1.3.5 (and probably a the very last link stage) I get the error attached below. It seems as if something from the boost lib is missing, but I have a fresh version installed. Any help would be appreciated. Thanks. wolfram CutAndPaste.o(.text+0x11): In function `__t

Re: [Patch] Re: [Patch] non-existent CharStyle crash

2005-05-02 Thread Martin Vermeer
On Mon, May 02, 2005 at 12:00:34PM +0300, Martin Vermeer wrote: ... > Here is a solution that is nearly as good. What it does is that upon > re-load, it turns it into an "Undef:" type charstyle inset, red for > attention. Yes, the lack of warning at the time of conversion is > unpleasant, but th

Re: link problem in compiling lyx-1.3.5

2005-05-02 Thread Angus Leeming
wolfram wrote: > Hello, > > when I try to compile lyx-1.3.5 (and probably a the very last > link stage) I get the error attached below. > It seems as if something from the boost lib is missing, but > I have a fresh version installed. > Any help would be appreciated. > Thanks. > wolfram What comp

Re: "buffer-write" crash w/ readonly (bug 1873)

2005-05-02 Thread Juergen Spitzmueller
Lars Gullik Bjønnes wrote: > | LyX allows me to save a read-only document (actually, in 1.3 a popup > | appears and tells me to chose a different name). > > Shouldn't onlu "save as" work, and 'save' just tell you that this is a > read-only docuemnt? Probably. We can set lfun "buffer-write" to "Noo

Re: [Patch] Re: [Patch] non-existent CharStyle crash

2005-05-02 Thread Juergen Spitzmueller
Martin Vermeer wrote: > Ehh, the _proper_ patch is this... I kind of like the idea (untested), but I think you should trigger an Alert which tells the user that some charstyle insets haven't been found etc. Jürgen

Re: link problem in compiling lyx-1.3.5

2005-05-02 Thread wolfram
Angus Leeming <[EMAIL PROTECTED]> writes: > What compiler are you using and what machine/OS/distribution? > > Angus > - my version of gcc > temporary/lyx-1.3.5> gcc -v Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.4/specs Configured with: ../co

Re: [Patch] Re: [Patch] non-existent CharStyle crash

2005-05-02 Thread Georg Baum
Martin Vermeer wrote: > Not if I have to do it... and shouldn't it be called > SwitchCharStylesBetweenClasses then? (And would you call the adding of > more warts upon warts 'fixing'?) While CutAndPaste.C is messy I think that SwitchLayoutsBetweenClasses is quite readable. > Here is a solution t

Re: link problem in compiling lyx-1.3.5

2005-05-02 Thread Georg Baum
wolfram wrote: > my distro: SuSE 9.2 I use that too without any problems. I could create an rpm for 1.3.5 if we don't have one already. Georg

On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Angus Leeming
Rob, Asger the changes I've just committed will probably break your build. To help you resurrect things, I attach the current config.h.in from which config.h is generated. I also attach the changes from the previous config.h.in. The new macros HAVE_DUP2, HAVE_SELECT, HAVE_SOCKET and USE_ISPELL sho

Remaining tasks before a Windows port is complete

2005-05-02 Thread Angus Leeming
FYI, this is a list of those things that should still be addressed before we can say that the port to Windows is finished: * backport the just-committed changes to the 1.3.x branch. * address those things that have broken compilation with MSVC (1.4.x only). * add configure code to pass the -DQT_

Re: [Patch] Re: [Patch] non-existent CharStyle crash

2005-05-02 Thread Martin Vermeer
On Mon, May 02, 2005 at 03:23:46PM +0200, Georg Baum wrote: > Martin Vermeer wrote: > > > Not if I have to do it... and shouldn't it be called > > SwitchCharStylesBetweenClasses then? (And would you call the adding of > > more warts upon warts 'fixing'?) > > While CutAndPaste.C is messy I think t

Re: [Patch] Re: [Patch] non-existent CharStyle crash

2005-05-02 Thread Martin Vermeer
On Mon, May 02, 2005 at 03:25:39PM +0200, Juergen Spitzmueller wrote: > Martin Vermeer wrote: > > Ehh, the _proper_ patch is this... > > I kind of like the idea (untested), but I think you should trigger an Alert > which tells the user that some charstyle insets haven't been found etc. Unfortuna

Two Bibliography layouts

2005-05-02 Thread Martin Vermeer
There are two layouts by the name of Bibliography, one in stdlists.inc, and one in stdstruct.inc. What makes this interesting is that they look rather different... will the real Bibliography please stand up? - Martin pgpv4aNPEtPTY.pgp Description: PGP signature

Re: Two Bibliography layouts

2005-05-02 Thread Angus Leeming
Martin Vermeer wrote: > > There are two layouts by the name of Bibliography, one in stdlists.inc, > and one in stdstruct.inc. What makes this interesting is that they look > rather different... will the real Bibliography please stand up? The Bibliography is totally hosed at the moment, so choice

Re: Two Bibliography layouts

2005-05-02 Thread Juergen Spitzmueller
Angus Leeming wrote: > > There are two layouts by the name of Bibliography, one in stdlists.inc, > > and one in stdstruct.inc. What makes this interesting is that they look > > rather different... will the real Bibliography please stand up? > > The Bibliography is totally hosed at the moment, so ch

Re: Two Bibliography layouts

2005-05-02 Thread Martin Vermeer
On Mon, May 02, 2005 at 05:32:38PM +0100, Angus Leeming wrote: > Martin Vermeer wrote: > > > > > There are two layouts by the name of Bibliography, one in stdlists.inc, > > and one in stdstruct.inc. What makes this interesting is that they look > > rather different... will the real Bibliography p

Re: [Patch] non-existent CharStyle crash

2005-05-02 Thread Georg Baum
Martin Vermeer wrote: > On Mon, May 02, 2005 at 03:25:39PM +0200, Juergen Spitzmueller wrote: >> I kind of like the idea (untested), but I think you should trigger an >> Alert which tells the user that some charstyle insets haven't been found >> etc. > > Unfortunately that's not easy to do under

The new iterators and spell checking

2005-05-02 Thread Angus Leeming
This bug report http://bugzilla.lyx.org/show_bug.cgi?id=1876 says that LyX 1.4.x will not spell check the very first word of the document if the cursor is placed at the beginning of that paragraph (just before the first letter at position 0). The offending code, together with the proposed patch i

RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Rob Bearman
> the changes I've just committed will probably break your > build. To help you > resurrect things, I attach the current config.h.in from which > config.h is > generated. I also attach the changes from the previous > config.h.in. The > new macros HAVE_DUP2, HAVE_SELECT, HAVE_SOCKET and USE_ISPEL

RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Rob Bearman
In case you're interested in my config.h and if it helps resolve any confusion from my previous message, I'm including that here for your reference. Thanks Rob config.h Description: config.h

RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Angus Leeming
Rob Bearman wrote: > In case you're interested in my config.h and if it helps resolve any > confusion from my previous message, I'm including that here for your > reference. Is this true? /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 -- Angus

RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Angus Leeming
Rob Bearman wrote: >> the changes I've just committed will probably break your >> build. > I've made these undefined in config.h and verified that there's nothing > else new. Note that dup2, select, and socket do exist for this > environment. Am I setting these to undefined just to make sure serv

RE: RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Rob Bearman
> Looking at your error messages below, I'm frankly surprised > by things going > wrong in lyxserver.C Why are you compiling code invoking > mkfifo and fcntl. > Is HAVE_MKFIFO defined? I'm only using what was defined in the original commit of config.h (I've always depended on the kindness of str

RE: RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Rob Bearman
> How interesting! HAVE_SELECT and HAVE_SOCKET are definitely > not defined > using mingw/minsys. > > HAVE_DUP2 is defined on mingw/minsys (my very bad), so we really need > another test to prevent USE_ISPELL from being defined. I'll > think on it. > > Looking at your error messages below, I'm

Re: The new iterators and spell checking

2005-05-02 Thread Alfredo Braunstein
Angus Leeming wrote: > This bug report > http://bugzilla.lyx.org/show_bug.cgi?id=1876 > > says that LyX 1.4.x will not spell check the very first word of the > document if the cursor is placed at the beginning of that paragraph (just > before the first letter at position 0). > > The offending co

RE: RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Angus Leeming
Rob Bearman wrote: > Thanks. I've got things building now by adding Spellbase.C (not sure why > it wasn't there in the first place), I forgot to tell you to add it perhaps? > and turning off mkfifo in the config.h file. I still have dup2, > select, socket, and ispell turned off. Looking at supp

Re: [Patch] non-existent CharStyle crash

2005-05-02 Thread Martin Vermeer
On Mon, May 02, 2005 at 07:00:05PM +0200, Georg Baum wrote: > Martin Vermeer wrote: > > > On Mon, May 02, 2005 at 03:25:39PM +0200, Juergen Spitzmueller wrote: > >> I kind of like the idea (untested), but I think you should trigger an > >> Alert which tells the user that some charstyle insets have

RE: RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Angus Leeming
Angus Leeming wrote: >> Would you like me to package things up for a commit (lyx.vcproj, >> win32_kludge.diff, config.h), or do you want me to try other things >> first? > > Let's get the tests right for these things above first, then we'll go on > to see what we need to do to get rid of win32_klu

RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Angus Leeming
> I'm including my revised version of win32_kludge.diff. I think that you should modify your config.h so that HAVE_SYS_TIME_H is not defined... --- src/frontends/LyXView.C 2005/04/26 10:30:22 1.52 +++ src/frontends/LyXView.C 2005/04/26 15:39:37 @@ -39,8 +39,10 @@ #include +#ifnd

RE: RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Rob Bearman
> I think that you should modify your config.h so that > HAVE_SYS_TIME_H is not > defined... Ok... > > --- src/frontends/LyXView.C 2005/04/26 10:30:22 1.52 > +++ src/frontends/LyXView.C 2005/04/26 15:39:37 > @@ -39,8 +39,10 @@ > > #include > > +#ifndef _WIN32 > #ifdef HAVE_SY

RE: RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Rob Bearman
> > Looking at the other bits of win32_kludge.diff, can you > > confirm that 'time' > > and 'isalpha' are not in namespace std? > > > > Correct. I goofed. 'isalpha' *is* in namespace std.

RE: RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Rob Bearman
> > > Looking at the other bits of win32_kludge.diff, can you > > > confirm that 'time' > > > and 'isalpha' are not in namespace std? > > > > > > > Correct. > > I goofed. 'isalpha' *is* in namespace std. > Argh. The compiler doesn't agree with the docs and says isalpha is not a member of std.

RE: RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Angus Leeming
Rob Bearman wrote: >> What, exactly, do you need from windows.h here? Do you have a >> sys/utime.h ? >> >> --- src/buffer.C18 Apr 2005 17:43:08 - 1.615 >> +++ src/buffer.C18 Apr 2005 17:37:02 - >> @@ -78,7 +78,11 @@ >> #include >> #include >> >> -#include >> +#i

RE: RE: RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Rob Bearman
> Please add these (with appropriate define/undef) to your config.h: > > /* Define to 1 if you have the header file. */ > /* #undef HAVE_SYS_UTIME_H */ > /* Define to 1 if you have the header file. */ > #define HAVE_UTIME_H 1 > > and check that the attached rob.diff does the job. (It may be >

Re: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Angus Leeming
On Monday 02 May 2005 21:46, Rob Bearman wrote: > > > > Looking at the other bits of win32_kludge.diff, can you > > > > confirm that 'time' > > > > and 'isalpha' are not in namespace std? > > > > > > Correct. > > > > I goofed. 'isalpha' *is* in namespace std. > > Argh. The compiler doesn't agree wi

RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Rob Bearman
> Anyway, I read it that win32_kludge.diff should now be something like > the attached. Correct? > > Angus > > Yes, that's just what I have. Rob

Re: lyx-devel /: ChangeLog configure.ac src/: ChangeLog buffer ...

2005-05-02 Thread Michael Schmitt
[EMAIL PROTECTED] wrote: Iterate slowly towards out-of-the-box compilation with MSVC. Have you checked that all these patches work equally well on a *NIX machine? It would be funny if the Windows port worked better than the *NIX version in the end :-) Michael (who is compiling 1.4 wit

RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Angus Leeming
Rob Bearman wrote: > In case you're interested in my config.h and if it helps resolve any > confusion from my previous message, I'm including that here for your > reference. > > Thanks > Rob Rob, what happens if you define CXX_GLOBAL_CSTD in your config.h ? Does it mean you no longer need these

Re: The new iterators and spell checking

2005-05-02 Thread Felix-Antoine Bourbonnais
Alfredo Braunstein wrote: > Angus Leeming wrote: > > >>This bug report >>http://bugzilla.lyx.org/show_bug.cgi?id=1876 >> >>says that LyX 1.4.x will not spell check the very first word of the >>document if the cursor is placed at the beginning of that paragraph (just >>before the first letter at p

Re: lyx-devel /: ChangeLog configure.ac src/: ChangeLog buffer ...

2005-05-02 Thread Angus Leeming
On Monday 02 May 2005 22:24, Michael Schmitt wrote: > [EMAIL PROTECTED] wrote: > > Iterate slowly towards out-of-the-box compilation with MSVC. > > Have you checked that all these patches work equally well on a *NIX > machine? Yes. Sort of. I've been using 'touch -t' on the generated config.h

RE: RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Rob Bearman
> Rob, what happens if you define CXX_GLOBAL_CSTD in your config.h ? > Does it mean you no longer need these two kludges, or does it > break things > elsewhere? > > Index: src/DepTable.C > === > RCS file: /usr/local/lyx/cvsroot/lyx-d

Re: lyx-devel /: ChangeLog configure.ac src/: ChangeLog buffer ...

2005-05-02 Thread Michael Schmitt
Angus Leeming wrote: Michael (who is compiling 1.4 with MinGW right now) Brave man. Given mingw's slow compile times and the fact that linking against qt3.dll takes over one hour on my box (up from ten minutes for 1.3.x), I think that I'd have waited for the end of any changes to configure.

Re: lyx-devel /: ChangeLog configure.ac src/: ChangeLog buffer ...

2005-05-02 Thread Angus Leeming
On Monday 02 May 2005 23:00, Michael Schmitt wrote: > Angus Leeming wrote: > >>Michael (who is compiling 1.4 with MinGW right now) > > > >Brave man. Given mingw's slow compile times and the fact that > > linking against qt3.dll takes over one hour on my box (up from > > ten minutes for 1.3.x), I th

RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Angus Leeming
Rob Bearman wrote: > I'm including my revised version of win32_kludge.diff. Given that we have: src/frontends/qt2/QLyXKeySym.C: typedef map EncodingMap; EncodingMap encoding_map; The change below is obviously an improvement, even though there's no reason why a sane compiler shouldn't comp

RE: RE: On compiling LyX 1.4 on Windows with MSVC.

2005-05-02 Thread Rob Bearman
> Given that we have: > src/frontends/qt2/QLyXKeySym.C: > typedef map EncodingMap; > EncodingMap encoding_map; > > The change below is obviously an improvement, even though > there's no reason > why a sane compiler shouldn't compile the original too. > > Nonetheless, can I ask you to con

Re: link problem in compiling lyx-1.3.5

2005-05-02 Thread wolfram
A second glance at the link-problem I had yesterday shows that it is related to the compiler switches I give to './configure': with: CXXFLAGS='-O3 -march=pentium4m' CFLAGS='-O3 -march=pentium4m' or: --enable-optimization=O3 CXXFLAGS='-O3 -march=pentium4m' CFLAGS='-O3 -march=pentium4m' compilati