Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Enrico Forestieri
On Mon, May 15, 2006 at 11:55:33PM +0200, Jean-Marc Lasgouttes wrote: > OK, here is what I had in mind. The fixCommand helper looks a bit long > but this makes its intent clear I think. > > How does this fare in windows? I tested it on cygwin. I only have what I expect to see in the View menu an

Aspell "personal" files on Win XP

2006-05-15 Thread Paul A. Rubin
Hi, I just noticed that LyX 1.4.1 (Win XP) puts the .aspell.en.prepl and .aspell.en.pws files in the LyX root directory (C:\Program Files\LyX141) rather than in the user home directory (C:\Documents and Settings\your name here\Application Data\LyX1.4.x). No big deal, but I was wondering if t

Re: LyX/Win and DVI Output

2006-05-15 Thread Angus Leeming
Joost Verburg <[EMAIL PROTECTED]> writes: > When I export or preview the DVI output of a document that contains a > Postscript image, LyX/Win 1.4 always copies this PS image to another > file with a name that has been generated so that it doesn't contain > spaces or other special characters. >

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc> That is the plan. I'll send a patch, and we'll see whether Jean-Marc> it works. OK, here is what I had in mind. The fixCommand helper looks a bit long but this makes its intent clear I think. How does this fare in w

Re: LyX 1.4 and Windows 98/ME

2006-05-15 Thread Luis Rivera
Joost Verburg <[EMAIL PROTECTED]> writes: > > Andre Poenitz wrote: > > Right, and it took two years or so to change that. > > > > I don't think you'd be much faster than Angus _even if > > everybody agreed_. > > OK, so the only remaining possibility is to drop Win98/Me support. In fact, it s

Re: Scons moves to its new home: development/scons

2006-05-15 Thread Enrico Forestieri
On Mon, May 15, 2006 at 10:11:04PM +0100, Jose' Matos wrote: > On Monday 15 May 2006 22:00, Enrico Forestieri wrote: > > But I am a tcsh fellow... (this is becoming quite surreal). > > If we had this talk more than 10 years ago I would point you that "*csh > considered harmful", but since we a

Re: win build help needed

2006-05-15 Thread Bo Peng
On 5/15/06, Edwin Leuven <[EMAIL PROTECTED]> wrote: > The new version has just be submitted. I guess you will still have the > re.sub problem, but linking should be fine. it breaks here: OK. I am discussing this with Abdel this morning. It seems that windows/mingw does not have, or have a diff

Re: Scons moves to its new home: development/scons

2006-05-15 Thread Jose' Matos
On Monday 15 May 2006 22:00, Enrico Forestieri wrote: > But I am a tcsh fellow... (this is becoming quite surreal). If we had this talk more than 10 years ago I would point you that "*csh considered harmful", but since we are not in the 90's I will smile with this remembrance. ;-) This is j

Re: win build help needed

2006-05-15 Thread Edwin Leuven
The new version has just be submitted. I guess you will still have the re.sub problem, but linking should be fine. it breaks here: g++ -o release\common\support\mkdir.o -c -Iboost -Isrc src\support\mkdir.C c:/programs/minGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/io.h: In func tion `

Re: Scons moves to its new home: development/scons

2006-05-15 Thread Enrico Forestieri
On Mon, May 15, 2006 at 09:08:30PM +0200, Andre Poenitz wrote: > On Mon, May 15, 2006 at 02:01:27AM +0200, Enrico Forestieri wrote: > > > Btw if you prefer "15s startup time + nice scrollbars" over > > > "<1s startup + ugly scrollbars", I probably can't help you at all. > > > > I am with you. I w

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Jean-Marc Lasgouttes
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: >> And "auto" should be set for _all_ platforms when we did not >> succeed to find a viewer. This auto value will be ignored when it >> does not make sense. Bo> Then you would like to differentiate between "" and "auto" for Bo> other platforms as

Re: win build help needed

2006-05-15 Thread Bo Peng
it linked and launched! I am glad to know this. The re.sub was troublesome when I first tackled it. I guess I need a safer way to do substitution. thanks for the help here The new version has just be submitted. I guess you will still have the re.sub problem, but linking should be fine. Yo

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Bo Peng
Bo> Currently, "should not be viewed" is denoted by "" (or possibly Bo> none), which is *not* os dependent. It is not "should not be viewed", it is "I did not find a viewer and I am not under windows". I am not quite sure, but my understanding is that for many formats (like the image one), it i

Re: win build help needed

2006-05-15 Thread Edwin Leuven
I notice this one only after I test this by myself. Abdel seems to be using a more decent (?) g++ that is clever enough (like the linux case) to link against stdc++. What you need to do is add -lstdc++ to the last step, it linked and launched! or wait five more minutes for me to submit a new v

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Jean-Marc Lasgouttes
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: >> Another possibility would be to have a special value like "never" >> or "noauto" for the viewer meaning we should not make it viewable >> even if the OS claims it can do it. Bo> "" means never, "auto" means ... >> Bo, one thing I do not like i

Re: win build help needed

2006-05-15 Thread Bo Peng
upgraded to this one (but stull need to comment out the re.sub line) I will have a look. now it compiles, but fails during linking: I notice this one only after I test this by myself. Abdel seems to be using a more decent (?) g++ that is clever enough (like the linux case) to link against st

LyX/Win and DVI Output

2006-05-15 Thread Joost Verburg
Hi, When I export or preview the DVI output of a document that contains a Postscript image, LyX/Win 1.4 always copies this PS image to another file with a name that has been generated so that it doesn't contain spaces or other special characters. Isn't it supposed to keep using the original

Re: win build help needed

2006-05-15 Thread Edwin Leuven
Bo Peng wrote: C:\svn>scons -v SCons by Steven Knight et al.: engine: v0.96.1.D001, 2004/08/23 09:55:29, by knight on casablanca Copyright (c) 2001, 2002, 2003, 2004 The SCons Foundation I am using 0.96.92. I will have a detailed look at the re.sub part tonight with win/mingw, but yo

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Bo Peng
Another possibility would be to have a special value like "never" or "noauto" for the viewer meaning we should not make it viewable even if the OS claims it can do it. "" means never, "auto" means ... Bo, one thing I do not like in your "auto" approach is that it is system-dependent. The flagg

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: >> Enrico has seen a long list of unwanted menu items and I guess they >> are all "viewable"? Your solution does not solve this problem. Georg> I think it does. We have basicaly two groups of formats: Georg> Document formats (like tex, ps, d

Re: win build help needed

2006-05-15 Thread Bo Peng
C:\svn>scons -v SCons by Steven Knight et al.: engine: v0.96.1.D001, 2004/08/23 09:55:29, by knight on casablanca Copyright (c) 2001, 2002, 2003, 2004 The SCons Foundation I am using 0.96.92. I will have a detailed look at the re.sub part tonight with win/mingw, but you may consider upg

Re: win build help needed

2006-05-15 Thread Edwin Leuven
Bo Peng wrote: So, you are under windows, using python2.4, mingw (?) and which scons version? C:\svn>scons -v SCons by Steven Knight et al.: engine: v0.96.1.D001, 2004/08/23 09:55:29, by knight on casablanca Copyright (c) 2001, 2002, 2003, 2004 The SCons Foundation C:\svn>g++ --versi

Re: Scons moves to its new home: development/scons

2006-05-15 Thread Andre Poenitz
On Mon, May 15, 2006 at 02:01:27AM +0200, Enrico Forestieri wrote: > > Btw if you prefer "15s startup time + nice scrollbars" over > > "<1s startup + ugly scrollbars", I probably can't help you at all. > > I am with you. I would still be using chimera instead of mozilla if > it had worked. But it

Re: win build help needed

2006-05-15 Thread Bo Peng
> this works now and stopped: env_subst(["release\common\version.C"], ["src\version.C.in"]) File "C:\svn\development\scons\scons_utils.py", line 67, in env_subst contents = re.sub('@'+k+'@', env.subst('$'+k).replace('\n',r'\\n\\\n'), cont ents) So, you are under windows, using pytho

Re: win build help needed

2006-05-15 Thread Edwin Leuven
Bo Peng wrote: I can not reproduce the problem here. Could you please tell me lyx rev number, 13848 and platform you are running? win xp prof with sp2 installed thanks, edwin

Re: win build help needed

2006-05-15 Thread Edwin Leuven
Edwin Leuven wrote: Can not reproduce this problem. Where do you start scons? You should either start from the top source directory with scons -f development/scons/SConstruct ... this works now and stopped: env_subst(["release\common\version.C"], ["src\version.C.in"]) scons: *** [release\c

Re: win build help needed

2006-05-15 Thread Bo Peng
this works now Good. > cd development/scons > scons yet this doesn't (is what i was doing) I can not reproduce the problem here. Could you please tell me lyx rev number, and platform you are running? Cheers, Bo

Re: win build help needed

2006-05-15 Thread Edwin Leuven
Bo Peng wrote: scons: *** Source directory must be under top of build tree. File "SConscript", line 22, in ? Can not reproduce this problem. Where do you start scons? You should either start from the top source directory with scons -f development/scons/SConstruct ... this works now or cd

Re: win build help needed

2006-05-15 Thread Bo Peng
scons: *** Source directory must be under top of build tree. File "SConscript", line 22, in ? Can not reproduce this problem. Where do you start scons? You should either start from the top source directory with scons -f development/scons/SConstruct ... or cd development/scons scons Bo

Re: Slow starting of scons...

2006-05-15 Thread Bo Peng
Not quite: msgfmt -V => crash! (it's the test in scons_utils.py) msgfmt --version" => crash! D:\cygwin\home\yns\lyx\trunk\po>msgfmt msgfmt: no input file given Try `(null) --help' for more information. But if I do: D:\cygwin\home\yns\lyx\trunk\po>msgfmt --help Usage: (null)

Re: Slow starting of scons...

2006-05-15 Thread Abdelrazak Younes
Bo Peng a écrit : D:\cygwin\home\yns\lyx\trunk\po>msgfmt bg.po D:\cygwin\home\yns\lyx\trunk\po>msgfmt ca.po D:\cygwin\home\yns\lyx\trunk\po>msgfmt cs.po Seems to work... Not quite: msgfmt -V => crash! (it's the test in scons_utils.py) msgfmt --version" => crash! D:\cygwin\hom

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Bo Peng
If that is OK with you I'd suggest that either you or Jean-Marc apply Jean-Marcs version of the patch, and I'll work from there. We would live with may view items, but I will have a patch in the next few days (or the weekend et the latest). Since JMarc's version of the patch does not solve every

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Georg Baum
Bo Peng wrote: > Let me summarize your logic (correct me if I am wrong): > > 1. noview: no view anyway (with or without viewer) > 2. can view: will show up under view if a viewer is available. Correct. > Enrico has seen a long list of unwanted menu items and I guess they > are all "viewable"?

Re: Slow starting of scons...

2006-05-15 Thread Abdelrazak Younes
Bo Peng a écrit : #include int main() { mkdir("somedir"); } This does not compile because mkdir is not defined in (it is defined in my glic extension glibc\sys\stat.h). But it is defined in : _CRTIMP int __cdecl mkdir (const char*); Abdel.

Re: Slow starting of scons...

2006-05-15 Thread Bo Peng
#undef HAVE_MKDIR But I see that MKDIR_TAKES_ONE_ARG is commented out in scons "config.h": /* #undef MKDIR_TAKES_ONE_ARG */ Under windows, mkdir should take one arg, so there is something wrong here. Please check: line 811 (?) of SConstruct # MKDIR_TAKES_ONE_ARG if conf.CheckMkdirOneA

Re: Slow starting of scons...

2006-05-15 Thread Abdelrazak Younes
Bo Peng a écrit : No. Please manually change it, and I will see what is going on. I guess you should try scons --config=force fast_start=no and see the generated config.h. I done that already, I learn fast man ;-) Abdel.

Re: Slow starting of scons...

2006-05-15 Thread Abdelrazak Younes
Abdelrazak Younes a écrit : libqt4 was compiled successfully (and very quickly :-)) but I had a compiling error: g++ -o release\common\support\path.o -c -ID:\cygwin\home\yns\lyx\trunk\boost -ID:\cygwin\home\yns\lyx\trunk\src D:\cygwin\home\yns\lyx\trunk\src\support\path.C D:\cygwin\home\yns\l

Re: Slow starting of scons...

2006-05-15 Thread Bo Peng
D:\cygwin\home\yns\lyx\trunk\po>msgfmt bg.po D:\cygwin\home\yns\lyx\trunk\po>msgfmt ca.po D:\cygwin\home\yns\lyx\trunk\po>msgfmt cs.po Seems to work... I will test this at home. I do not seem to have msgfmt installed. > Anyway, you only need to do 'scons ... qt4' to test the included moc fi

Re: Slow starting of scons...

2006-05-15 Thread Abdelrazak Younes
Bo Peng a écrit : > Yes. It also has some other improvement, like creating prefix > directory, full locale/gettext support, and some cleaning of code. Didn't you say you were having a week-end vacation? ;-) Most of are done on last Friday, and I managed to test it a bit during the weekend, wit

Re: Slow starting of scons...

2006-05-15 Thread Bo Peng
> Yes. It also has some other improvement, like creating prefix > directory, full locale/gettext support, and some cleaning of code. Didn't you say you were having a week-end vacation? ;-) Most of are done on last Friday, and I managed to test it a bit during the weekend, without sacrificing pl

Re: Slow starting of scons...

2006-05-15 Thread Abdelrazak Younes
Bo Peng a écrit : Decrease from 20s to 23s? The math seems wrong here :-) increase of course :-) I have figured out the reason. The patch disables implicit_cache if fast_start=no. This option is on all the time before. Note that fast_start means skip the configure step, and go to the build ste

Re: Slow starting of scons...

2006-05-15 Thread Bo Peng
Decrease from 20s to 23s? The math seems wrong here :-) increase of course :-) I have figured out the reason. The patch disables implicit_cache if fast_start=no. This option is on all the time before. Note that fast_start means skip the configure step, and go to the build step directly, by cach

Re: Slow starting of scons...

2006-05-15 Thread Bo Peng
| Is there any strong opinion against that? What is the change? Adding '#include "foo.moc"' at the end of 'foo.C'. This will improve compile time. Bo

Re: Slow starting of scons...

2006-05-15 Thread Lars Gullik Bjønnes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: | Bo Peng a écrit : | >> > * Adding '#include "foo.moc"' at the end of 'foo.C' | >> > will reduce compilation times by 30-40% on the | >> > average. The old scheme will not be supported in Waf | >> > and i believe scons now supports the foo.moc scheme

Re: build current svn devel with boost cvs?

2006-05-15 Thread Lars Gullik Bjønnes
Neal Becker <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: | | > Neal Becker <[EMAIL PROTECTED]> writes: | > | > | Didn't seem to work for me, lots of undefined stuff from boost | > | filesystem. Is it supposed to work? | > | > Yes... kindo... but you have to show the errors you get.

Re: Slow starting of scons...

2006-05-15 Thread Abdelrazak Younes
Bo Peng a écrit : > * Adding '#include "foo.moc"' at the end of 'foo.C' > will reduce compilation times by 30-40% on the > average. The old scheme will not be supported in Waf > and i believe scons now supports the foo.moc scheme > too. > > ## Bo: Does anydoby know this? We could maybe do that i

Re: build current svn devel with boost cvs?

2006-05-15 Thread Neal Becker
Lars Gullik Bjønnes wrote: > Neal Becker <[EMAIL PROTECTED]> writes: > > | Didn't seem to work for me, lots of undefined stuff from boost > | filesystem. Is it supposed to work? > > Yes... kindo... but you have to show the errors you get... > Lots of errors like this: package.C:(.text+0x2284)

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Bo Peng
If Enrico marks those formats as noview that will not show up in the menu. What is wrong with that? Maybe not. That property can be set by the user, or the installer. You see, the noview flag has multiple purposes, and I am not 100% sure if it is safe to turn it on for all formats *excep

Re: build current svn devel with boost cvs?

2006-05-15 Thread Lars Gullik Bjønnes
Neal Becker <[EMAIL PROTECTED]> writes: | Didn't seem to work for me, lots of undefined stuff from boost filesystem. | Is it supposed to work? Yes... kindo... but you have to show the errors you get... -- Lgb

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Jose' Matos
On Monday 15 May 2006 14:43, Bo Peng wrote: > Enrico has seen a long list of unwanted menu items and I guess they > are all "viewable"? Your solution does not solve this problem. If Enrico marks those formats as noview that will not show up in the menu. What is wrong with that? That property

Re: Scons moves to its new home: development/scons

2006-05-15 Thread Neal Becker
Bo Peng wrote: Success: scons frontend=qt3 prefix=/usr fedora FC5 x86_64

build current svn devel with boost cvs?

2006-05-15 Thread Neal Becker
Didn't seem to work for me, lots of undefined stuff from boost filesystem. Is it supposed to work?

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Bo Peng
Your ooffice example would not require any setting by the user: It would be listed as viewable format, and when ooffice is installed it will be detected as autoviewable and show up in the menu. Let me summarize your logic (correct me if I am wrong): 1. noview: no view anyway (with or without vi

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Georg Baum
Bo Peng wrote: >> A "" viewer could either mean "don't view this format" or "use the auto >> viewer". If we make it the latter (as in Jean-Marcs patch) we can use the >> noview flag that I want to introduce (and that we need anyway to get rid >> of some hardcoding) to mark those formats that shoul

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Bo Peng
A "" viewer could either mean "don't view this format" or "use the auto viewer". If we make it the latter (as in Jean-Marcs patch) we can use the noview flag that I want to introduce (and that we need anyway to get rid of some hardcoding) to mark those formats that should not be viewable at all. I

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> It is the flag thing we already discussed (and I still need to Georg> merge your comments). That means that the configuration file Georg> format will change, and that older 1.4.x versions will choke on Georg> newer configuration files.

[bug 2597] crash when go to a label

2006-05-15 Thread Uwe Stöhr
I just want to inform you that we have a new crash bug in LyX 1.4.1: http://bugzilla.lyx.org/show_bug.cgi?id=2597

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > But is this something that could go in 1.4 too? I'd like to have > autoopen in there in some way. It is the flag thing we already discussed (and I still need to merge your comments). That means that the configuration file format will change, and that older 1.4.x vers

Re: pics don't load

2006-05-15 Thread Jean-Marc Lasgouttes
> "Mark" == Kortink, Mark A <[EMAIL PROTECTED]> writes: Mark> Hi Just visited the www.lyx.org site. The screenshots on aren't Mark> loading. Hello, Could you give an URL where the screenshots are missing? JMarc

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Jean-Marc Lasgouttes
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: Bo> No time (it is still weekend :-) to test the patch. But the exact Bo> reason for the auto entries is to tell lyx we want autoview for Bo> certain formats, not for all entries with "" viewer. OK, I understand that better now. In this case, I th

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> Enrico Forestieri wrote: >> With this patch I get much more entries in the View menu. I even >> get a "View->Plain text" and a "View->LyX" which launches another >> instance of LyX on a copy of the current file in tmpdir ;-) Georg> Ig

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Georg Baum
Bo Peng wrote: > No time (it is still weekend :-) to test the patch. But the exact > reason for the auto entries is to tell lyx we want autoview for > certain formats, not for all entries with "" viewer. A "" viewer could either mean "don't view this format" or "use the auto viewer". If we make i

Re: Tables in lyx

2006-05-15 Thread Georg Baum
Lv wrote: > All used to work but do not anymore and I suspect that something was > replaced during an apt-get upgrade of some libraries it might use. > > I could not find any such behavior reported in the buglists. > If it is known is there a remedy, as this is seemingly a bug. > > I uninstalled

Re: [Final version of the Final-PATCH] win32 auto-view/edit

2006-05-15 Thread Georg Baum
Enrico Forestieri wrote: > With this patch I get much more entries in the View menu. I even get > a "View->Plain text" and a "View->LyX" which launches another instance > of LyX on a copy of the current file in tmpdir ;-) Ignore this for now. I have a nice and clean solution for that, but it sort