Re: [PATCH 13x, 14x] mangling temporary file names

2004-12-16 Thread Georg Baum
Kuba Ober wrote: > I vaguely recall this idea being raised at one point or another, but can't > the temporary file names be simply generated from some kind of a unique > global counter, maybe merged with PID? We have a global counter, it is prepended to the mangled name. Otherwise it would not be

Re: Configure problems for lyx-140 on Mac

2004-12-16 Thread Andreas Vox
Angus Leeming <[EMAIL PROTECTED]> writes: > > Bennett Helm wrote: > > > Trying to build the latest CVS of lyx-140 in Mac OS X forced rerunning > > configure, which fails. I get variants of the following error with each > > of ostream, istream, sstream, locale, ios, and Aiksaurus: Same with me.

Running LyX/Win32 -dbg init

2004-12-16 Thread Angus Leeming
As promised Jean-Marc here is the output from lyx -dbg init. This is with the 'remainder of Ruurd's changes' patch applied to the current 13x CVS. I've also applied today's two proposals 'mangling temporary file names' and 'determining the name of the LyX system dir'. $ cd qt3/bin $ ~/lyx-13x/buil

Re: [PATCH 13x, 14x] determining the name of the LyX system dir

2004-12-16 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > | @@ -217,8 +217,19 @@ bool setLyxPaths() > | bool followlink; > | do { > | // Path of binary/../share/name of binary/ > | - searchpath += NormalizePath(AddPath(binpath, "../share/") + > | - On

Re: [PATCH 13x, 14x] mangling temporary file names

2004-12-16 Thread Kuba Ober
On czwartek 16 grudzieÅ 2004 11:59 am, Angus Leeming wrote: > Given a file name "C:/foo/bar", I believe that the name of the temporary > file should be "C__foo_bar". Ie, the drive name should be included in the > mangling. Ruurd was addressing this idea in his patch, but he simply > removed the dri

Re: [PATCH 13x, 14x] mangling temporary file names

2004-12-16 Thread Georg Baum
Angus Leeming wrote: > Do you agree that my approach is better? If so, are you happy with the > attached patches for the 13x and 14x trees? Yes and yes. Georg

Re: [PATCH 13x, 14x] determining the name of the LyX system dir

2004-12-16 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | @@ -217,8 +217,19 @@ bool setLyxPaths() | bool followlink; | do { | // Path of binary/../share/name of binary/ | - searchpath += NormalizePath(AddPath(binpath, "../share/") + | - OnlyFilename(binnam

[PATCH 13x, 14x] determining the name of the LyX system dir

2004-12-16 Thread Angus Leeming
Ok, Jean-Marc. Here is a refinement of Ruurd's patch to determine the name of the LyX system directory from the name of the LyX binary. Are you happy with this or should we discuss it some more? -- AngusIndex: src/ChangeLog === RCS

[PATCH 13x, 14x] mangling temporary file names

2004-12-16 Thread Angus Leeming
Given a file name "C:/foo/bar", I believe that the name of the temporary file should be "C__foo_bar". Ie, the drive name should be included in the mangling. Ruurd was addressing this idea in his patch, but he simply removed the drive prefix from the mangled name. Do you agree that my approach i

Re: The remainder of Ruurd's changes

2004-12-16 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > | class os { > | public: > | static void init(int argc, char * argv[]); >> > | static string const & binpath(); > | static string const & binname(); > | static string const & homepath(); > | static string const & nulldev(); > | pr

Re: The remainder of Ruurd's changes

2004-12-16 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Thanks for the commentary, Jean-Marc. I like the ideas of a Angus> hierarchy of "os" classes and of getting rid of GetEnvPath. Angus> I'll continue the process of small, self contained patches. Sure. Angus> I think that, as a rule

Re: The remainder of Ruurd's changes

2004-12-16 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: >>> A little digression: instead of our current os:: namespace, >>> wouldn't it be better to have a hierarchy of os_foo classes with >>> static methods, so that some environment could inherit others (like >>> cygwin = unix + some stuff). The some of the code from this in

Re: The remainder of Ruurd's changes

2004-12-16 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: >@@ -623,6 +623,8 @@ string const InsetGraphics::prepareFile( >// without dots and again with ext >temp_file = ChangeExtension( >subst(temp_file, ".", "_"), ext_tmp); >+ //Remove drive l

Re: The remainder of Ruurd's changes

2004-12-16 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: >@@ -289,7 +293,7 @@ void LyX::init(bool gui) >do { >// Path of binary/../share/name of binary/ >searchpath += NormalizePath(AddPath(binpath, >"../share/") + >-OnlyFilename(b

Re: The remainder of Ruurd's changes

2004-12-16 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Jean-Marc Lasgouttes wrote: >> A little digression: instead of our current os:: namespace, >> wouldn't it be better to have a hierarchy of os_foo classes with >> static methods, so that some environment could inherit others (like >>

Re: The remainder of Ruurd's changes

2004-12-16 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Jean-Marc Lasgouttes wrote: >> A little digression: instead of our current os:: namespace, wouldn't >> it be better to have a hierarchy of os_foo classes with static >> methods, so that some environment could inherit others (like cygwin = >> unix + some

Re: [patch] encoding error

2004-12-16 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > > "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: > > Juergen> Martin Vermeer wrote: > >> These are meant to be the units Ångström and Ørsted. So you need a > >> Swedish Å (\AA is OK I think) and a Danish Ø (\O). > > Juergen> Patch attached. The only

Re: Configure problems for lyx-140 on Mac

2004-12-16 Thread Angus Leeming
Bennett Helm wrote: > Trying to build the latest CVS of lyx-140 in Mac OS X forced rerunning > configure, which fails. I get variants of the following error with each > of ostream, istream, sstream, locale, ios, and Aiksaurus: > > checking ostream usability... no > checking ostream presence... ye

Configure problems for lyx-140 on Mac

2004-12-16 Thread Bennett Helm
Trying to build the latest CVS of lyx-140 in Mac OS X forced rerunning configure, which fails. I get variants of the following error with each of ostream, istream, sstream, locale, ios, and Aiksaurus: checking ostream usability... no checking ostream presence... yes configure: WARNING: ostream:

[PATCH 14x only] removing redundant using directives.

2004-12-16 Thread Angus Leeming
Cruft left over from the 'OS abstraction of "HOME" and the null device' patch. Thanks to Jean-Marc for spotting this stuff. Committing now... AngusIndex: src/ChangeLog === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v r

Re: [patch] bug 1214

2004-12-16 Thread Juergen Spitzmueller
Martin Vermeer wrote: > E.g., the real numbers R is sent as "mathbb R" and then dispatched as > "\mathbb" (creating a little blue font box), followed by "R" (to be put > inside it). > > This *used* to work, but doesn't anymore. Jürgen, is this what you are > fixing? Basically yes. Jürgen P.S.: I

Re: The remainder of Ruurd's changes

2004-12-16 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > A little digression: instead of our current os:: namespace, wouldn't > it be better to have a hierarchy of os_foo classes with static > methods, so that some environment could inherit others (like cygwin = > unix + some stuff). The some of the code from this init metho

Re: [patch] encoding error

2004-12-16 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Martin Vermeer wrote: >> These are meant to be the units Ångström and Ørsted. So you need a >> Swedish Å (\AA is OK I think) and a Danish Ø (\O). Juergen> Patch attached. The only drawback is that it gets rendered as Jue

Re: [PATCH] Hyphenation, the latex way

2004-12-16 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Isn't it possible to define \mesg only when \typeout's argument Angus> starts "Babel": Jean-Marc> I thought about that (and I do not know how to do it...), Jean-

Re: [PATCH] Hyphenation, the latex way

2004-12-16 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Tue, Dec 07, 2004 at 04:32:59PM +, Angus Leeming wrote: >> Isn't it possible to define \mesg only when \typeout's argument >> starts "Babel": >> >> {\def\typeout#1{if #1 starts with "Babel" then >> \global\def\mesg{#1}} \the

Re: sideways tables/figures

2004-12-16 Thread Alfredo Braunstein
Edwin Leuven wrote: >> What doc was that? > > it crashes on the attached... | \layoutÂCaption | | AverageÂworkingÂtimeÂrelativeÂtoÂfull-time,ÂbyÂageÂandÂgenderÂ(1999-2002) THe problem is a caption in a top paragraph. In top paragraphs the inset_owner is not set on reading and so it crashes.

Re: [patch] bug 1214

2004-12-16 Thread Martin Vermeer
On Thu, 2004-12-16 at 15:29, Jean-Marc Lasgouttes wrote: > > "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: > > Juergen> http://bugzilla.lyx.org/show_bug.cgi?id=1214 This one fixes a > Juergen> bug in xforms' math panel. mathed should always get only one > Juergen> dispatch, not

Re: [patch] bug 1214

2004-12-16 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Jean-Marc Lasgouttes wrote: Juergen> http://bugzilla.lyx.org/show_bug.cgi?id=1214 This one fixes a Juergen> bug in xforms' math panel. mathed should always get only one Juergen> dispatch, not two separate ones. The qt fro

Re: [patch] bug 1214

2004-12-16 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Juergen> http://bugzilla.lyx.org/show_bug.cgi?id=1214 This one fixes a > Juergen> bug in xforms' math panel. mathed should always get only one > Juergen> dispatch, not two separate ones. The qt frontend does this > Juergen> since genesis. > > What kind of values can la

Re: The remainder of Ruurd's changes

2004-12-16 Thread Angus Leeming
Thanks for the commentary, Jean-Marc. I like the ideas of a hierarchy of "os" classes and of getting rid of GetEnvPath. I'll continue the process of small, self contained patches. >@@ -113,6 +113,7 @@ string const fromqstr(QString const & st > { >QTextCodec * codec = QTextCod

Re: The remainder of Ruurd's changes

2004-12-16 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | What can unistd.h do that no header does? Lars> unixy things. Lots of stuff just have a look at the header on Lars> your own box. Lars> The header are basically just the C-standard headers in C++ Lars> wrapping. So the uni stan

Re: The remainder of Ruurd's changes

2004-12-16 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | | ? > | Lars> No such thing. > | What can unistd.h do that no header does? unixy things. Lots of stuff just have a look at the header on your own box. The header are basically

Re: The remainder of Ruurd's changes

2004-12-16 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | ? Lars> No such thing. What can unistd.h do that no header does? JMarc

Re: [patch] bug 1214

2004-12-16 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> http://bugzilla.lyx.org/show_bug.cgi?id=1214 This one fixes a Juergen> bug in xforms' math panel. mathed should always get only one Juergen> dispatch, not two separate ones. The qt frontend does this Juergen> since genesi

Re: [patch] encoding error

2004-12-16 Thread Juergen Spitzmueller
Martin Vermeer wrote: > These are meant to be the units Ångström and Ørsted. So you need a > Swedish Å (\AA is OK I think) and a Danish Ø (\O). Patch attached. The only drawback is that it gets rendered as "AA" and "O". I don't know how to add the commands \AA and \O to lib/symbols or whereever.

[patch] bug 1214

2004-12-16 Thread Juergen Spitzmueller
http://bugzilla.lyx.org/show_bug.cgi?id=1214 This one fixes a bug in xforms' math panel. mathed should always get only one dispatch, not two separate ones. The qt frontend does this since genesis. OK? Jürgen P.S.: This is also a 1.3.6 candidate Index: FormMathsBitmap.C

Re: sideways tables/figures

2004-12-16 Thread Edwin Leuven
What doc was that? it crashes on the attached... regards, ed. #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{mathptmx} \usepackage[scaled=0.9]{helvet} \usepackage{courier} \usepackage{rotating} \date{} \usepackage{dcol

Re: The remainder of Ruurd's changes

2004-12-16 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: |+#ifdef HAVE_UNISTD_H |+# include |+#endif |+ | ? No such thing. -- Lgb

Re: The remainder of Ruurd's changes

2004-12-16 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> As promised, I'm posting the remainder of the changes that are Angus> needed to compile LyX with MinGW. This patch is much less Angus> intrusive than the original because the offensive os_win32.h is Angus> how #included only by thos

Re: The remainder of Ruurd's changes

2004-12-16 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > | As promised, I'm posting the remainder of the changes that are needed > | to compile LyX with MinGW. This patch is much less intrusive than the > | original because the offensive os_win32.h is how #included only by > | those .C files that actually need it. > > I am n

Re: sideways tables/figures

2004-12-16 Thread Jean-Marc Lasgouttes
> "Edwin" == Edwin Leuven <[EMAIL PROTECTED]> writes: Edwin> PPS trying to open a doc, lyx crashes: What doc was that? JMarc

Re: [PATCH 13x, 14x] configure tests for mkdir

2004-12-16 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> It turned out that this solution was incorrect. Compilation Angus> failed on the Windows machine because the definition of a mkdir Angus> macro in config.h conflicted with another mkdir macro defined Angus> in mingw/include/os.h. A

Re: [PATCH 13x, 14x] remove FileInfo::getNumberOfLinks

2004-12-16 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> As suggested by JMarc. Committing now... Actually, I was advocating removing the whole information line, but it may have been too drastic :) JMarc

Re: MSVC wrapper

2004-12-16 Thread Ruurd Reitsma
"Angus Leeming" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Incidentally, Ruurd, do you need this wrapper at all? Why not patch the > scripts in config to generate Makefiles that 'just do the right thing'? I did try that at first, but I wasn´t very successfull. If remember correc

Re: The remainder of Ruurd's changes

2004-12-16 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | As promised, I'm posting the remainder of the changes that are needed to | compile LyX with MinGW. This patch is much less intrusive than the | original because the offensive os_win32.h is how #included only by | those .C files that actually need it. I

Re: MSVC wrapper

2004-12-16 Thread Angus Leeming
Ruurd Reitsma wrote: > By request, this the wrapper tool that I use to compile LyX with MSVC. > All thanks to the Coin3D project. Cygwin is used to run the autotools and > make, but compilation is native Win32 with MSVC. > > IMO this is the most time efficient way to do it. I have fiddled with >