Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-06 Thread Enrico Forestieri
On Fri, Jan 05, 2007 at 06:57:16PM +, Andr??? Poenitz wrote: > On Thu, Jan 04, 2007 at 07:06:52PM +0100, Enrico Forestieri wrote: > > PS: I see that following the current fashion you started using utf8, > > but please fix the headers of your mailer as it currently adds: > > Content-Type: text/

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-06 Thread Andr� Poenitz
On Thu, Jan 04, 2007 at 07:06:52PM +0100, Enrico Forestieri wrote: > PS: I see that following the current fashion you started using utf8, > but please fix the headers of your mailer as it currently adds: > Content-Type: text/plain; charset=us-ascii > such that mutt mangles your name... That change

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-05 Thread Georg Baum
Am Donnerstag, 4. Januar 2007 18:05 schrieb Andr� Poenitz: > I wonder whether this discussion here is based on some educated > guess on how things are supposed to work (i.e. by reading some > X related documents) or whether it is based on personal convienience In my case it is based on http://f

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-04 Thread Enrico Forestieri
On Thu, Jan 04, 2007 at 06:55:32PM +, Angus Leeming wrote: > Enrico Forestieri wrote: > > PS: I see that following the current fashion you started > > using utf8, but please fix the headers of your mailer as it currently > > adds: Content-Type: text/plain; charset=us-ascii such that mutt > > m

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-04 Thread Angus Leeming
Enrico Forestieri wrote: > PS: I see that following the current fashion you started > using utf8, but please fix the headers of your mailer as it currently > adds: Content-Type: text/plain; charset=us-ascii such that mutt > mangles your name... The Content-Type header refers to the body of the mai

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-04 Thread Enrico Forestieri
On Thu, Jan 04, 2007 at 05:05:18PM +, Andr??? Poenitz wrote: > On Wed, Jan 03, 2007 at 06:59:09PM +0100, Enrico Forestieri wrote: > > I would like to be able to paste clipboard by middle mouse if the > > selection is empty, but I see that you have strong opinions on this > > point, so I don't

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-04 Thread Andr� Poenitz
On Wed, Jan 03, 2007 at 06:59:09PM +0100, Enrico Forestieri wrote: > I would like to be able to paste clipboard by middle mouse if the > selection is empty, but I see that you have strong opinions on this > point, so I don't insist on it, either. However, when you'll have a > buzzing in your ears,

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Enrico Forestieri
On Thu, Jan 04, 2007 at 11:30:23AM +1800, Bo Peng wrote: > > However, I can live with C-c and C-v, so if you have strong opinions > > about a theoretical good behaviour, and by this theory you think that > > it is a deadly sin to copy selection to clipboard, then I can bear > > with it. I can unde

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Bo Peng
> This is feasible under X11, but I guess qt/win does not have system > selection buffer, right? No. Or yes? I coukld imagine that it implements a fake selection like we do here. In that case we would not need to do that ourselves. Maybe somebody who has the qt/win sources handy can have a look?

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Bo Peng
However, I can live with C-c and C-v, so if you have strong opinions about a theoretical good behaviour, and by this theory you think that it is a deadly sin to copy selection to clipboard, then I can bear with it. I can understand your point. I don't agree with it, but I am aware that this is a s

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Georg Baum
Am Mittwoch, 3. Januar 2007 17:03 schrieb Bo Peng: > > No, this was not about naming. What I meant was: LyX does not care whether > > the selection was set from within or not. It simply sends the selection to > > the X server when it has one, and gets the current selection back when it > > is re

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Enrico Forestieri
On Thu, Jan 04, 2007 at 10:03:51AM +1800, Bo Peng wrote: > > Then the only thing that would be missing for Enrico is a > > connection of this emulated selection to the external clipboard, > > What Enrico wants should, IMHO, not be supported. I insist on a clear > selection/clipboard separation.

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Abdelrazak Younes
Bo Peng wrote: Please read the whole thread and my patch proposal before commenting any further. Sorry about that, but I do not want to go to the tech details *before* we have a clear goal of what to achieve. After so many discussions, I guess we have all agreed on the clear separation of sele

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Bo Peng
Please read the whole thread and my patch proposal before commenting any further. Sorry about that, but I do not want to go to the tech details *before* we have a clear goal of what to achieve. After so many discussions, I guess we have all agreed on the clear separation of selection and clipbo

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Abdelrazak Younes
Bo Peng wrote: No, this was not about naming. What I meant was: LyX does not care whether the selection was set from within or not. It simply sends the selection to the X server when it has one, and gets the current selection back when it is requested. Therefore a Selection::isInternal() method

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Bo Peng
No, this was not about naming. What I meant was: LyX does not care whether the selection was set from within or not. It simply sends the selection to the X server when it has one, and gets the current selection back when it is requested. Therefore a Selection::isInternal() method is only confusing

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Georg Baum
Am Mittwoch, 3. Januar 2007 13:22 schrieb Abdelrazak Younes: > Georg Baum wrote: > > Am Mittwoch, 3. Januar 2007 12:56 schrieb Abdelrazak Younes: > >> Georg Baum wrote: > > >>> Nevertheless I am able to select something in LyX and paste it with > > middle > >>> mouse button into another app. I d

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Abdelrazak Younes
Georg Baum wrote: Am Mittwoch, 3. Januar 2007 12:56 schrieb Abdelrazak Younes: Georg Baum wrote: Nevertheless I am able to select something in LyX and paste it with middle mouse button into another app. I don't understand why this works. Maybe because X do store the contents? Maybe, but

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Georg Baum
Am Mittwoch, 3. Januar 2007 12:56 schrieb Abdelrazak Younes: > Georg Baum wrote: > > Am Mittwoch, 3. Januar 2007 12:09 schrieb Abdelrazak Younes: > >> Well, what you say is not fully correct, this isInternal() method could > >> be used in LFUN_MOUSE_PRESS in place of the local paste_internally >

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Abdelrazak Younes
Georg Baum wrote: Am Mittwoch, 3. Januar 2007 12:09 schrieb Abdelrazak Younes: Well, what you say is not fully correct, this isInternal() method could be used in LFUN_MOUSE_PRESS in place of the local paste_internally variable. Yes, it could be used, but why should we ask the frontend for som

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Georg Baum
Am Mittwoch, 3. Januar 2007 12:09 schrieb Abdelrazak Younes: > Well, what you say is not fully correct, this isInternal() method could > be used in LFUN_MOUSE_PRESS in place of the local paste_internally > variable. Yes, it could be used, but why should we ask the frontend for something we stor

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Abdelrazak Younes
Georg Baum wrote: Am Mittwoch, 3. Januar 2007 10:33 schrieb Abdelrazak Younes: Georg Baum wrote: Note also that the concept of "internal selction" is wrong. The selection as implemented in LyX (following the concept at freedesktop.org) is always global. If you want to change that then this n

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Georg Baum
Am Mittwoch, 3. Januar 2007 10:33 schrieb Abdelrazak Younes: > Georg Baum wrote: > > Note also that the concept of "internal selction" is wrong. The selection > > as implemented in LyX (following the concept at freedesktop.org) is always > > global. If you want to change that then this needs to

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Abdelrazak Younes
Georg Baum wrote: Am Mittwoch, 3. Januar 2007 09:53 schrieb [EMAIL PROTECTED]: Author: younes Date: Wed Jan 3 09:53:54 2007 New Revision: 16476 URL: http://www.lyx.org/trac/changeset/16476 Log: Prepare for external/internal clipboard merging. Since this is controversal please explain what yo

Re: [Cvslog] r16476 - in /lyx-devel/trunk/src/frontends: Clipboard.h S...

2007-01-03 Thread Georg Baum
Am Mittwoch, 3. Januar 2007 09:53 schrieb [EMAIL PROTECTED]: > Author: younes > Date: Wed Jan 3 09:53:54 2007 > New Revision: 16476 > > URL: http://www.lyx.org/trac/changeset/16476 > Log: > Prepare for external/internal clipboard merging. Since this is controversal please explain what you want t