Re: questions: selection

2003-11-28 Thread Andre Poenitz
On Thu, Nov 27, 2003 at 07:10:24PM +0100, Alfredo Braunstein wrote:
 what's selection.mark() / what's the difference with selection.set()?

If I knew...

But there's always this cute little method to increase one's average
familiarity with the code...

Andre'


Re: questions: selection

2003-11-28 Thread Alfredo Braunstein
Nirmal Govind wrote:

 We should probably have some sort of a prize for any non-developer
 on this list who can provide a satisfactory answer to Alfredo.. :-)

oh, it would seems that a prize for developers can be applicable too :-)

Alfredo




Re: questions: selection

2003-11-28 Thread Andre Poenitz
On Thu, Nov 27, 2003 at 07:10:24PM +0100, Alfredo Braunstein wrote:
 what's selection.mark() / what's the difference with selection.set()?

If I knew...

But there's always this cute little method to increase one's average
familiarity with the code...

Andre'


Re: questions: selection

2003-11-28 Thread Alfredo Braunstein
Nirmal Govind wrote:

 We should probably have some sort of a prize for any non-developer
 on this list who can provide a satisfactory answer to Alfredo.. :-)

oh, it would seems that a prize for developers can be applicable too :-)

Alfredo




Re: questions: selection

2003-11-28 Thread Andre Poenitz
On Thu, Nov 27, 2003 at 07:10:24PM +0100, Alfredo Braunstein wrote:
> what's selection.mark() / what's the difference with selection.set()?

If I knew...

But there's always this cute little method to increase one's average
familiarity with the code...

Andre'


Re: questions: selection

2003-11-28 Thread Alfredo Braunstein
Nirmal Govind wrote:

> We should probably have some sort of a prize for any non-developer
> on this list who can provide a satisfactory answer to Alfredo.. :-)

oh, it would seems that a prize for developers can be applicable too :-)

Alfredo




questions: selection

2003-11-27 Thread Alfredo Braunstein
what's selection.mark() / what's the difference with selection.set()?

why the assymetry below (text3.C) -- present in 1.3.x btw :

case LFUN_BEGINNINGBUF:
if (!selection.mark())
clearSelection();
cursorTop();
finishChange(bv);
break;

case LFUN_ENDBUF:
if (selection.mark())
clearSelection();
cursorBottom();
finishChange(bv);
break;

why we use set() sometimes and mark() sometimes for something that seems to
be the same? (e.g.:)

case LFUN_RIGHTSEL:
if (!selection.set())
selection.cursor = cursor;
if (rtl())
cursorLeft(bv);
else
cursorRight(bv);
finishChange(bv, true);
break;


Thanks for any answer, 

Alfredo




Re: questions: selection

2003-11-27 Thread Nirmal Govind
We should probably have some sort of a prize for any non-developer 
on this list who can provide a satisfactory answer to Alfredo.. :-)

nirmal

Alfredo Braunstein wrote:
what's selection.mark() / what's the difference with selection.set()?

why the assymetry below (text3.C) -- present in 1.3.x btw :



questions: selection

2003-11-27 Thread Alfredo Braunstein
what's selection.mark() / what's the difference with selection.set()?

why the assymetry below (text3.C) -- present in 1.3.x btw :

case LFUN_BEGINNINGBUF:
if (!selection.mark())
clearSelection();
cursorTop();
finishChange(bv);
break;

case LFUN_ENDBUF:
if (selection.mark())
clearSelection();
cursorBottom();
finishChange(bv);
break;

why we use set() sometimes and mark() sometimes for something that seems to
be the same? (e.g.:)

case LFUN_RIGHTSEL:
if (!selection.set())
selection.cursor = cursor;
if (rtl())
cursorLeft(bv);
else
cursorRight(bv);
finishChange(bv, true);
break;


Thanks for any answer, 

Alfredo




Re: questions: selection

2003-11-27 Thread Nirmal Govind
We should probably have some sort of a prize for any non-developer 
on this list who can provide a satisfactory answer to Alfredo.. :-)

nirmal

Alfredo Braunstein wrote:
what's selection.mark() / what's the difference with selection.set()?

why the assymetry below (text3.C) -- present in 1.3.x btw :



questions: selection

2003-11-27 Thread Alfredo Braunstein
what's selection.mark() / what's the difference with selection.set()?

why the assymetry below (text3.C) -- present in 1.3.x btw :

case LFUN_BEGINNINGBUF:
if (!selection.mark())
clearSelection();
cursorTop();
finishChange(bv);
break;

case LFUN_ENDBUF:
if (selection.mark())
clearSelection();
cursorBottom();
finishChange(bv);
break;

why we use set() sometimes and mark() sometimes for something that seems to
be the same? (e.g.:)

case LFUN_RIGHTSEL:
if (!selection.set())
selection.cursor = cursor;
if (rtl())
cursorLeft(bv);
else
cursorRight(bv);
finishChange(bv, true);
break;


Thanks for any answer, 

Alfredo




Re: questions: selection

2003-11-27 Thread Nirmal Govind
We should probably have some sort of a prize for any non-developer 
on this list who can provide a satisfactory answer to Alfredo.. :-)

nirmal

Alfredo Braunstein wrote:
what's selection.mark() / what's the difference with selection.set()?

why the assymetry below (text3.C) -- present in 1.3.x btw :