From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Selection changes in revno 100822 Date: Sun, 15 Aug 2010 22:52:39 +0900 Message-ID: <8739ugrniw.fsf@uwakimon.sk.tsukuba.ac.jp> References: <834oeyv3ww.fsf@gnu.org> <87mxsqyp98.fsf@stupidchicken.com> <83zkwptyij.fsf@gnu.org> <4C66660D.3090603@swipnet.se> <83sk2htp82.fsf@gnu.org> <4C66A8C5.4040203@harpegolden.net> <83hbixte8c.fsf@gnu.org> <4C66D081.908@harpegolden.net> <838w48u9fg.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1281881913 9342 80.91.229.12 (15 Aug 2010 14:18:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 15 Aug 2010 14:18:33 +0000 (UTC) Cc: cyd@stupidchicken.com, jan.h.d@swipnet.se, emacs-devel@gnu.org, David De La Harpe Golden To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 15 16:18:29 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oke2e-0003py-Pc for ged-emacs-devel@m.gmane.org; Sun, 15 Aug 2010 16:18:29 +0200 Original-Received: from localhost ([127.0.0.1]:49153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oke2e-0005aC-3Z for ged-emacs-devel@m.gmane.org; Sun, 15 Aug 2010 10:18:28 -0400 Original-Received: from [140.186.70.92] (port=33978 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oke2V-0005YB-FC for emacs-devel@gnu.org; Sun, 15 Aug 2010 10:18:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oke2T-0006Fk-Sy for emacs-devel@gnu.org; Sun, 15 Aug 2010 10:18:19 -0400 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]:33272) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oke2R-0006FC-UK; Sun, 15 Aug 2010 10:18:16 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id 34E9B7FFA; Sun, 15 Aug 2010 22:54:53 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 2A4231A46B1; Sun, 15 Aug 2010 22:52:39 +0900 (JST) In-Reply-To: <838w48u9fg.fsf@gnu.org> X-Mailer: VM undefined under 21.5 (beta29) "garbanzo" ed3b274cc037 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128738 Archived-At: Eli Zaretskii writes: > I wasn't talking about clipboard pasting, I was talking about > pasting from the primary selection. AFAIK you can't copy/paste from the Windows primary selection (unless it's a situation where moving doesn't make sense, such as between disks in Explorer), although you can drag it somewhere else. (More explanation below.) > > > But pasting gets from the primary selection unconditionally, so > > > it seems. > > No, mouse-2 clicking does. pasting (C-y/ CUA C-v) doesn't. > This just adds more confusion. Mouse-2 _was_ pasting until very > recently. That's because of the (bogus) historical association of the selection with the kill-ring in Emacs. Good riddance, IMO. > > mouse-2 click insertion and clipboard pasting are not equivalent > > on x11. If you think they are, then that surely would lead you > > to be confused. > Please give me some minimal credit that I know what I'm talking > about. That's kind of difficult when you also wrote this: > We've been there before. As far as Windows use patterns are > concerned, we disagree. I expect most Windows users disagree with > you, because there's only the clipboard, so no way of having 2 > different selection types and 2 different ways of pasting. On X11 there are three different selection types, in fact, and two different ways of pasting. That is a fact, and saying the Windows users don't believe it doesn't make it any less true. And in fact, there *is* an analog to the X11 primary selection on Windows, and it can only be manipulated with the mouse. That's what is used for drag'n'drop. AFAIK there is no way to paste that selection from the keyboard (C-v) without using cut (C-x) or copy (C-c) first (in fact C-v will overwrite it with the contents of the clipboard), but in some applications (eg, the Explorer) it can be dragged, which causes either movement or copying depending on context, and does not affect the clipboard. Am I wrong? I don't know enough about Windows to guess whether Emacs could access this feature, but I bet if it were available some Windows users would take to dragging text around in a buffer like ducks take to water. > Now let's stop arguing about this, because we will never agree. > The above was just my opinion, not an invitation to another > dispute. Your opinion is wrong, and that matters a lot. Some experienced X users use the "drag to select, middle button to paste" and "drag to select, drag again to move" gestures a lot (when available, drag to move isn't standard part of toolkits AFAIK, although some apps implement it). If available, Windows users might like to use it too. > > primary selections are inserted when you click mouse-2. > > primary selections are not inserted when you paste (C-v) > > Does this mean I have no way of pasting from the primary selection > without using a mouse? That's hardly a Good Thing. Indeed, it's a Damn Good Thing. Pasting from the *primary* selection is supposed to be lightweight. It's only interesting if you only want to do something very simple (copy/paste) quickly, and not disturb the state of the application or system (specifically, the contents of the clipboard). Since your hand is already on the mouse in most cases, why would you use a different interface to manipulate the selection? Otherwise, you need to manipulate a clipboard (with the menus or keys, and here by "a clipboard" I mean either the system clipboard, or an app-specific clipboard such as the Emacs kill ring). And if you originally selected via the keyboard, then you can easily use C-c or C-x to copy/move it to a clipboard.