Re: Pasting over a selection

2008-10-06 Thread Andre Poenitz
On Mon, Oct 06, 2008 at 03:29:05PM +0200, Vincent van Ravesteijn - TNW wrote: > > >Abdelrazak Younes <[EMAIL PROTECTED]> writes: > >> I did not checked, hence the conditional :-) > >> > >> Why not create a Cursor::replaceSelection() instead? > > > >I really think that changing replaceSelection(cu

RE: Pasting over a selection

2008-10-06 Thread Vincent van Ravesteijn - TNW
>Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> I did not checked, hence the conditional :-) >> >> Why not create a Cursor::replaceSelection() instead? > >I really think that changing replaceSelection(cur) to >cur.replaceSelection() (one more character, BTW) is not a >useful task. >Cursor is

Re: Pasting over a selection

2008-10-06 Thread Abdelrazak Younes
On 06/10/2008 15:21, Abdelrazak Younes wrote: On 06/10/2008 14:18, Jean-Marc Lasgouttes wrote: Abdelrazak Younes<[EMAIL PROTECTED]> writes: I did not checked, hence the conditional :-) Why not create a Cursor::replaceSelection() instead? I really think that changing replaceSelection(cur) to

Re: Pasting over a selection

2008-10-06 Thread Abdelrazak Younes
On 06/10/2008 14:18, Jean-Marc Lasgouttes wrote: Abdelrazak Younes<[EMAIL PROTECTED]> writes: I did not checked, hence the conditional :-) Why not create a Cursor::replaceSelection() instead? I really think that changing replaceSelection(cur) to cur.replaceSelection() (one more cha

Re: Pasting over a selection

2008-10-06 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > I did not checked, hence the conditional :-) > > Why not create a Cursor::replaceSelection() instead? I really think that changing replaceSelection(cur) to cur.replaceSelection() (one more character, BTW) is not a useful task. Cursor is already much

Re: Pasting over a selection

2008-10-06 Thread Abdelrazak Younes
On 06/10/2008 09:08, Jean-Marc Lasgouttes wrote: Le 6 oct. 08 à 08:49, Abdelrazak Younes a écrit : Does anyone know why there is the cur.clearSelection() in the code below instead of cap::replaceSelection(cur) as for LFUN_PASTE ? I think there is no valid reason. Beware that cap::replaceSele

Re: Pasting over a selection

2008-10-06 Thread Jean-Marc Lasgouttes
Le 6 oct. 08 à 08:49, Abdelrazak Younes a écrit : Does anyone know why there is the cur.clearSelection() in the code below instead of cap::replaceSelection(cur) as for LFUN_PASTE ? I think there is no valid reason. Beware that cap::replaceSelection() may have some X11 selection related cod

Re: Pasting over a selection

2008-10-05 Thread Abdelrazak Younes
On 06/10/2008 00:40, Vincent van Ravesteijn wrote: If you make a selection and paste something, the selection will be replaced in case of normal paste, but the selection will be retained in the case of paste special (clipboard-paste). Does anyone know why there is the cur.clearSelection() in the

Re: Pasting over a selection

2008-10-05 Thread Richard heck
Vincent van Ravesteijn wrote: If you make a selection and paste something, the selection will be replaced in case of normal paste, but the selection will be retained in the case of paste special (clipboard-paste). Does anyone know why there is the cur.clearSelection() in the code below instead

Pasting over a selection

2008-10-05 Thread Vincent van Ravesteijn
If you make a selection and paste something, the selection will be replaced in case of normal paste, but the selection will be retained in the case of paste special (clipboard-paste). Does anyone know why there is the cur.clearSelection() in the code below instead of cap::replaceSelection(cur) as