[Patch] More enable switches

2005-01-03 Thread Lars Gullik Bjønnes
This patch adds configure switches for: - precompiled headers - concept checks - libstdc++ debug mode I'll commit this later today. Index: config/lyxinclude.m4 === RCS file: /usr/local/lyx/cvsroot/lyx-devel/config/lyx

Re: [PATCH 13x, 14x] Testing for OS support for symbolic links

2005-01-03 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | There are no symbolic links on Windows. These patches add HAVE_LSTAT and | HAVE_READLINK to config.h and use 'em. > > OK to apply? To 13x too, Jean-Marc? I am not quite fond of the code... | Index: src/support/FileInfo.C |

No S_IXGRP or S_IXOTH on Windows

2005-01-03 Thread Angus Leeming
os_win32.h has these two defines #define S_IXGRP S_IXUSR #define S_IXOTH S_IXUSR They are used only here char FileInfo::typeIndicator() const { ... if (S_ISREG(buf_.st_mode) && (buf_.st_mode & (S_IEXEC | S_IXGRP| S_IXOTH))) } where S_IEXEC is a synonym

Re: LyX 1.3 with MinGW

2005-01-03 Thread Angus Leeming
Michael Schmitt wrote: > Anyway, the problem seems to be related to font_metrics::ascent: > > case MENU_SEPARATOR: > { > // A triangle the width and height of an 'x' > int w = font_metrics::width('x', font); > int ox = font_metrics::width(' ', font) + int(x); >

Re: Latest LyX on Latest Cygwin

2005-01-03 Thread Kayvan A. Sylvan
On Mon, Jan 03, 2005 at 11:20:22AM +0100, Jean-Marc Lasgouttes wrote: > > "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: > > Kayvan> On Sat, Jan 01, 2005 at 01:38:07PM +, Angus Leeming wrote: > >> The GUI stuff is icing that will take 10 minutes; I'm happy to do > >> that. Howeve

Re: LyX 1.3 with MinGW

2005-01-03 Thread Michael Schmitt
Hi all, But all this code is commented out, isn't it? You are right. My fault :-( Actually the problem with this code is that it is unreadable. Indeed! Anyway, the problem seems to be related to font_metrics::ascent: case MENU_SEPARATOR: { // A triangle the width and height of an 'x'

[PATCH 13x, 14x] getting rid of lib/configure.cmd

2005-01-03 Thread Angus Leeming
lib/configure.cmd is a wildly out of date OS/2 file. The patch gets rid of it and ensures that lib/configure is invoked correctly under Windows. (Windows doesn't check for '#! /bin/sh' on the first line of the script and so doesn't recognize it as a shell script.) OK to apply? To 13x too, Jean-Mar

[PATCH 13x, 14x] Testing for OS support for symbolic links

2005-01-03 Thread Angus Leeming
There are no symbolic links on Windows. These patches add HAVE_LSTAT and HAVE_READLINK to config.h and use 'em. OK to apply? To 13x too, Jean-Marc? -- AngusIndex: config/configure.ac === RCS file: /usr/local/lyx/cvsroot/lyx-devel/co

Re: configure test for OS support for symbolic links?

2005-01-03 Thread Angus Leeming
Angus Leeming wrote: > The question is, what's a reasonable configure test for the existence of > symbolic links? Should I just add tests that will generate HAVE_LSTAT and > HAVE_READLINK? If so, will these do the trick? > > LYX_CHECK_DECL(lstat,unistd.h) > LYX_CHECK_DECL(readlink,unistd.h) I ad

Re: link error on SuSE 9.2

2005-01-03 Thread Dieter Jurzitza
Hallo Georg, nur so'n Versuch: gibt es bei Dir das Verzeichnis /usr/src/linux? Bei mir hat das nämlich dazu geführt, daß sich cdrecord nicht hat bauen lassen, da fälschlicherweise Kernel-Includes anstelle von den eigentlich benötigten Includes angezogen worden sind. Nur so eine Idee ... Bis dann

lyx2lyx patch

2005-01-03 Thread Jose' Matos
Hi, this is an intermediate patch to make lyx2lyx more robust in the stable versions. This patch makes all the filter have the same call syntax. I will apply it tomorrow if no one objects. The next phase implies to catch exceptions if the lyx2lyx version is stable. --

configure test for OS support for symbolic links?

2005-01-03 Thread Angus Leeming
I've currently got this nastiness in os_win32.h: #define S_ISLNK(m) 0 #define lstat stat inline int readlink(const char *, char *, int) {return -1;} Seems to me that the code that uses these should be rewritten to use a HAVE_SYMBOLIC_LINKS macro. I append the affected pieces of code. The quest

MacOS testers...

2005-01-03 Thread Angus Leeming
Re-reading everybody's answers to my queries over the last couple of weeks, it appears that a concensus has been reached about where to put everything: Andreas Vox wrote: > As a reminder, the directory structure for MacOS apps is something like: > > / > LyX.app/ > Contents/ >

Re: \underrrightarrow not working

2005-01-03 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Thu, Nov 25, 2004 at 02:52:58PM +, Angus Leeming wrote: >> Actually, it's something of a conscious decision. Andre didn't want >> to force the user to use AMSMath. Maybe he uses a package that >> defines \underrightarrow that

Re: link error on SuSE 9.2

2005-01-03 Thread Georg Baum
Kornel Benko wrote: > I have no problems on Suse 9.2. Recompiling everything may help ... Of course I did a 'make clean' before and rerun autogen.sh and configure. > gcc: 3.3.4-11 > autoconf: 2.59-78, I had to remove the cache-directories > "./lib/reLyX/autom4te.cache" and "./autom4te.cache" I

Re: link error on SuSE 9.2

2005-01-03 Thread Kornel Benko
On Monday 03 January 2005 13:16, Georg Baum wrote: > Did anybody compile LyX successfully on SuSE 9.2? Does anybody have a clue > how to fix this? > I have no problems on Suse 9.2. Recompiling everything may help ... gcc: 3.3.4-11 autoconf: 2.59-78, I had to remove the cache-dire

Re: Setting LyX's paths, try 2.

2005-01-03 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Having read your flurry of mails this morning, I changed it. Angus> There didn't seem to be any need to return a list of Angus> possible choices. If you use Windows or MacOS X, then the Angus> system lyxdir is "../Resources" and it'

Re: Setting LyX's paths, try 2.

2005-01-03 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > In what you sent, I have: > > // The list of possible directories are relative to the path of the LyX > binary. > list const possible_relative_system_lyxdirs() > Is it the same version? Having read your flurry of mails this morning, I changed it. There didn't seem

Re: Setting LyX's paths, try 2.

2005-01-03 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Jean-Marc Lasgouttes wrote: >> - what is the intent of using "../share" in non-posix packagings? >> To >> make things work when the packaging was actually posix? I think we >> should rather alow people to use --with-packaging=posix 

Re: Setting LyX's paths, try 2.

2005-01-03 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > - what is the intent of using "../share" in non-posix packagings? To > make things work when the packaging was actually posix? I think we > should rather alow people to use --with-packaging=posix on osx or > win32, when they actually want that. The nice thing about it

Re: Setting LyX's various paths --- request for testers

2005-01-03 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Angus> Ok, Jean-Marc. I propose that on Windows machines we do > Angus> something similar to Ghostscript: $ ls /mnt/windowsXP/Program\ > Angus> Files/Ghostscript\ 8.33/gs8.33/ bin doc examples lib Resource > Angus> uninstal.txt > > We can do that, but not everybody is

link error on SuSE 9.2

2005-01-03 Thread Georg Baum
My machine was upgraded to SuSE 9.2, and I can't link LyX 1.3 anymore: g++ -g -O -W -Wall -o lyx BufferView.o BufferView_pimpl.o Bullet.o Chktex.o CutAndPaste.o DepTable.o FloatList.o Floating.o FuncStatus.o InsetList.o LColor.o LaTeX.o LaTeXFeatures.o LyXAction.o MenuBackend.o paragraph_funcs.o P

Re: [patch] small mathed fixes

2005-01-03 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Mon, Dec 27, 2004 at 08:03:40PM +0100, Juergen Spitzmueller wrote: >> the patch reenables LFUN_{SUB|SUPER}SCRIPT and thus the insertion of scripts >> via Insert->Special Formatting. > | Fine with me. > >> [...] >> I'll leave all those to André (I do

Re: LFUN_MATH_MODE

2005-01-03 Thread Andre Poenitz
On Sun, Dec 26, 2004 at 03:47:36PM +0100, Juergen Spitzmueller wrote: > Andre Poenitz wrote: > > There is also a check for the argument "on" in math_nestinset.C. I > > > > > guess André forgot to check for that argument in other places (text3.C et > > > al.). > > > > Indeed. Would be nice if you co

Re: [patch] small mathed fixes

2005-01-03 Thread Andre Poenitz
On Mon, Dec 27, 2004 at 08:03:40PM +0100, Juergen Spitzmueller wrote: > the patch reenables LFUN_{SUB|SUPER}SCRIPT and thus the insertion of scripts > via Insert->Special Formatting. Fine with me. > [...] > I'll leave all those to André (I do not have time to dig deeper into mathed > now). For

Re: [PATCH] Cure some compilation warnings

2005-01-03 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> Try it out. If it works I am ok with it (with a comment) > | OK, I am going to commit the following, then. ok -- Lgb

Re: [PATCH] Cure some compilation warnings

2005-01-03 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Try it out. If it works I am ok with it (with a comment) OK, I am going to commit the following, then. JMarc Index: src/frontends/xforms//ChangeLog === RCS file:

Re: [PATCH] Cure some compilation warnings

2005-01-03 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> Try (void)var; > | Lars> in the body of the funxtion > | That would work indeed. Shall I do it? Try it out. If it works I am ok with it (with a comment) -- Lgb

Re: Setting LyX's various paths --- request for testers

2005-01-03 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Ok, Jean-Marc. I propose that on Windows machines we do Angus> something similar to Ghostscript: $ ls /mnt/windowsXP/Program\ Angus> Files/Ghostscript\ 8.33/gs8.33/ bin doc examples lib Resource Angus> uninstal.txt We can do that,

Re: [PATCH] Cure some compilation warnings

2005-01-03 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Try (void)var; Lars> in the body of the funxtion That would work indeed. Shall I do it? JMarc

Re: Setting LyX's paths, try 2.

2005-01-03 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Ok, here's the current state of play. I now have something that Angus> works 'sensibly' under *nix and Windows. I have made no further Angus> attempt with MacOS X; it would be nice if someone stepped in to Angus> help there. (See th

Re: Latest LyX on Latest Cygwin

2005-01-03 Thread Jean-Marc Lasgouttes
> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: Kayvan> On Sat, Jan 01, 2005 at 01:38:07PM +, Angus Leeming wrote: >> The GUI stuff is icing that will take 10 minutes; I'm happy to do >> that. However, I'd prefer to leave the configure stuff to you. >> Happy? >> Kayvan> Sure.

Re: Mac OS help needed!

2005-01-03 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> Currently LyX 1.4.0 uses /Users/NAME/Library/Preferences/LyX, Bennett> but ~/Application Support/LyX is fine, too. And it is actually a better choice, since Preferences seems to be only for Apple-style prefs. JMarc

Re: LyX 1.3 with MinGW

2005-01-03 Thread Jean-Marc Lasgouttes
> "Michael" == Michael Schmitt <[EMAIL PROTECTED]> writes: Michael> I also looked at QPainter::drawPolyline(...) and I was a bit Michael> astonished by its complexity. The X Window function looks Michael> simple but the Windows port adds a lot of lines of codes. In Michael> particular, the fol