Re: Visible cursor placement

2003-09-10 Thread Andre Poenitz
On Wed, Sep 10, 2003 at 11:11:20AM +0200, Lars Gullik Bjønnes wrote: > | PS: When I think about it, if the 'basic storage unit' would be a 'Row' > | not a 'Paragraph', we had a 'natural way' to identify these two > | positions. But I am not sure this won't hurt anywhere else... > > Then you would

Re: Visible cursor placement

2003-09-10 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Wed, Sep 10, 2003 at 10:42:02AM +0200, Lars Gullik Bjønnes wrote: >> Andre Poenitz <[EMAIL PROTECTED]> writes: >> >> | On Thu, Sep 04, 2003 at 01:27:20PM +0100, John Levon wrote: >> >> On Thu, Sep 04, 2003 at 02:23:52PM +0200, Lars Gullik Bj?nnes wro

Re: Visible cursor placement

2003-09-10 Thread Andre Poenitz
On Wed, Sep 10, 2003 at 10:42:02AM +0200, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | On Thu, Sep 04, 2003 at 01:27:20PM +0100, John Levon wrote: > >> On Thu, Sep 04, 2003 at 02:23:52PM +0200, Lars Gullik Bj?nnes wrote: > >> > >> > Just answer my questions in stea

Re: Visible cursor placement

2003-09-10 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Thu, Sep 04, 2003 at 01:27:20PM +0100, John Levon wrote: >> On Thu, Sep 04, 2003 at 02:23:52PM +0200, Lars Gullik Bj?nnes wrote: >> >> > Just answer my questions in stead. >> > In a text editor "End" is needed, but does it _really_ make sense in >> >

Re: Visible cursor placement

2003-09-10 Thread Andre Poenitz
On Thu, Sep 04, 2003 at 01:27:20PM +0100, John Levon wrote: > On Thu, Sep 04, 2003 at 02:23:52PM +0200, Lars Gullik Bj?nnes wrote: > > > Just answer my questions in stead. > > In a text editor "End" is needed, but does it _really_ make sense in > > LyX? > > Absolutely. It's basic navigation. > >

Re: Visible cursor placement

2003-09-04 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Thu, Sep 04, 2003 at 05:09:41PM +0200, Lars Gullik Bj?nnes wrote: > >> Didn't I tell you: One thing at a time. If not the task will get out >> of hand. > | Or perhaps we end up with a load of little hacks in most but not all | places ... So far changes

Re: Visible cursor placement

2003-09-04 Thread John Levon
On Thu, Sep 04, 2003 at 05:09:41PM +0200, Lars Gullik Bj?nnes wrote: > Didn't I tell you: One thing at a time. If not the task will get out > of hand. Or perhaps we end up with a load of little hacks in most but not all places ... john -- Khendon's Law: If the same point is made twice by the

Re: Visible cursor placement

2003-09-04 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Thu, Sep 04, 2003 at 04:44:41PM +0200, Lars Gullik Bj?nnes wrote: > >> This patch also removes lastPrintablePos and just uses lastPos instead >> (that was what the code already did.) >> (and some ugly code is there since I am trying to see if it possible

Re: Visible cursor placement

2003-09-04 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Thu, Sep 04, 2003 at 04:44:41PM +0200, Lars Gullik Bj?nnes wrote: > >> This patch also removes lastPrintablePos and just uses lastPos instead >> (that was what the code already did.) >> (and some ugly code is there since I am trying to see if it possible

Re: Visible cursor placement

2003-09-04 Thread John Levon
On Thu, Sep 04, 2003 at 04:44:41PM +0200, Lars Gullik Bj?nnes wrote: > This patch also removes lastPrintablePos and just uses lastPos instead > (that was what the code already did.) > (and some ugly code is there since I am trying to see if it possible > to get rid of lastPos) This just fixes one

Re: Visible cursor placement

2003-09-04 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Thu, Sep 04, 2003 at 04:00:29PM +0200, Lars Gullik Bj?nnes wrote: > >> Well, I have a patch that just fixes this... > | Then you are just teasing me ! So cruel ! here is the patch. This patch also removes lastPrintablePos and just uses lastPos instead

Re: Visible cursor placement

2003-09-04 Thread John Levon
On Thu, Sep 04, 2003 at 04:00:29PM +0200, Lars Gullik Bj?nnes wrote: > Well, I have a patch that just fixes this... Then you are just teasing me ! So cruel ! :) john -- Khendon's Law: If the same point is made twice by the same person, the thread is over.

Re: Visible cursor placement

2003-09-04 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Thu, Sep 04, 2003 at 03:47:41PM +0200, Lars Gullik Bj?nnes wrote: > >> Thanks for not taking me seriously. > | I admit I am finding your stance really hard to countenance ... Well, I have a patch that just fixes this... So I have the time to argue. >

Re: Visible cursor placement

2003-09-04 Thread John Levon
On Thu, Sep 04, 2003 at 03:47:41PM +0200, Lars Gullik Bj?nnes wrote: > Thanks for not taking me seriously. I admit I am finding your stance really hard to countenance ... > In what situations will you have apply extra key presses to continue > editing if "End" put the cursor on the beginning of

Re: Visible cursor placement

2003-09-04 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Thu, Sep 04, 2003 at 03:42:35PM +0200, Lars Gullik Bj?nnes wrote: > >> But apart form being a surprising cursor position | ^^ >>, I cannot see how it hinders any of your editing. |^^^ > | Ta-da

Re: Visible cursor placement

2003-09-04 Thread John Levon
On Thu, Sep 04, 2003 at 03:42:35PM +0200, Lars Gullik Bj?nnes wrote: > But apart form being a surprising cursor position ^^ >, I cannot see how it hinders any of your editing. ^^^ Ta-da !! Perhaps we should make Home open a picture of a

Re: Visible cursor placement

2003-09-04 Thread Lars Gullik Bjønnes
Kuba Ober <[EMAIL PROTECTED]> writes: | On czwartek 04 wrzesień 2003 08:23 am, Lars Gullik Bjønnes wrote: >> John Levon <[EMAIL PROTECTED]> writes: >> | On Thu, Sep 04, 2003 at 01:30:39PM +0200, Lars Gullik Bj?nnes wrote: >> >> Actually... is a fix needed? >> | >> | Come on, stick your head abov

Re: Visible cursor placement

2003-09-04 Thread Kuba Ober
On czwartek 04 wrzesień 2003 08:23 am, Lars Gullik Bjønnes wrote: > John Levon <[EMAIL PROTECTED]> writes: > | On Thu, Sep 04, 2003 at 01:30:39PM +0200, Lars Gullik Bj?nnes wrote: > >> Actually... is a fix needed? > | > | Come on, stick your head above the parapets and try to explain to people > |

Re: Visible cursor placement

2003-09-04 Thread Alfredo Braunstein
Lars Gullik Bjønnes wrote: > Actually that is (from what I would guess) a very few situations, and > can just ignore that. Yes we can, but i find it ugly. > I am pretty sure that just placing the cursor at row->end() - 1 on > "End" will work nicely in 95% of the cases. I agree, although 1) th

Re: Visible cursor placement

2003-09-04 Thread Lars Gullik Bjønnes
Alfredo Braunstein <[EMAIL PROTECTED]> writes: >> So you have tried it then? > | No, I just did an mental exercise... I tried it, and the behaviour is not that funny. You get the cursor in front of the last character instead of after it. (I can live with that, and that should actually too be ea

Re: Visible cursor placement

2003-09-04 Thread Alfredo Braunstein
Lars Gullik Bjønnes wrote: > Alfredo Braunstein <[EMAIL PROTECTED]> writes: > > | There's no difference in this respect... you hardly add a word or remove > | in a WYSIWYG editor because of its position. LyX is no different from > | any text editor in this respect IMHO. > > this is where I think

Re: Visible cursor placement

2003-09-04 Thread Lars Gullik Bjønnes
Alfredo Braunstein <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: > Just answer my questions in stead. In a text editor "End" is needed, but does it _really_ make sense in LyX? > | I think so. > >>> >> | Absolutely. It's basic navigation. >> >> In a text editor yes, but

Re: Visible cursor placement

2003-09-04 Thread Lars Gullik Bjønnes
Alfredo Braunstein <[EMAIL PROTECTED]> writes: | There's no difference in this respect... you hardly add a word or remove in | a WYSIWYG editor because of its position. LyX is no different from any text | editor in this respect IMHO. this is where I think you are wrong. >> I think I might have

Re: Visible cursor placement

2003-09-04 Thread Alfredo Braunstein
John Levon wrote: > On Thu, Sep 04, 2003 at 02:39:05PM +0200, Lars Gullik Bj?nnes wrote: > >> Where is that space that is obviously in the paragraphs then? > > Um, that's a good point actually. Sorry. So now all you have to do is > find why it doesn't work. In fact with current CVS there's an

Re: Visible cursor placement

2003-09-04 Thread John Levon
On Thu, Sep 04, 2003 at 02:39:05PM +0200, Lars Gullik Bj?nnes wrote: > Where is that space that is obviously in the paragraphs then? Um, that's a good point actually. Sorry. So now all you have to do is find why it doesn't work. regards john -- Khendon's Law: If the same point is made twice by

Re: Visible cursor placement

2003-09-04 Thread Alfredo Braunstein
Lars Gullik Bjønnes wrote: >>> Just answer my questions in stead. >>> In a text editor "End" is needed, but does it _really_ make sense in >>> LyX? I think so. >> > | Absolutely. It's basic navigation. > > In a text editor yes, but in LyX? I am not so sure... There's no difference in this resp

Re: Visible cursor placement

2003-09-04 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Thu, Sep 04, 2003 at 02:31:24PM +0200, Lars Gullik Bj?nnes wrote: > >> Perhaps it won't work in all cases... but inseate of placing the >> cursor at row->end when doing "End" you place it at row->end - 1. >> there should in normal cases be a "space" at e

Re: Visible cursor placement

2003-09-04 Thread John Levon
On Thu, Sep 04, 2003 at 02:31:24PM +0200, Lars Gullik Bj?nnes wrote: > Perhaps it won't work in all cases... but inseate of placing the > cursor at row->end when doing "End" you place it at row->end - 1. > there should in normal cases be a "space" at end of row, just place > the cursor in front of

Re: Visible cursor placement

2003-09-04 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Thu, Sep 04, 2003 at 02:23:52PM +0200, Lars Gullik Bj?nnes wrote: > >> Just answer my questions in stead. >> In a text editor "End" is needed, but does it _really_ make sense in >> LyX? > | Absolutely. It's basic navigation. In a text editor yes, but in

Re: Visible cursor placement

2003-09-04 Thread John Levon
On Thu, Sep 04, 2003 at 02:23:52PM +0200, Lars Gullik Bj?nnes wrote: > Just answer my questions in stead. > In a text editor "End" is needed, but does it _really_ make sense in > LyX? Absolutely. It's basic navigation. Also this problem affects rows before full row insets etc. john -- Khendon

Re: Visible cursor placement

2003-09-04 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Thu, Sep 04, 2003 at 01:30:39PM +0200, Lars Gullik Bj?nnes wrote: > >> Actually... is a fix needed? > | Come on, stick your head above the parapets and try to explain to people | why the cursor goes to the start of the next line when you press End. Just

Re: Visible cursor placement

2003-09-04 Thread John Levon
On Thu, Sep 04, 2003 at 01:30:39PM +0200, Lars Gullik Bj?nnes wrote: > Actually... is a fix needed? Come on, stick your head above the parapets and try to explain to people why the cursor goes to the start of the next line when you press End. john -- Khendon's Law: If the same point is made tw

Re: Visible cursor placement

2003-09-04 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | Try pressing End in a multi-row par in current CVS. Cursor ends up on | the next row, because setCursor() and friends know nothing about which | row the cursor is supposed to be on. Same problem with mouse clicks | (evident before a full row inset like Ins

Re: Visible cursor placement

2003-09-03 Thread John Levon
On Wed, Sep 03, 2003 at 09:14:31AM +0200, Alfredo Braunstein wrote: > PS: what is the policy we want? We want the natural one: if the user clicks on a particular row, the cursor should end up on that row. If the user presses home or end, the cursor should stay on the row. If the user presses righ

Re: Visible cursor placement

2003-09-03 Thread Alfredo Braunstein
John Levon wrote: > On Tue, Sep 02, 2003 at 08:36:30PM +0200, Alfredo Braunstein wrote: > >> > what sort of bool and where from, under which circumstances ? >> >> bool = "if there is a choice, put me on the next row" > > Hmm, we could pass in a row iterator to say which row the cursor must be >

Re: Visible cursor placement

2003-09-02 Thread John Levon
On Tue, Sep 02, 2003 at 08:36:30PM +0200, Alfredo Braunstein wrote: > > what sort of bool and where from, under which circumstances ? > > bool = "if there is a choice, put me on the next row" Hmm, we could pass in a row iterator to say which row the cursor must be placed. That would work I think

Re: Visible cursor placement

2003-09-02 Thread Alfredo Braunstein
John Levon wrote: > On Tue, Sep 02, 2003 at 08:29:40PM +0200, Alfredo Braunstein wrote: > >> What about passing a bool to setCursor? (and/or to store this bool in the > > what sort of bool and where from, under which circumstances ? bool = "if there is a choice, put me on the next row" put to

Re: Visible cursor placement

2003-09-02 Thread John Levon
On Tue, Sep 02, 2003 at 08:29:40PM +0200, Alfredo Braunstein wrote: > What about passing a bool to setCursor? (and/or to store this bool in the what sort of bool and where from, under which circumstances ? regards john -- Khendon's Law: If the same point is made twice by the same person, the t

Re: Visible cursor placement

2003-09-02 Thread Alfredo Braunstein
John Levon wrote: > > Try pressing End in a multi-row par in current CVS. Cursor ends up on > the next row, because setCursor() and friends know nothing about which > row the cursor is supposed to be on. Same problem with mouse clicks > (evident before a full row inset like InsetBibtex). > > I

Visible cursor placement

2003-09-02 Thread John Levon
Try pressing End in a multi-row par in current CVS. Cursor ends up on the next row, because setCursor() and friends know nothing about which row the cursor is supposed to be on. Same problem with mouse clicks (evident before a full row inset like InsetBibtex). I can't see a clean fix. Anybody ?