Re: [patch] cursor blink

2008-02-01 Thread Richard Heck
IGNORE this one. It misses Abdel's point about the other stuff we do on blink. rh Richard Heck wrote: Attached. Pavel, if it works for you, go ahead and commit. It should probably also go to branch. OK, Jurgen? rh

[patch] cursor blink

2008-02-01 Thread Richard Heck
Attached. Pavel, if it works for you, go ahead and commit. It should probably also go to branch. OK, Jurgen? rh Index: frontends/qt4/GuiWorkArea.cpp === --- frontends/qt4/GuiWorkArea.cpp (revision 22743) +++ frontends/qt4/GuiWorkA

Re: [patch] cursor position update, cursor often stays at old position

2007-06-15 Thread Uwe Stöhr
Stefan Schimanski schrieb: Will be away until Sunday/Monday. Feel free to commit it. Abdel gave his OK too, so committed it for you: http://www.lyx.org/trac/changeset/18799 regards Uwe

Re: [patch] cursor position update, cursor often stays at old position

2007-06-15 Thread Abdelrazak Younes
Stefan Schimanski wrote: I also noticed this problem since a while. The patch seems obvious and fixes the problems for me, so I give an OK. Will be away until Sunday/Monday. Feel free to commit it. You have my OK if you want to commit now ;-) Abdel.

Re: [patch] cursor position update, cursor often stays at old position

2007-06-15 Thread Stefan Schimanski
I also noticed this problem since a while. The patch seems obvious and fixes the problems for me, so I give an OK. Will be away until Sunday/Monday. Feel free to commit it. Stefan PGP.sig Description: Signierter Teil der Nachricht

Re: [patch] cursor position update, cursor often stays at old position

2007-06-15 Thread Uwe Stöhr
> Here is a patch for the following problem: > > Write something in a "Standard" layout paragraph. Change it into Title. > > The cursor will stay at the old position until the cursor blink > interval is over I also noticed this problem since a while. The patch seems obvious and fixes the proble

Re: [patch] cursor position update, cursor often stays at old position

2007-06-15 Thread Stefan Schimanski
And one about the described general problem: http://bugzilla.lyx.org/ show_bug.cgi?id=3873 Stefan PGP.sig Description: Signierter Teil der Nachricht

Re: [patch] cursor position update, cursor often stays at old position

2007-06-15 Thread Stefan Schimanski
The bug report: http://bugzilla.lyx.org/show_bug.cgi?id=3854 Stefan PGP.sig Description: Signierter Teil der Nachricht

[patch] cursor position update, cursor often stays at old position

2007-06-15 Thread Stefan Schimanski
Here is a patch for the following problem: Write something in a "Standard" layout paragraph. Change it into Title. The cursor will stay at the old position until the cursor blink interval is over There are many more those cases: Try to insert a math delimiter ("Alt- m ("). The cursor s

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-31 Thread Stefan Schimanski
I've tested it yesterday and it was OK so OK :-) Is this in? Yes: r18576 Stefan Abdel. -- José Abílio PGP.sig Description: Signierter Teil der Nachricht

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Andre Poenitz
On Thu, May 31, 2007 at 09:50:03AM +0200, Stefan Schimanski wrote: > > Am 31.05.2007 um 09:43 schrieb Jean-Marc Lasgouttes: > > >>"Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: > > > >Stefan> This is fine, mostly. I don't like 7. There should be a > >Stefan> position behind the c,

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Andre Poenitz
On Thu, May 31, 2007 at 09:25:15AM +0200, Stefan Schimanski wrote: > So, removing the whole boundary business, we get this behavious: > > 1) abc| \ndef =right=> abc \n|def > 2) ab|c\ndef =right=> abc\n|def =right=> abc\nd|ef > 3) abc \nd|ef =left=> abc \n|def =left=> abc| \ndef > 4) abc\nd|ef =lef

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-31 Thread José Matos
On Wednesday 30 May 2007 07:09:59 Abdelrazak Younes wrote: > I've tested it yesterday and it was OK so OK :-) Is this in? > Abdel. -- José Abílio

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Michael Gerz
Stefan Schimanski schrieb: Am 31.05.2007 um 10:56 schrieb Michael Gerz: Abdelrazak Younes schrieb: Isn't this related to change-tracking? Change tracking adds meta information to a virtual (i.e. non-existing) end-of-par character at the end of each paragraph. It does not care for cursor st

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Stefan Schimanski
Am 31.05.2007 um 10:56 schrieb Michael Gerz: Abdelrazak Younes schrieb: Isn't this related to change-tracking? Change tracking adds meta information to a virtual (i.e. non- existing) end-of-par character at the end of each paragraph. It does not care for cursor stuff. (I haven't follow the

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Abdelrazak Younes
Michael Gerz wrote: Abdelrazak Younes schrieb: Isn't this related to change-tracking? Change tracking adds meta information to a virtual (i.e. non-existing) end-of-par character at the end of each paragraph. Ah yes I remembered something about a virtual end-of-par. It does not care for cur

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Michael Gerz
Abdelrazak Younes schrieb: Isn't this related to change-tracking? Change tracking adds meta information to a virtual (i.e. non-existing) end-of-par character at the end of each paragraph. It does not care for cursor stuff. (I haven't follow the thread but I hope that you did not kill any CT-

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> Good question. In 1.4.x, the two positions exist. I am not sure >> why the position in front of the display inset is deemed useful. Abdelrazak> Isn't this related to change-tracking? I think it is something else, but what?

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> Am 31.05.2007 um 09:43 schrieb Jean-Marc Lasgouttes: "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> This is fine, mostly. I don't like 7. There should be a Stefan> position behind

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Stefan Schimanski
Am 31.05.2007 um 10:13 schrieb Jean-Marc Lasgouttes: "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> The only case I can imagine is while selecting an inset like Stefan> display math. It might seem more intuitive if you can select Stefan> just the line of a display math. Bu

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Jean-Marc Lasgouttes
> "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> The only case I can imagine is while selecting an inset like Stefan> display math. It might seem more intuitive if you can select Stefan> just the line of a display math. But the visual effect will remain the same anyway. I

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Stefan Schimanski
Am 31.05.2007 um 09:57 schrieb Jean-Marc Lasgouttes: "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> Am 31.05.2007 um 09:43 schrieb Jean-Marc Lasgouttes: "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> This is fine, mostly. I don't like 7. There should

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Jean-Marc Lasgouttes
> "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> Am 31.05.2007 um 09:43 schrieb Jean-Marc Lasgouttes: >>> "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: >> Stefan> This is fine, mostly. I don't like 7. There should be a Stefan> position behind the c, because

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Stefan Schimanski
Am 31.05.2007 um 09:43 schrieb Jean-Marc Lasgouttes: "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> This is fine, mostly. I don't like 7. There should be a Stefan> position behind the c, because if you type with the cursor in Stefan> front of the $$1$ $ the characters appea

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Jean-Marc Lasgouttes
> "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> This is fine, mostly. I don't like 7. There should be a Stefan> position behind the c, because if you type with the cursor in Stefan> front of the $$1$ $ the characters appear behind c. In fact Stefan> the position in front of

Re: [yet another patch] Cursor movement fine-tuning

2007-05-31 Thread Stefan Schimanski
So, removing the whole boundary business, we get this behavious: 1) abc| \ndef =right=> abc \n|def 2) ab|c\ndef =right=> abc\n|def =right=> abc\nd|ef 3) abc \nd|ef =left=> abc \n|def =left=> abc| \ndef 4) abc\nd|ef =left=> abc\ndef =left=> ab|c\ndef 5) abc|\ndef =right=> abc\n|def 6) abcd|ef =lef

Re: [yet another patch] Cursor movement fine-tuning

2007-05-30 Thread Andre Poenitz
On Thu, May 31, 2007 at 02:29:38AM +0300, Dov Feldstern wrote: > At least cursorLeft and cursorRight are much simpler now... I have no idea whether the patch is sound, but I certainly like the structure... Andre'

[yet another patch] Cursor movement fine-tuning

2007-05-30 Thread Dov Feldstern
[This should be applied after the patch in http://permalink.gmane.org/gmane.editors.lyx.devel/86074, which fixes bug 3754.] Okay, you guys (Stefan and Andre') are correct, as always ;) . We really don't need the boundary almost anywhere. The comment on boundary_ in DocIterator.h is (almost) r

Re: [patch] Cursor movement fine-tuning

2007-05-30 Thread Dov Feldstern
Dov Feldstern wrote: Dov Feldstern wrote: Dov Feldstern wrote: Stefan Schimanski wrote: There's also a separate case, but it doesn't manifest itself in cursor movement (in terms of affecting the number of keystrokes between positions): if I'm between emph and normal text, and type a character

Re: [patch] Cursor movement fine-tuning

2007-05-30 Thread Andre Poenitz
On Thu, May 31, 2007 at 12:14:25AM +0300, Dov Feldstern wrote: > Andre Poenitz wrote: > > > >I am also uncertain whether > > > > cur.paragraph().isNewline(cur.pos() + 1) && > > cur.paragraph().isLineSeparator(cur.pos() + 1) && > > cur.para

Re: [patch] Cursor movement fine-tuning

2007-05-30 Thread Dov Feldstern
Dov Feldstern wrote: Stefan Schimanski wrote: Am 30.05.2007 um 22:53 schrieb Dov Feldstern: Dov Feldstern wrote: Why should that correct? The condition will never be true because no character is newline and separator at the same time. Hmm... right... maybe some of those should be "or"s. Bu

Re: [patch] Cursor movement fine-tuning

2007-05-30 Thread Dov Feldstern
Andre Poenitz wrote: I am also uncertain whether cur.paragraph().isNewline(cur.pos() + 1) && cur.paragraph().isLineSeparator(cur.pos() + 1) && cur.paragraph().isSeparator(cur.pos() + 1)) makes much sense. Right, we're past that stage alrea

Re: [patch] Cursor movement fine-tuning

2007-05-30 Thread Andre Poenitz
On Wed, May 30, 2007 at 11:12:32PM +0300, Dov Feldstern wrote: > Index: lyx-devel/src/Text2.cpp > === > --- lyx-devel.orig/src/Text2.cpp 2007-05-30 22:49:48.0 +0300 > +++ lyx-devel/src/Text2.cpp 2007-05-30 22:58:42.0

Re: [patch] Cursor movement fine-tuning

2007-05-30 Thread Dov Feldstern
Stefan Schimanski wrote: Am 30.05.2007 um 22:53 schrieb Dov Feldstern: Dov Feldstern wrote: Why should that correct? The condition will never be true because no character is newline and separator at the same time. Hmm... right... maybe some of those should be "or"s. But obviously they're n

Re: [patch] Cursor movement fine-tuning

2007-05-30 Thread Stefan Schimanski
Am 30.05.2007 um 22:53 schrieb Dov Feldstern: Dov Feldstern wrote: Why should that correct? The condition will never be true because no character is newline and separator at the same time. Hmm... right... maybe some of those should be "or"s. But obviously they're not really necessary at a

Re: [patch] Cursor movement fine-tuning

2007-05-30 Thread Dov Feldstern
Dov Feldstern wrote: Why should that correct? The condition will never be true because no character is newline and separator at the same time. Hmm... right... maybe some of those should be "or"s. But obviously they're not really necessary at all... That's what I tried saying a few days ago,

Re: [patch] Cursor movement fine-tuning

2007-05-30 Thread Dov Feldstern
Dov Feldstern wrote: Dov Feldstern wrote: Stefan Schimanski wrote: There's also a separate case, but it doesn't manifest itself in cursor movement (in terms of affecting the number of keystrokes between positions): if I'm between emph and normal text, and type a character, should it be emph o

Re: [patch] Cursor movement fine-tuning

2007-05-30 Thread Dov Feldstern
Dov Feldstern wrote: Stefan Schimanski wrote: There's also a separate case, but it doesn't manifest itself in cursor movement (in terms of affecting the number of keystrokes between positions): if I'm between emph and normal text, and type a character, should it be emph or not? Well, if I'm co

Re: [patch] Cursor movement fine-tuning

2007-05-30 Thread Dov Feldstern
Stefan Schimanski wrote: Type a long line with no spaces (aa) until the line breaks because it's too wide, and continue a bit. Then type a space, and then b... until the moves to a new line. Recall, there is no space in the middle of the , but there is a space between aaa

Re: [patch] Cursor movement at RTL-LTR boundary

2007-05-30 Thread Dov Feldstern
Stefan Schimanski wrote: Extended it a bit: Index: src/DocIterator.h === --- src/DocIterator.h(Revision 18580) +++ src/DocIterator.h(Arbeitskopie) @@ -233,19 +233,42 @@ private: /** - * When the cursor position is i,

Re: [patch] Cursor movement fine-tuning

2007-05-30 Thread Stefan Schimanski
Type a long line with no spaces (aa) until the line breaks because it's too wide, and continue a bit. Then type a space, and then b... until the moves to a new line. Recall, there is no space in the middle of the , but there is a space between and . So, start

[patch] Cursor movement fine-tuning

2007-05-30 Thread Dov Feldstern
Hi! Attached find a patch to fix the following: Type a long line with no spaces (aa) until the line breaks because it's too wide, and continue a bit. Then type a space, and then b... until the moves to a new line. Recall, there is no space in the middle of the , but ther

Re: [patch] Cursor movement at RTL-LTR boundary

2007-05-30 Thread Stefan Schimanski
Extended it a bit: Index: src/DocIterator.h === --- src/DocIterator.h (Revision 18580) +++ src/DocIterator.h (Arbeitskopie) @@ -233,19 +233,42 @@ private: /** -* When the cursor position is i, is the cursor after

Re: [patch] Cursor movement at RTL-LTR boundary

2007-05-30 Thread Dov Feldstern
Stefan Schimanski wrote: So moving forward (pos+1) but setting the boundary to true will not register a movement; and staying at the same position, but changing the boundary back to false, *will* appear to move. Is this correct? The other way round: boundary=true => behind the char pos-1. b

Re: [patch] Cursor movement at RTL-LTR boundary

2007-05-30 Thread Stefan Schimanski
P.S. Stefan, just to make sure I really do understand: what I hadn't understood until now is "so how does just setting the boundary, without changing the position, make the cursor move?". I think now I get it: when the cursor drawing is done, it looks at the boundary: if the boundary is set

Re: [patch] Cursor movement at RTL-LTR boundary

2007-05-30 Thread Dov Feldstern
Stefan Schimanski wrote: Please take care with those changes. Such a +1 can change and break a lot. In this I am pretty sure that a character is skipped when going over a newline. I added a special case for the RTL boundary for this line. Okay, I think I understand (how many times have I s

Re: [patch] Cursor movement at RTL-LTR boundary

2007-05-30 Thread Stefan Schimanski
(for http://bugzilla.lyx.org/show_bug.cgi?id=3754) Index: src/Text2.cpp === --- src/Text2.cpp (revision 18569) +++ src/Text2.cpp (working copy) @@ -1031,7 +1031,7 @@ if (cur.pos() != cur.lastpos()) {

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-29 Thread Abdelrazak Younes
Stefan Schimanski wrote: Abdel, is it ok? Dov tested it with my other patch already. Everything looks fine ok. Need another OK then. I've tested it yesterday and it was OK so OK :-) Abdel.

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-29 Thread Uwe Stöhr
> Has anybody tried, especially those who reported a crash (which should be fixed by the "row.pos() > < par.size ()" change)? This new patch works now. You have my OK to commit. regards Uwe

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-29 Thread Martin Vermeer
On Tue, May 29, 2007 at 03:32:37PM +0200, Jean-Marc Lasgouttes wrote: > > "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: > > Stefan> Using the cmake system. Anyway, now I enabled it and go indeed > Stefan> a segfault... which is fixed in the revised patch below > Stefan> (par.empty(

Re: [patch] Cursor movement at RTL-LTR boundary

2007-05-29 Thread Dov Feldstern
Dov Feldstern wrote: Dov Feldstern wrote: Attached is the patch against the new version of Stefan's patch. Stefan, can you please see if it makes sense? I don't really fully understand it, I tried various permutations and this one seems to work, and doesn't appear to break anything else.

Re: [patch] Cursor movement at RTL-LTR boundary

2007-05-29 Thread Stefan Schimanski
Will look tomorrow. Stefan Am 29.05.2007 um 22:56 schrieb Dov Feldstern: Dov Feldstern wrote: Dov Feldstern wrote: Stefan Schimanski wrote: Am 27.05.2007 um 02:27 schrieb Dov Feldstern: Stefan --- now that you're an expert on cursor movement and boundary and all, do you think you could

Re: [patch] Cursor movement at RTL-LTR boundary

2007-05-29 Thread Dov Feldstern
Dov Feldstern wrote: Dov Feldstern wrote: Stefan Schimanski wrote: Am 27.05.2007 um 02:27 schrieb Dov Feldstern: Stefan --- now that you're an expert on cursor movement and boundary and all, do you think you could tackle a small remaining problem with bidi cursor movement, which I think is

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-29 Thread Stefan Schimanski
Abdel, is it ok? Dov tested it with my other patch already. Everything looks fine ok. Need another OK then. Stefan Am 29.05.2007 um 17:35 schrieb Stefan Schimanski: Needing a second ok for this. Has anybody tried, especially those who reported a crash (which should be fixed by the "row.pos(

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-29 Thread Stefan Schimanski
Needing a second ok for this. Has anybody tried, especially those who reported a crash (which should be fixed by the "row.pos() < par.size ()" change)? Stefan Am 29.05.2007 um 16:04 schrieb Stefan Schimanski: Patch? Posted in my message from around noon. Anyway, again: Index: src/TextMet

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-29 Thread Stefan Schimanski
Patch? Posted in my message from around noon. Anyway, again: Index: src/TextMetrics.cpp === --- src/TextMetrics.cpp (Revision 18552) +++ src/TextMetrics.cpp (Arbeitskopie) @@ -245,12 +245,9 @@ // Make sure that if a par end

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-29 Thread Abdelrazak Younes
Stefan Schimanski wrote: Am 29.05.2007 um 15:32 schrieb Jean-Marc Lasgouttes: "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> Using the cmake system. Anyway, now I enabled it and go indeed Stefan> a segfault... which is fixed in the revised patch below Stefan> (par.empty()

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-29 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> I may be wrong but I think this bug is not valid anymore Abdelrazak> thanks to the new target_x strategy (set on move up/down). Abdelrazak> So there's nothing to replace. This trick was the rea

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-29 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> I may be wrong but I think this bug is not valid anymore Abdelrazak> thanks to the new target_x strategy (set on move up/down). Abdelrazak> So there's nothing to replace. This trick was the reason Abdelrazak> why the c

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-29 Thread Stefan Schimanski
Am 29.05.2007 um 15:32 schrieb Jean-Marc Lasgouttes: "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> Using the cmake system. Anyway, now I enabled it and go indeed Stefan> a segfault... which is fixed in the revised patch below Stefan> (par.empty() is not enough to test for

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-29 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> Using the cmake system. Anyway, now I enabled it and go indeed Stefan> a segfault... which is fixed in the revised patch below Stefan> (par.empty() is not enough to test for empty lines, Stefan> par.si

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-29 Thread Jean-Marc Lasgouttes
> "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> Using the cmake system. Anyway, now I enabled it and go indeed Stefan> a segfault... which is fixed in the revised patch below Stefan> (par.empty() is not enough to test for empty lines, Stefan> par.size()==row.pos() is though

Re: [patch] cursor misplaced after a linebreak, #2475

2007-05-29 Thread Stefan Schimanski
Let's move it to the list... Am 29.05.2007 um 10:49 schrieb [EMAIL PROTECTED]: http://bugzilla.lyx.org/show_bug.cgi?id=2475 --- Additional Comments From [EMAIL PROTECTED] 2007-05-29 10:49 --- Stefan, do you use --enable-stdlib-debug? The crash sent by Dov is an assert from this co

[patch] cursor misplaced after a linebreak, #2475

2007-05-28 Thread Stefan Schimanski
Patch is attached to http://bugzilla.lyx.org/show_bug.cgi?id=2475. Can somebody with deeper understanding please comment why this "dirty trick" was needed? Haven't found any bad effect without it. Stefan PGP.sig Description: Signierter Teil der Nachricht

[patch] Cursor movement at RTL-LTR boundary

2007-05-27 Thread Dov Feldstern
Dov Feldstern wrote: Stefan Schimanski wrote: Am 27.05.2007 um 02:27 schrieb Dov Feldstern: Stefan --- now that you're an expert on cursor movement and boundary and all, do you think you could tackle a small remaining problem with bidi cursor movement, which I think is very much connected wi

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

2005-04-09 Thread Andre Poenitz
On Thu, Apr 07, 2005 at 05:10:48PM +0300, Martin Vermeer wrote: > > I know I am repeating myself, but we should understand the > > LFUN_FINISHED stuff before doing that. Either it makes sense and we > > should fix it, or it does not, and we should remove it completely. The main purpose of the LFUN

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

2005-04-09 Thread Andre Poenitz
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-09 Thread Andre Poenitz
On Thu, Apr 07, 2005 at 11:36:22AM +0200, Helge Hafting wrote: > Apparently, there are fundamental differences between > going up/down and left/right. Up/down is mainly 'visual by coordinate', left/right 'by structure'. There are exceptions when following these base rules is 'obviously' wrong. Up/

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

2005-04-09 Thread Andre Poenitz
On Wed, Apr 06, 2005 at 06:51:22PM +0300, 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. There is at mo

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

2005-04-08 Thread Martin Vermeer
On Fri, 2005-04-08 at 15:05, Jean-Marc Lasgouttes wrote: > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> On Thu, Apr 07, 2005 at 03:58:00PM +0200, Jean-Marc Lasgouttes > Martin> wrote: > >> I know I am repeating myself, but we should understand the > >> LFUN_FINISHED st

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

2005-04-08 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> On Thu, Apr 07, 2005 at 03:58:00PM +0200, Jean-Marc Lasgouttes Martin> wrote: >> I know I am repeating myself, but we should understand the >> LFUN_FINISHED stuff before doing that. Either it makes sense and we >> should fix it,

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

2005-04-08 Thread Alfredo Braunstein
Martin Vermeer wrote: >> Ideally, the first arrow down/up should move the cursor, >> not merely close the macro. I guess that is much harder to do? > > Yes, I didn't manage that. The problem seems to be that we have to first > force a redraw/setPosCache after closing the macro, before we are > a

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

2005-04-08 Thread Martin Vermeer
On Fri, 2005-04-08 at 11:11, Helge Hafting wrote: > Martin Vermeer wrote: ... > >This is the part that is unrelated to LFUN_FINISHED: it fixes > >Helge's bug and does nothing else. It's a crashing bug and this is the > >correct fix IMHO*). Agreed? > > > > > This works fine. No more crash when

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

2005-04-08 Thread Helge Hafting
Martin Vermeer wrote: On Thu, Apr 07, 2005 at 03:58:00PM +0200, Jean-Marc Lasgouttes wrote: "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> Here is the patch fixing Helge's unfinished macro up/down bug, Martin> as well as making the cursor move properly for HOME/END

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

2005-04-07 Thread Martin Vermeer
On Thu, Apr 07, 2005 at 03:58:00PM +0200, Jean-Marc Lasgouttes wrote: > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> Here is the patch fixing Helge's unfinished macro up/down bug, > Martin> as well as making the cursor move properly for HOME/END. Also > Martin> a slight

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

2005-04-07 Thread Martin Vermeer
On Thu, Apr 07, 2005 at 03:58:00PM +0200, Jean-Marc Lasgouttes wrote: > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> Here is the patch fixing Helge's unfinished macro up/down bug, > Martin> as well as making the cursor move properly for HOME/END. Also > Martin> a slight

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

2005-04-07 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> Here is the patch fixing Helge's unfinished macro up/down bug, Martin> as well as making the cursor move properly for HOME/END. Also Martin> a slight simplification/dead code removal. Martin> Unfortunately I didn't get Page Up/D

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

2005-04-07 Thread Martin Vermeer
Here is the patch fixing Helge's unfinished macro up/down bug, as well as making the cursor move properly for HOME/END. Also a slight simplification/dead code removal. Unfortunately I didn't get Page Up/Down to behave, so I left that part out. OK to commit? Works for me. - Martin Index: Cha

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

2005-04-07 Thread Martin Vermeer
On Thu, Apr 07, 2005 at 11:36:22AM +0200, Helge Hafting wrote: > Martin Vermeer wrote: ... > >Just give it a try anyway ;-) > > > > > Did that. > The crash is gone, and replaced with inconvenience. ;-) > I can now type in math latex like \bmod, and if I > press down while it is still red, nothi

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

2005-04-07 Thread Helge Hafting
Martin Vermeer wrote: This did not apply to yesterday's CVS (plus those patches for paranthesis issues.) Two hunks would apply with offsets, two were rejected. Probably because they were already in. You could check for that. Ok, they were in already. :-) Just give it a try anyway ;-) Did

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

2005-04-07 Thread Georg Baum
Martin Vermeer wrote: > On Wed, Apr 06, 2005 at 06:09:10PM +0200, Jean-Marc Lasgouttes wrote: >> Why don't you use cur.macroModeClose() as for LFUN_LEFT/RIGHT? >> >> JMarc > > I tried that; didn't do the trick :-( > Neither did cur.clearTargetX() by the way. Could you please add a FIXME comment

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

2005-04-07 Thread Martin Vermeer
On Thu, Apr 07, 2005 at 09:50:48AM +0200, Helge Hafting 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 an

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

2005-04-07 Thread Helge Hafting
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?) This contains the n

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

[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

[New patch] cursor positioning bug fix

2005-04-04 Thread Martin Vermeer
On Fri, Apr 01, 2005 at 05:42:30PM +0300, Martin Vermeer wrote: > > Attached is a patch that fixes this cursor positioning problem for math > insets-within-insets. I don't like it very much but it works, and it is > based on an understanding of the bug's mechanism, which is always > comforting. (W

Re: [patch] cursor

2004-12-11 Thread Kuba Ober
On piÄtek 10 grudzieÅ 2004 01:49 pm, Andre Poenitz wrote: > On Mon, Dec 06, 2004 at 08:53:25PM +0100, Alfredo Braunstein wrote: > > Is this ok [self-explaining patch attached], or are there some kind of > > moral reasons for not showing half a cursor? > > I am not sure we are allowed to show the lo

Re: [patch] cursor

2004-12-11 Thread Andre Poenitz
On Mon, Dec 06, 2004 at 08:53:25PM +0100, Alfredo Braunstein wrote: > Is this ok [self-explaining patch attached], or are there some kind of moral > reasons for not showing half a cursor? I am not sure we are allowed to show the lower part of a cursor to minors at all. Andre'

Re: [patch] cursor

2004-12-06 Thread Angus Leeming
Alfredo Braunstein wrote: > Is this ok [self-explaining patch attached], or are there some kind of > moral reasons for not showing half a cursor? Looks sensible to me. -- Angus

[patch] cursor

2004-12-06 Thread Alfredo Braunstein
Is this ok [self-explaining patch attached], or are there some kind of moral reasons for not showing half a cursor? Alfredo Index: screen.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/screen.C,v retrieving revision 1.

Re: [patch] cursor position inside math insets

2004-04-13 Thread Andre Poenitz
On Tue, Apr 13, 2004 at 11:24:08AM +0200, Alfredo Braunstein wrote: > Alfredo Braunstein wrote: > > > Not sure if this is the "correct" solution though. The top_y habdling > > should be probably completely centralized in some setCachePos like in > > insets/, but I've lost track inside the math/ hi

Re: [patch] cursor position inside math insets

2004-04-13 Thread Alfredo Braunstein
Alfredo Braunstein wrote: > Not sure if this is the "correct" solution though. The top_y habdling > should be probably completely centralized in some setCachePos like in > insets/, but I've lost track inside the math/ hierarchy. Andre', could you have a look? It just adds top_y in a couple of pla

[patch] cursor position inside math insets

2004-04-08 Thread Alfredo Braunstein
Not sure if this is the "correct" solution though. The top_y habdling should be probably completely centralized in some setCachePos like in insets/, but I've lost track inside the math/ hierarchy. I think we should put bv.top_y inside PainterInfo directly so we can avoid including BufferView.h in

Re: [patch]: cursor.[Ch]

2004-03-24 Thread Angus Leeming
Andre Poenitz wrote: > On Mon, Mar 22, 2004 at 11:39:59AM +, Angus Leeming wrote: >> Gets rid of the unused nopop_ variable and rewrites >> Cursor::dispatch to: >> 1. Get rid of the horrible 'operator=(safe)' call; >> 2. Make clear that the only member variable updated is >> Cursor::disp_: >>

Re: [patch]: cursor.[Ch]

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 11:39:59AM +, Angus Leeming wrote: > Gets rid of the unused nopop_ variable and rewrites Cursor::dispatch > to: > 1. Get rid of the horrible 'operator=(safe)' call; > 2. Make clear that the only member variable updated is Cursor::disp_: > > DispatchResult LCursor::disp

  1   2   >