Re: The LyX licence

2005-04-06 Thread Zvezdan Petkovic
Dear LyX developers, from the text of Angus's message I'd say you were sending these messages before. I moved last July and my old address @cs.wm.edu is not that useful any more. Fortunately, Angus has found my other address. I do grant permission to LyX to use any of my (small) contributions

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 name

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 attached.

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 + ( +

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

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 appears that Qt has

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

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 widespread

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. This works

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. Lars |

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 penalized if we do it

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.

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? Good

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 seems that it

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 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 be very nice

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

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. 2) It adds

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. Others

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,

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,

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 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. JMarc Good idea.

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 patch makes

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: [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. The main

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 code setting

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: [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 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: [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' you see

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

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 way

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

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 LyX. Good.

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 handle

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

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. However, it seems

[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 space or

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)? Yes, this

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, and lyx crashes

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 will take a

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: [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 you

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

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 nothing

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.selHandle(cmd.action

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

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 code-efficient way

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

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 ---

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

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 this code (I

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

Re: The LyX licence

2005-04-06 Thread Zvezdan Petkovic
Dear LyX developers, from the text of Angus's message I'd say you were sending these messages before. I moved last July and my old address @cs.wm.edu is not that useful any more. Fortunately, Angus has found my other address. I do grant permission to LyX to use any of my (small) contributions

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 >

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

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 + " (" +

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

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

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

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

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.

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: [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

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.

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

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

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 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

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

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 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.

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,

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,

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 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: [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

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: [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. >

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

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: [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 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: [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'

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

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

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

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

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

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

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.

[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. > > > >

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

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, > > >

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

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: [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 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

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

  1   2   >