Re: typing is dead slow in math-environment (1.6.0svn)

2007-11-18 Thread sebastian guttenberg
I think I have to take back the claim that typing is not slow, when the macros are not defined. Apparently, I tested it in the wrong equation. In the first equation of appendix C, typing is still dead slow, even with undefined macros. So probably it's not the fault of your macros! Sorry for all th

Re: typing is dead slow in math-environment (1.6.0svn)

2007-11-18 Thread sebastian guttenberg
> Is it really slower at the document end than at the beginning? Cannot > see a big difference here. In principle I thought that there is such a relation, because in the first equation of the document, there is no dilatation at all, while at later parts there is. BUT: I just figured out, that ty

Re: typing is dead slow in math-environment (1.6.0svn)

2007-11-18 Thread Stefan Schimanski
Is it really slower at the document end than at the beginning? Cannot see a big difference here. Stefan Am 18.11.2007 um 15:35 schrieb sebastian guttenberg: Let's see. There is a hope that the 20% figure was not so precise and it's more in fact ;-) I just figured out that typing at the end

Re: typing is dead slow in math-environment (1.6.0svn)

2007-11-18 Thread sebastian guttenberg
> Let's see. There is a hope that the 20% figure was not so precise and > it's more in fact ;-) I just figured out that typing at the end of the document is not slow when I do not define the math-macros at the beginning. -sebastian -- This message has been scanned for viruses and dangerous c

Re: typing is dead slow in math-environment (1.6.0svn)

2007-11-18 Thread Stefan Schimanski
Am 18.11.2007 um 14:02 schrieb sebastian guttenberg: The macro part takes 20% of the runtime, when writing math at the document end. I already have ideas how to reduce that. Otherwise there are a lot of metrics and draw calls around taking much time. Not sure if that is related to macros at

Re: typing is dead slow in math-environment (1.6.0svn)

2007-11-18 Thread sebastian guttenberg
> The macro part takes 20% of the runtime, when writing math at the > document end. I already have ideas how to reduce that. Otherwise there > are a lot of metrics and draw calls around taking much time. Not sure > if that is related to macros at all. Aha. Thanks a lot for the info! That mea

Re: typing is dead slow in math-environment (1.6.0svn)

2007-11-17 Thread Stefan Schimanski
The macro part takes 20% of the runtime, when writing math at the document end. I already have ideas how to reduce that. Otherwise there are a lot of metrics and draw calls around taking much time. Not sure if that is related to macros at all. Stefan Am 16.11.2007 um 13:53 schrieb sebastia

Re: typing is dead slow in math-environment (1.6.0svn)

2007-11-17 Thread Andre Poenitz
On Fri, Nov 16, 2007 at 03:19:13PM +0200, sebastian guttenberg wrote: > On Fri, 2007-11-16 at 14:05 +0100, Stefan Schimanski wrote: > > Thanks! > > > > Looks like a perfect document for some profiling to find the > > bottlenecks. > > > > Indeed it's quite slow at the end. Will run a profiler to

Re: typing is dead slow in math-environment (1.6.0svn)

2007-11-16 Thread Stefan Schimanski
fine for me, I have only problems in the math-environment. I have a core 2 dual Pentium with 166Mhz. Is this a known problem? Can it be related to math-macros? I will attach my file only on request. Please tell me, if I should do so. Yes please. Need to see the file. Stefan

Re: typing is dead slow in math-environment (1.6.0svn)

2007-11-16 Thread Pavel Sanda
> Complained that it was too big. I guess it's fine now, as Stefan has a > copy, but for the future it would be good to know, what to do with big > example files for the mailing list... you can put them in wiki or bugzilla and give only url. pavel

Re: typing is dead slow in math-environment (1.6.0svn)

2007-11-16 Thread sebastian guttenberg
On Fri, 2007-11-16 at 14:05 +0100, Stefan Schimanski wrote: > Thanks! > > Looks like a perfect document for some profiling to find the > bottlenecks. > > Indeed it's quite slow at the end. Will run a profiler tonight. Then > we should know. > > Stefan Thanks Stefan for taking care! By the w

Re: typing is dead slow in math-environment (1.6.0svn)

2007-11-16 Thread Stefan Schimanski
Thanks! Looks like a perfect document for some profiling to find the bottlenecks. Indeed it's quite slow at the end. Will run a profiler tonight. Then we should know. Stefan Am 16.11.2007 um 13:53 schrieb sebastian guttenberg: Hi Stefan! Here it is. (It was also the file, where I had t

typing is dead slow in math-environment (1.6.0svn)

2007-11-16 Thread sebastian guttenberg
t the case in 1.5.2, but I am not sure as I have seen the bug 4054: http://bugzilla.lyx.org/show_bug.cgi?id=4054 But reading it, it seems to be different, as it refers to typing ordinary text (with math in the same paragraph). But this is fine for me, I have only problems in the math-environment. I h

Re: typing is dead slow in math-environment (1.6.0svn)

2007-11-16 Thread Abdelrazak Younes
ms in the math-environment. I have a core 2 dual Pentium with 166Mhz. Is this a known problem? Can it be related to math-macros? I will attach my file only on request. Please tell me, if I should do so. Don't pass --enable-stdlib-debug, this is known to slow down things a lot. But stay wit

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-07 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak Younes <[EMAIL PROTECTED]> writes: True. But most LFUNs in Text::dispatch() do not really belong there. This is part of your desire to redefine what Text is, if I understand correctly. In this case, the handling should be moved to InsetText. Yes, proba

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-07 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > True. But most LFUNs in Text::dispatch() do not really belong there. This is part of your desire to redefine what Text is, if I understand correctly. In this case, the handling should be moved to InsetText. JMarc

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-07 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > Because conceptually Text doesn't know where the cursor is, only > Cursor itself knows. So Cursor should ask the current paragraph if it > is a TOC type or not. Absolutely no property of Text is used during > this decision process. This way, we won't

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Abdelrazak Younes
Andre Poenitz wrote: On Tue, Nov 06, 2007 at 03:13:35PM +0100, Abdelrazak Younes wrote: Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: And what about moving this from BufferView (which is for all highly editable insets == text+math) to Text3.cpp (which is only for text)? Like this?

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Andre Poenitz
On Tue, Nov 06, 2007 at 03:13:35PM +0100, Abdelrazak Younes wrote: > Jürgen Spitzmüller wrote: >> Jean-Marc Lasgouttes wrote: >>> And what about moving this from BufferView (which is for all >>> highly editable insets == text+math) to Text3.cpp (which is only for >>> text)? >> Like this? > > > +

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: Yes, but see below. I've fixed the remaining issues and committed to branch. For trunk, there's the difference that Outline is a(n anonymous) function of BufferView. Abdel, what are your plans? Should this function be moved to text with

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > Yes, but see below. I've fixed the remaining issues and committed to branch. For trunk, there's the difference that Outline is a(n anonymous) function of BufferView. Abdel, what are your plans? Should this function be moved to text with the LFUN's or made public?

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: Are the curly braces needed? No, but most of the other elements in the switch embrace their content, so I thought I adapt to that. I don't care. I'll remove them again. FYI, they are only needed if you do declaration inside the case.

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jean-Marc Lasgouttes
[EMAIL PROTECTED] (Jürgen Spitzmüller) writes: > Jean-Marc Lasgouttes wrote: >> Are the curly braces needed? > > No, but most of the other elements in the switch embrace their content, so I > thought I adapt to that. Only when they declare a variable. JMarc

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak Younes <[EMAIL PROTECTED]> writes: Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: And what about moving this from BufferView (which is for all highly editable insets == text+math) to Text3.cpp (which is only for text)? Like this? + case L

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > Are the curly braces needed? No, but most of the other elements in the switch embrace their content, so I thought I adapt to that. I don't care. I'll remove them again. > I think cur.paragraph() is enough since we are in Text. You're right. Jürgen

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > Jürgen Spitzmüller wrote: >> Jean-Marc Lasgouttes wrote: >>> And what about moving this from BufferView (which is for all >>> highly editable insets == text+math) to Text3.cpp (which is only for text)? >> >> Like this? > > > + case LFUN_OUTLINE_U

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jean-Marc Lasgouttes
[EMAIL PROTECTED] (Jürgen Spitzmüller) writes: > Jean-Marc Lasgouttes wrote: >> And what about moving this from BufferView (which is for all >> highly editable insets == text+math) to Text3.cpp (which is only for text)? > > Like this? Yes, but see below. > + case LFUN_OUTLINE_UP: { > +

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > Can't we put these and (many others) in a new Cursor::getStatus instead? > Text is used (abused) for many things already. But not for branch. Jürgen

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: And what about moving this from BufferView (which is for all highly editable insets == text+math) to Text3.cpp (which is only for text)? Like this? + case LFUN_OUTLINE_UP: + case LFUN_OUTLINE_DOWN: + case LFUN_OUTLINE_I

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > And what about moving this from BufferView (which is for all > highly editable insets == text+math) to Text3.cpp (which is only for text)? Like this? Jürgen Index: src/BufferView.cpp === --- src/BufferVi

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > No, if the lfun is only handled in Text what happens is that > > - Cursor::dispatch asks the top slice (mathed) whether it knows about >   outline ==> no > > - Cursor::dispatch asks the next slice (text) whether it knows about >   outline ==> yes! > > - the outline stu

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jean-Marc Lasgouttes
[EMAIL PROTECTED] (Jürgen Spitzmüller) writes: > Jean-Marc Lasgouttes wrote: >> OK then. But I still think that moving the code to Text is better >> (since the code only works in text). > > So you think the lfun should be disabled if the cursor is in mathed, even if > the formula is part of a sec

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: OK then. But I still think that moving the code to Text is better (since the code only works in text). So you think the lfun should be disabled if the cursor is in mathed, even if the formula is part of a section? No, you should enable a

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > OK then. But I still think that moving the code to Text is better > (since the code only works in text). So you think the lfun should be disabled if the cursor is in mathed, even if the formula is part of a section? Jürgen

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jean-Marc Lasgouttes
[EMAIL PROTECTED] (Jürgen Spitzmüller) writes: > Jean-Marc Lasgouttes wrote: >> What happens if you just remove mention of these LFUNS from the mathed >> getstatus? This should be enough to get everything working. > > they are not mentioned in mathed/ anywhere. Sorry. And what about moving this f

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > What happens if you just remove mention of these LFUNS from the mathed > getstatus? This should be enough to get everything working. they are not mentioned in mathed/ anywhere. > I suspect that your patch does not work for nested math insets. It does. I have tested

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jean-Marc Lasgouttes
[EMAIL PROTECTED] (Jürgen Spitzmüller) writes: > Jürgen Spitzmüller wrote: >> Objections? > > It turned out that the attached extension is needed, else LyX still crashes. > BTW if you wonder why I don't just disable those lfuns for mathed: they work > if you are in a formula in a section, for ins

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Objections? Looks correct. Abdel.

Re: [patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: > Objections? It turned out that the attached extension is needed, else LyX still crashes. BTW if you wonder why I don't just disable those lfuns for mathed: they work if you are in a formula in a section, for instance (and they should be disabled for simple paragraphs,

[patch] bug 4330: lyx crashes for outline-commands within math-environment

2007-11-06 Thread Jürgen Spitzmüller
Objections? Jürgen Index: src/BufferView.cpp === --- src/BufferView.cpp (Revision 21446) +++ src/BufferView.cpp (Arbeitskopie) @@ -645,11 +645,6 @@ case LFUN_FONT_STATE: case LFUN_LABEL_INSERT: case LFUN_PARAGRAPH_GOTO: - // FIX

Re: Footnote Bug in Math-Environment

2002-09-09 Thread Dekel Tsur
On Mon, Sep 09, 2002 at 01:23:43PM +0200, Michael Abshoff wrote: > 1. If you (manually) add a footnote in an eqn-array the resulting > TeX-Code doesn't do > the job right. It does display the footnote-symbol, but eats the > footnote itself. > The attached file demonstrates that case. This is a

Footnote Bug in Math-Environment

2002-09-09 Thread Michael Abshoff
Hello everybody, 1. If you (manually) add a footnote in an eqn-array the resulting TeX-Code doesn't do the job right. It does display the footnote-symbol, but eats the footnote itself. The attached file demonstrates that case. 2. Another problem arises from the following TeX-Code (produced b

Re: math environment.

2002-03-08 Thread John Levon
On Thu, Feb 28, 2002 at 10:35:19AM +0200, Staffan Ringbom wrote: > Dear developers, > > By and large the math-editor is a nice piece. > I would like to comment on the new math-editor in 1.2.0cvs. these are now bugs #265, #266, #267 regards john -- I am a complete moron for forgetting about e

Re: math environment.

2002-02-28 Thread Otto Tronarp
On Thu, 2002-02-28 at 09:35, Staffan Ringbom wrote: > Dear developers, > > By and large the math-editor is a nice piece. > I would like to comment on the new math-editor in 1.2.0cvs. > > 1. In 1.1.6fix4 I can insert normal text by M-c-m and I can insert > spacings of suitable length just by p

math environment.

2002-02-28 Thread Staffan Ringbom
Dear developers, By and large the math-editor is a nice piece. I would like to comment on the new math-editor in 1.2.0cvs. 1. In 1.1.6fix4 I can insert normal text by M-c-m and I can insert spacings of suitable length just by pressing the spacebar, but I cannot do these tricks in 1.2.0cvs. I

math environment.

2002-02-28 Thread Staffan Ringbom
Dear developers, By and large the math-editor is a nice piece. I would like to comment on the new math-editor in 1.2.0cvs. 1. In 1.1.6fix4 I can insert normal text by M-c-m and I can insert spacings of suitable length just by pressing the spacebar, but I cannot do these tricks in 1.2.0cvs. I