From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6956: 24.0.50; pasting mouse selection in other session pastes only first word Date: Sat, 04 Sep 2010 18:44:30 +0300 Message-ID: <83y6bhh5sx.fsf@gnu.org> References: <296F488C207B496D9CA42F4AA0F7C835@us.oracle.com> <83eidek812.fsf@gnu.org> <87eideejlh.fsf@stupidchicken.com> <838w3ljzq0.fsf@gnu.org> <83bp8eht8b.fsf@gnu.org> <4C8204D6.5020201@swipnet.se> <8339tpix6o.fsf@gnu.org> <02F047848B344081A82C57995B4312C6@us.oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1283617880 17753 80.91.229.12 (4 Sep 2010 16:31:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Sep 2010 16:31:20 +0000 (UTC) Cc: cyd@stupidchicken.com, 6956@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 04 18:31:17 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Orve8-0001gP-IC for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Sep 2010 18:31:16 +0200 Original-Received: from localhost ([127.0.0.1]:40681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrvKL-0000nI-7W for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Sep 2010 12:10:49 -0400 Original-Received: from [140.186.70.92] (port=56819 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrvJZ-0000Qg-D6 for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2010 12:10:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrvJU-0006V1-5Y for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2010 12:09:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52888) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrvJU-0006Uu-2h for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2010 12:09:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OrurV-0001ET-Qv; Sat, 04 Sep 2010 11:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Sep 2010 15:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6956 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6956-submit@debbugs.gnu.org id=B6956.12836148454729 (code B ref 6956); Sat, 04 Sep 2010 15:41:01 +0000 Original-Received: (at 6956) by debbugs.gnu.org; 4 Sep 2010 15:40:45 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrurF-0001EE-4B for submit@debbugs.gnu.org; Sat, 04 Sep 2010 11:40:45 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrurC-0001E9-NT for 6956@debbugs.gnu.org; Sat, 04 Sep 2010 11:40:44 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L8800F00BFP8W00@a-mtaout22.012.net.il> for 6956@debbugs.gnu.org; Sat, 04 Sep 2010 18:42:29 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.201.204]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L8800ET4BMR4V90@a-mtaout22.012.net.il>; Sat, 04 Sep 2010 18:42:29 +0300 (IDT) In-reply-to: <02F047848B344081A82C57995B4312C6@us.oracle.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 04 Sep 2010 11:41:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39958 Archived-At: > From: "Drew Adams" > Cc: , <6956@debbugs.gnu.org> > Date: Sat, 4 Sep 2010 08:06:19 -0700 > > FWIW, though I seldom use Emacs on X Window these days, I used it for well a > over a decade and I do not recall pasting with mouse-2 after selecting multiple > things (words, lines, whatever) using mouse-1 + mouse-3 (or using any other > mouse-selection method, for that matter) ever having done anything other than > paste the entire selection. Including pasting between Emacs sessions. I do not > believe this sane behavior is/was Windows-only. It still works on X like you remember. But it works because the extended selection gets put into the PRIMARY selection, and mouse-2 pastes from there. See Jan's response to my guess about this. By contrast, on Windows, the (emulated) primary selection is not accessible from other applications. I'm awaiting Stefan or Chong to respond to my suggestions in this thread. If the decision is not to change anything on X, I will then fix it for MS-Windows only, probably subject to a single option which you will have to customize. > IMO, when mouse-pasting after mouse-selecting, no one would ever want what is > pasted to be something different from what s?he had selected. The meaning of > "drag" is irrelevant in this regard (though it might be relevant to some > function names or code comments). The problem is that on X, there are 2 different kinds of "pasting": one from the clipboard, the other from PRIMARY. The current convention on X is that the mouse pastes from PRIMARY, while C-y pastes from the clipboard. "Drag" is relevant because Emacs puts the text you drag across into the kill ring (when mouse-drag-copy-region is non-nil). And anything that goes to the kill ring automatically goes to the clipboard as well. By contrast, mouse-2 pastes only from PRIMARY. And please, stop arguing with the principle. Emacs operation on X wrt selections and pasting has changed, and there's nothing you or me can do about that, except making sure that there are options one can customize to get the old behavior. The default behavior on Windows will need to follow the behavior on X, with some reasonable compromises due to the fact that there's only the clipboard. Again, customizable options should exist to get you the old behavior on Windows. All I'm trying to do is get you what you want, and yet each time I need to argue with you about this -- why?