Re: Math oddity in todays CVS

2005-04-06 Thread Martin Vermeer
On Wed, Apr 06, 2005 at 10:56:44PM +0300, Martin Vermeer wrote: > On Wed, Apr 06, 2005 at 04:22:18PM +0200, Jean-Marc Lasgouttes wrote: > > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: ... > > I am not able to follow the logic, though. > > > You're in good company. > > I see t

lyx-gtk problems

2005-04-06 Thread Manuel Corrales
Hi, i am getting this problems. I report some of them previously but keep coming, This is from a version checkout a minutes ago. Help -> Introduction == crash void BufferView::Pimpl::update(bool, bool)[fitcursor = 0, forceupdate = 1] buffer: 0x86ea5a8 ViewMetricsInfo BufferView::Pimpl::metrics(

Splitting cells

2005-04-06 Thread Martin Vermeer
Enabled by this patch. Fixes a regression. OK to commit? - Martin Index: math_gridinset.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_gridinset.C,v retrieving revision 1.158 diff -u -r1.158 math_gridinset.C --- math

Static Qt/Win32 Free library

2005-04-06 Thread Michael Schmitt
Angus, in order to reduce the time and memory requirements to link the LyX application, I tried to use a static version of the Qt/win32 Free library. The library (and some provided Qt applications like designer) work well but if I try to run LyX's ./configure, the Qt library test fails. Have yo

Re: Math oddity in todays CVS

2005-04-06 Thread Martin Vermeer
On Wed, Apr 06, 2005 at 04:22:18PM +0200, Jean-Marc Lasgouttes wrote: > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> Is this a new feature? Or a regression fix? > > Don't now :) > > Martin> As you seem to know these things, I'm sure you also know a > Martin> really c

Re: linebreak in a (multicolumn) tabular cell

2005-04-06 Thread Rainer Dorsch
Uwe, that looks easy enough. I guess the first for links LyX Help documents: This page describes the help documents that come with an installation of LyX. Manuals: A place for manuals (or links to them) about LyX Tutorials: Tutorials on using LyX Presentations: A place for presentations (or links

Re: [Patch] : cursor up/down crash in math macro (+ more)

2005-04-06 Thread Martin Vermeer
On Wed, Apr 06, 2005 at 06:09:10PM +0200, Jean-Marc Lasgouttes wrote: > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> Nice, those small attachments ;-/ > > case LFUN_UPSEL: > case LFUN_UP: > + if (cur.inMacroMode()) break; > cur.sel

Re: [Patch] : cursor up/down crash in math macro (+ more)

2005-04-06 Thread Martin Vermeer
On Wed, Apr 06, 2005 at 06:03:02PM +0200, Georg Baum wrote: > Martin Vermeer wrote: > > > OK, here's a patch for this one. The problem is an unfinished math macro > > is already defined as an inset, but hasn't drawn + added a coordinate > > cache entry yet. So it now tests for macro mode and does

Re: [Patch] : cursor up/down crash in math macro (+ more)

2005-04-06 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Why don't you use cur.macroModeClose() as for LFUN_LEFT/RIGHT? I think that that would be the correct fix, but I suspect (untested) that macroModeClose() invalidates the coord cache, because it removes the unfinished inset and inserts a new one. But if this is the ca

Re: [Patch] : cursor up/down crash in math macro (+ more)

2005-04-06 Thread Georg Baum
Martin Vermeer wrote: > OK, here's a patch for this one. The problem is an unfinished math macro > is already defined as an inset, but hasn't drawn + added a coordinate > cache entry yet. So it now tests for macro mode and does nothing then. > > (Were there any other keys that did this?) What do

Re: [Patch] : cursor up/down crash in math macro (+ more)

2005-04-06 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> Nice, those small attachments ;-/ case LFUN_UPSEL: case LFUN_UP: + if (cur.inMacroMode()) break; cur.selHandle(cmd.action == LFUN_UPSEL); if (!cur.up())

Re: PageDown is trapped in math insets

2005-04-06 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> What about just getting rid of it? I mean, after Andre's work Martin> I understand that it should be possible to make an inset Martin> announce "I cannot handle this event", after which one higher Martin> up in the cursor stack w

Re: [Patch] : cursor up/down crash in math macro (+ more)

2005-04-06 Thread Martin Vermeer
On Wed, 2005-04-06 at 18:51, Martin Vermeer wrote: > On Wed, 2005-04-06 at 10:15, Martin Vermeer wrote: > > On Tue, Apr 05, 2005 at 11:03:19PM +0200, Helge Hafting wrote: > > > Move into a math inset. > > > Type \bmod > > > It will show as red text. Press down arrow while it still is red, > > > a

Re: PageDown is trapped in math insets

2005-04-06 Thread Martin Vermeer
On Wed, 2005-04-06 at 18:50, Jean-Marc Lasgouttes wrote: > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> BTW why would you want a mathinset to handle a Page Up/Down > Martin> event? Can't we just shortcircuit it (i.e., make sure the > Martin> surrounding text handles it)

[Patch] : cursor up/down crash in math macro (+ more)

2005-04-06 Thread Martin Vermeer
On Wed, 2005-04-06 at 10:15, Martin Vermeer wrote: > On Tue, Apr 05, 2005 at 11:03:19PM +0200, Helge Hafting wrote: > > Move into a math inset. > > Type \bmod > > It will show as red text. Press down arrow while it still is red, > > and lyx crashes with the usual emergency save. > > > > Pressing

Re: PageDown is trapped in math insets

2005-04-06 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> BTW why would you want a mathinset to handle a Page Up/Down Martin> event? Can't we just shortcircuit it (i.e., make sure the Martin> surrounding text handles it)? Yes, this is what I had in mind when looking at the code. Howeve

Re: The LyX licence

2005-04-06 Thread Edmar Wienskoski
I grant permission to licence my contributions to LyX under the Gnu General Public Licence, version 2 or later. Edmar Wienskoski PS: Keep up the good work !! Angus Leeming wrote: Dear all, please excuse the personal email, but I'm trying to do something about the messy state of the LyX licence a

Re: PageDown is trapped in math insets

2005-04-06 Thread Martin Vermeer
On Wed, 2005-04-06 at 17:00, Jean-Marc Lasgouttes wrote: > I do not remember whether this is new and whether Martin has a fix in > hand for that already, but I just noticed that it is not possible to > escape from a math inset with Page Up/Down. > > JMarc BTW why would you want a mathinset to han

Re: Profiling LyX-140 on Mac

2005-04-06 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> I quit all applications other than Shark and LyX-140, and ran Bennett> a time profile on all processes for 30 seconds (LyX Bennett> represented 88.7% of the total). During that time, I typed Bennett> into a long-ish document in L

Re: PageDown is trapped in math insets

2005-04-06 Thread Martin Vermeer
On Wed, 2005-04-06 at 17:00, Jean-Marc Lasgouttes wrote: > I do not remember whether this is new and whether Martin has a fix in > hand for that already, but I just noticed that it is not possible to > escape from a math inset with Page Up/Down. > > JMarc No, no ready fix yet... but this is an im

Re: Profiling LyX-140 on Mac

2005-04-06 Thread John Levon
On Wed, Apr 06, 2005 at 11:05:05AM -0400, Bennett Helm wrote: > I quit all applications other than Shark and LyX-140, and ran a time > profile on all processes for 30 seconds (LyX represented 88.7% of the Can you do it just for LyX? The output doesn't seem to have anything useful (and it's wa

Profiling LyX-140 on Mac

2005-04-06 Thread Bennett Helm
Here is my first attempt to profile LyX-140 on Mac -- without really knowing what I'm doing or what language to use in describing it. I quit all applications other than Shark and LyX-140, and ran a time profile on all processes for 30 seconds (LyX represented 88.7% of the total). During that

Re: [Devel] [patch] scrollbar code

2005-04-06 Thread Alfredo Braunstein
John Levon wrote: >> The jumping is related to something changing size (like images being >> loaded) or something else? > > Something else. If I load the User guide and make sure all images are > loaded, then start at the very top and hold down the button so it's > scrolling in 'page increments'

Re: [PATCH] Remove Qt font caching

2005-04-06 Thread John Levon
On Wed, Apr 06, 2005 at 12:15:27PM +0200, Lars Gullik Bj?nnes wrote: > So, why not just remove "our" caching completely, and just let those > still using old QTs suffer? Because there's practically no advantage in terms of maintenance in removing the cache? john

Re: [PATCH] Remove Qt font caching

2005-04-06 Thread John Levon
On Wed, Apr 06, 2005 at 11:42:54AM +0200, Lars Gullik Bj?nnes wrote: > | Significantly. > > no numbers? :-) I did numbers way back. Perhaps you can be bothered to search the archives? :) john

Re: [PATCH] Remove Qt font caching

2005-04-06 Thread John Levon
On Wed, Apr 06, 2005 at 11:21:46AM +0200, Jean-Marc Lasgouttes wrote: > example RowPainter::paintChars would help. However, the RtL code in > there scares me :) I doubt that still works, there's nobody left who understands it john

Re: Math oddity in todays CVS

2005-04-06 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> Is this a new feature? Or a regression fix? Don't now :) Martin> As you seem to know these things, I'm sure you also know a Martin> really code-efficient way to do this :-) In math_nestinset.C::doDispatch, I see plenty of cod

Re: [Devel] [patch] scrollbar code

2005-04-06 Thread John Levon
On Tue, Apr 05, 2005 at 07:59:28PM +0200, Alfredo Braunstein wrote: > John Levon wrote: > > > On Sun, Apr 03, 2005 at 05:34:41PM +0200, Alfredo Braunstein wrote: > > > >> This is the "update paragraphs height on draw, use old info for outscreen > >> paragraphs" rewrite of the scrollbar code. > >

PageDown is trapped in math insets

2005-04-06 Thread Jean-Marc Lasgouttes
I do not remember whether this is new and whether Martin has a fix in hand for that already, but I just noticed that it is not possible to escape from a math inset with Page Up/Down. JMarc

Re: [PATCH] Remove Qt font caching

2005-04-06 Thread Jean-Marc Lasgouttes
> "Alfredo" == Alfredo Braunstein <[EMAIL PROTECTED]> writes: >> I am not sure I understand FontIterator::operator*(), since >> inlining it did not improve the situation. Alfredo> Could the problem be LyXFont's copy constructor? Sure, we are not supposed to make a copy here. The attached pat

Re: Math oddity in todays CVS

2005-04-06 Thread Martin Vermeer
On Wed, 2005-04-06 at 16:38, Jean-Marc Lasgouttes wrote: > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> Hmmm, it might be nice to enable END at the last position to > Martin> exit the parentheses. Opinions? > > Or rather to dispatch the END to the enclosing inset. > >

Re: Math oddity in todays CVS

2005-04-06 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> Hmmm, it might be nice to enable END at the last position to Martin> exit the parentheses. Opinions? Or rather to dispatch the END to the enclosing inset. JMarc

Re: Math oddity in todays CVS

2005-04-06 Thread Helge Hafting
Martin Vermeer wrote: On Wed, 2005-04-06 at 15:38, Helge Hafting wrote: ... It does help. Attached a new patch doing two things: 1) it tests for ncols() > 0 (I.e., establishes that this is a "grid-type" nest inset) before trying to update anything involving column numbers. This fixes your bug, H

Re: Math oddity in todays CVS

2005-04-06 Thread Helge Hafting
Martin Vermeer wrote: On Wed, 2005-04-06 at 15:38, Helge Hafting wrote: ... It does help. Attached a new patch doing two things: 1) it tests for ncols() > 0 (I.e., establishes that this is a "grid-type" nest inset) before trying to update anything involving column numbers. This fixes your bug, H

Re: Math oddity in todays CVS

2005-04-06 Thread Martin Vermeer
On Wed, 2005-04-06 at 15:55, Helge Hafting wrote: > Helge Hafting wrote: ... > I added the "cut/paste in nestinsets" patch to this, and > it made no difference. It applied with no errors, but it didn't > seem to make a difference. Don't. It's a wrong patch, superseded by the 12:55 PM one. Othe

Re: Math oddity in todays CVS

2005-04-06 Thread Martin Vermeer
On Wed, 2005-04-06 at 15:38, Helge Hafting wrote: ... > >It does help. Attached a new patch doing two things: > > > >1) it tests for ncols() > 0 (I.e., establishes that this is > >a "grid-type" nest inset) before trying to update anything involving > >column numbers. This fixes your bug, Helge. >

Re: Math oddity in todays CVS

2005-04-06 Thread Helge Hafting
Helge Hafting wrote: Pressing END inside matching parantheses no longer kills lyx, nice. Instead, the cursor goes to the last paranthesis. I can't get to the end of line with END alone, but maybe the key isn't meant to do that in math? The selection stuff did not improve for me, though. Type C-M 1+

Re: [PATCH] Remove Qt font caching

2005-04-06 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: >> Good question. It seems that it makes Qt/Mac suffer, though. Angus> Bennett's results were so much worse than your's that I think Angus> that its hard to draw any firm conclusions about performance on Angus> the Mac. Indeed. It would

Re: Math oddity in todays CVS

2005-04-06 Thread Helge Hafting
Martin Vermeer wrote: On Tue, 2005-04-05 at 20:27, Martin Vermeer wrote: On Tue, Apr 05, 2005 at 07:23:40PM +0200, Helge Hafting wrote: I typed h_1 (k)=2654435769k/2^32-11 into math. Then, I wanted the part after "=" in brackets, so I marked it and inserted matching brackets from the math

Re: [PATCH] Remove Qt font caching

2005-04-06 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > | The caching exists since version 3.1.0, which is probably > | widespread enough. Qt/Win free and Qt/Mac also have this code. > > Lars> So, why not just remove "our" caching completely, and just let > Lars> those still using old QTs suffer? > > Good question. It see

Re: [PATCH] Remove Qt font caching

2005-04-06 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | The caching exists since version 3.1.0, which is probably | widespread enough. Qt/Win free and Qt/Mac also have this code. Lars> So, why not just remove "our" caching completely, and just let Lars> those still using old QTs suffer?

Re: [PATCH] Remove Qt font caching

2005-04-06 Thread Alfredo Braunstein
Jean-Marc Lasgouttes wrote: > Each sample counts as 0.01 seconds. > % cumulative self self total > time seconds secondscalls ms/call ms/call name > 7.37 0.16 0.16 1463980 0.00 0.00 > LyXText::getFont(Paragraph const&, int) const > 6.45

blanket-permission.php

2005-04-06 Thread Angus Leeming
I've pulled together a hyperlinked version of blanket-permission.txt to shove on the web site. Code attached. See it in action at http://www.devel.lyx.org/~leeming/www-user/blanket-permission.php If someone can think of a better title, then please throw it this way. I'm all out of inspiration. I

Re: [PATCH] Remove Qt font caching

2005-04-06 Thread =?iso-8859-1?q?Lars_Gullik_Bj=F8nnes?=
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> John Levon <[EMAIL PROTECTED]> writes: | Lars> | On Tue, Apr 05, 2005 at 04:49:53PM +0200, Lars Gullik Bj?nnes wrote: >>> Also I'd like to know how much the old code is

Re: [PATCH] Remove Qt font caching

2005-04-06 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> John Levon <[EMAIL PROTECTED]> writes: Lars> | On Tue, Apr 05, 2005 at 04:49:53PM +0200, Lars Gullik Bj?nnes wrote: >> >>> Also I'd like to know how much the old code is penalized if we do >>> it the no-cache way all the time. >

Re: Math oddity in todays CVS

2005-04-06 Thread Martin Vermeer
On Tue, 2005-04-05 at 20:27, Martin Vermeer wrote: > On Tue, Apr 05, 2005 at 07:23:40PM +0200, Helge Hafting wrote: > > > > I typed h_1 (k)=2654435769k/2^32-11 into math. > > Then, I wanted the part after "=" in brackets, so I marked > > it and inserted matching brackets from the math panel. Thi

Re: [PATCH] Remove Qt font caching

2005-04-06 Thread =?iso-8859-1?q?Lars_Gullik_Bj=F8nnes?=
John Levon <[EMAIL PROTECTED]> writes: | On Tue, Apr 05, 2005 at 04:49:53PM +0200, Lars Gullik Bj?nnes wrote: > >> Also I'd like to know how much the old code is penalized if we do it >> the no-cache way all the time. > | Significantly. no numbers? :-) What version of QT got the caching? How wid

Re: cut/paste in nestinsets (font, decoration, delim)

2005-04-06 Thread Georg Baum
Martin Vermeer wrote: > However, I have been unable to put this same piece of text onto the > clipboard from math_nestinset's paste routine, or make it take the text > straight from the selection. I have no idea what's wrong and don't > really understand this code. The attached might help for put

Re: [PATCH] Remove Qt font caching

2005-04-06 Thread Jean-Marc Lasgouttes
> "John" == John Levon <[EMAIL PROTECTED]> writes: John> On Tue, Apr 05, 2005 at 02:18:58PM +0200, Jean-Marc Lasgouttes John> wrote: >> The font caching in qt2/qfont_loader.C uses a std::map which shows >> on gprof profiles (around 16% with all optimizations on and no >> assertions). It appea

Re: The LyX licence

2005-04-06 Thread Thomas Pundt
On Wednesday 06 April 2005 01:23, Angus Leeming wrote: | In light of all this, I'm asking whether I can have your permission to | add your names to http://www.lyx.org/blanket-permission.txt : | | "The following people hereby grant permission to licence their | contributions to LyX under the Gnu Gen

Fwd: lyx140cvs, insetvspace.C

2005-04-06 Thread Hartmut Haase
I'm not sure you got this -- Weitergeleitete Nachricht -- Subject: lyx140cvs, insetvspace.C Date: Samstag, 2. April 2005 17:49 From: Hartmut Haase <[EMAIL PROTECTED]> To: lyx-devel@lists.lyx.org If we replace in src/insets/insetvspace.C line 147: str = label + " (" + sp

Re: Mysterious statement in CutAndPaste.C

2005-04-06 Thread Martin Vermeer
On Tue, 2005-04-05 at 16:36, Martin Vermeer wrote: > 685 cur.pos() = 0; // We've deleted the whole cell. Only pos 0 is > valid. > > I think this is too general, though it fixes bug 1654, it shows also up > when deleting a partial cell as the cursor jumping to the start. > > Patch attach

Re: Yet another math crash related to cursor movement

2005-04-06 Thread Martin Vermeer
On Tue, Apr 05, 2005 at 11:03:19PM +0200, Helge Hafting wrote: > Move into a math inset. > Type \bmod > It will show as red text. Press down arrow while it still is red, > and lyx crashes with the usual emergency save. > > Pressing space or anything else that changes the hand-typed fucntion > na