Re: bug reading math macros with 1.4.0cvs

2006-01-24 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Jean-Marc Lasgouttes wrote: >> I do not think this one is needed: if you already have a hullinset >> object to copy from, math has to be initialized already, methinks. Juergen> You obviously know this constructor stuff m

Re: bug reading math macros with 1.4.0cvs

2006-01-23 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > I do not think this one is needed: if you already have a hullinset > object to copy from, math has to be initialized already, methinks. You obviously know this constructor stuff much better than me. So I'd say apply your patch if it works for you (it does for me). J

Re: bug reading math macros with 1.4.0cvs

2006-01-23 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Also sprach Jean-Marc Lasgouttes: >> What about the following patch? Juergen> Looks good and works for me. However, given your explanation, Juergen> I think there's also an initMath() call missing in Juergen> math_hullin

Re: bug reading math macros with 1.4.0cvs

2006-01-21 Thread Juergen Spitzmueller
Also sprach Jean-Marc Lasgouttes: > What about the following patch? Looks good and works for me. However, given your explanation, I think there's also an initMath() call missing in math_hullinset. See attached patch. Other than that, I think you should apply your patch. Jürgen Index: src/mathed

Re: bug reading math macros with 1.4.0cvs

2006-01-18 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Jean-Marc Lasgouttes wrote: >> The following patch indeed fixes the problem, but then the attached >> file takes forever to load. Juergen, could you have a look? Juergen> Jean-Marc, isn't the attached patch sufficient? I

Re: bug reading math macros with 1.4.0cvs

2006-01-15 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > The following patch indeed fixes the problem, but then the attached > file takes forever to load. Juergen, could you have a look? Jean-Marc, isn't the attached patch sufficient? It fixes the delay of your patch, and the test file loads fine. I cannot test much more;

Re: bug reading math macros with 1.4.0cvs

2006-01-12 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: >  MathMacroTemplate::MathMacroTemplate(string const & nm, int numargs, > string const & type, MathArray const & ar1, MathArray const > & ar2) : MathNestInset(2), numargs_(numargs), name_(nm), type_(type) { > +   initMath(); > + > if (numargs_

Re: bug reading math macros with 1.4.0cvs

2006-01-12 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Jean-Marc> Juergen, I suspect this is related to the delayed math > Jean-Marc> initialization patch you produced. Yes, definitely. > Could look look whether > Jean-Marc> something needs to be done for macros? > > The following patch indeed fixes the problem, but th

Re: bug reading math macros with 1.4.0cvs

2006-01-12 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > I think I know what happens: the macros refuse to load if there is no > plain math inset before them. I get the same here. > Juergen, I suspect this is related to the delayed math initialization > patch you produced. Could look look whether something needs to be do

Re: bug reading math macros with 1.4.0cvs

2006-01-12 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc> I think I know what happens: the macros refuse to load if Jean-Marc> there is no plain math inset before them. Jean-Marc> Juergen, I suspect this is related to the delayed math Jean-Marc> initialization patch you pro

Re: bug reading math macros with 1.4.0cvs

2006-01-12 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> the Userguide contains macros... that worked rsn? Jean-Marc> It still works. However, if I create a file with the same Jean-Marc> \newcommand{\macro}{a+b} as

Re: bug reading math macros with 1.4.0cvs

2006-01-12 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> the Userguide contains macros... that worked rsn? It still works. However, if I create a file with the same \newcommand{\macro}{a+b} as in UG, it does not load. I am puzzled. Could other check whether this file loads? JMarc

Re: bug reading math macros with 1.4.0cvs

2006-01-11 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Is it just me, or is it impossible to read files containing math | macros? | | I get: | | fantomas: ./devbuild/src/lyx ~/newfile3.lyx | Language code:en_US | Setting new locale for Qt:iso8859-1 | cannot read macro from '[unknown n][unknown w][un