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 10:18:28 +0300 Message-ID: <83bp8eht8b.fsf@gnu.org> References: <296F488C207B496D9CA42F4AA0F7C835@us.oracle.com> <83eidek812.fsf@gnu.org> <87eideejlh.fsf@stupidchicken.com> <838w3ljzq0.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1283586032 11220 80.91.229.12 (4 Sep 2010 07:40:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Sep 2010 07:40:32 +0000 (UTC) To: cyd@stupidchicken.com, 6956@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 04 09:40:30 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 1OrnMT-0003fw-4J for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Sep 2010 09:40:29 +0200 Original-Received: from localhost ([127.0.0.1]:44006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrnMS-0008Uh-9W for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Sep 2010 03:40:28 -0400 Original-Received: from [140.186.70.92] (port=53948 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrnLx-0008TF-KX for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2010 03:39:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrnLw-0005T7-0e for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2010 03:39:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33278) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrnLv-0005T3-UE for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2010 03:39:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ormxr-0005SQ-3x; Sat, 04 Sep 2010 03:15:03 -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 07:15:03 +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.128358449720958 (code B ref 6956); Sat, 04 Sep 2010 07:15:03 +0000 Original-Received: (at 6956) by debbugs.gnu.org; 4 Sep 2010 07:14:57 +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 1Ormxk-0005Rz-O9 for submit@debbugs.gnu.org; Sat, 04 Sep 2010 03:14:56 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ormxj-0005Ru-0R for 6956@debbugs.gnu.org; Sat, 04 Sep 2010 03:14:56 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L8700E00O0Z8L00@a-mtaout20.012.net.il> for 6956@debbugs.gnu.org; Sat, 04 Sep 2010 10:16:29 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.202.93]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L8700EDRO7D2H50@a-mtaout20.012.net.il>; Sat, 04 Sep 2010 10:16:29 +0300 (IDT) In-reply-to: <838w3ljzq0.fsf@gnu.org> 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 03:15:03 -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:39946 Archived-At: > Date: Wed, 01 Sep 2010 17:38:31 +0300 > From: Eli Zaretskii > Cc: 6956@debbugs.gnu.org Ping! I really need feedback for this, even if the feedback is that this is specific to MS-Windows and should therefore be fixed by Windows-specific changes. (FWIW, I think the problem is common to Windows and X alike.) > > From: Chong Yidong > > Cc: Drew Adams , 6956@debbugs.gnu.org > > Date: Tue, 31 Aug 2010 14:13:30 -0400 > > > > Eli Zaretskii writes: > > > > >> Select some text (several words) with the mouse using double-click > > >> mouse-1 on one word then mouse-3 on a later word in the text. > > > > > > Does this constitute a "mouse drag"? Can someone please tell what > > > happens on X with the recipe in this bug report? > > > > Yes, this follows the rule that if the region is highlighted, the > > primary selection is set. On X, if you double-mouse-1 on a word and > > extend the region with mouse-3, you can use mouse-2 to paste the entire > > selection into another application. > > The issue here is that mouse-drag-copy-region is advertised to copy to > the kill-ring regions which are highlighted by dragging the mouse. > But mouse-drag-copy-region only affects mouse-drag-region (via > mouse-drag-track), which is bound to mouse-1. Mouse-3, OTOH, is bound > to mouse-save-then-kill, which is not affected at all by > mouse-drag-copy-region. > > So when Drew double-clicks mouse-1, the highlighted first word is > indeed copied into the kill ring (and winds up in the clipboard), but > extending the region with mouse-3 doesn't copy the extended region. > > What I think happens on X under mouse-drag-copy-region is that the > first word is copied into the clipboard, while the extended region is > copied to the PRIMARY selection by the code in command_loop_1 which > catches active regions. Can you please verify this? > > If my guess is correct, then I think this is a bug: we should copy the > whole region to the kill-ring when mouse-drag-copy-region is non-nil. > That is, if extending the region with mouse-3 as described in this > report indeed constitutes a "mouse drag". >