From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: mouse-yank-primary and bug #7699 Date: Wed, 22 Dec 2010 06:09:05 -0500 Message-ID: References: <837hf2gc0p.fsf@gnu.org> <4D114EF0.8090706@harpegolden.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1293016164 32344 80.91.229.12 (22 Dec 2010 11:09:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Dec 2010 11:09:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: David De La Harpe Golden Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 22 12:09:20 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 1PVMZL-0006L1-JI for ged-emacs-devel@m.gmane.org; Wed, 22 Dec 2010 12:09:19 +0100 Original-Received: from localhost ([127.0.0.1]:46079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVMZK-0003R3-Vu for ged-emacs-devel@m.gmane.org; Wed, 22 Dec 2010 06:09:19 -0500 Original-Received: from [140.186.70.92] (port=39829 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVMZC-0003P8-Gs for emacs-devel@gnu.org; Wed, 22 Dec 2010 06:09:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVMZB-0001F0-4L for emacs-devel@gnu.org; Wed, 22 Dec 2010 06:09:10 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:53111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVMZA-0001Ek-Rd for emacs-devel@gnu.org; Wed, 22 Dec 2010 06:09:08 -0500 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PVMZ7-00036R-L9; Wed, 22 Dec 2010 06:09:05 -0500 In-reply-to: <4D114EF0.8090706@harpegolden.net> (message from David De La Harpe Golden on Wed, 22 Dec 2010 01:05:52 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:133898 Archived-At: > Date: Wed, 22 Dec 2010 01:05:52 +0000 > From: David De La Harpe Golden > > > My question is: could switching the order do the wrong thing on X? > > I expect so. See discussions under #6635, #6802. x-get-selection-value > (or the x-selection-value-internal it calls) is doing the relevant dance > to get unicode. Thanks (both to you and Jan) for the pointers and the feedback. What is still unclear to me (but not entirely relevant to the issue at hand in bug #7699) is why do we call x-get-selection at all, when x-get-selection-value returns nil? What situation does this second call take care of? (I'm asking because my conclusion both from reading the X implementation and from your responses, and also from discussions archived in bugs #6635 and #6802, is that x-get-selection is roughly a limited variant of x-get-selection-value, in that it supports less data types. But I'm probably still missing something.) > Anyway, mutating the new binding of mouse-2 until it acts like a creepy > zombie version of the old binding seems ...a relatively awkward path to > take. The bug report I'm talking about was not about restoring Emacs 23 behavior of mouse-2. It is about having mouse-2 in Emacs 24 paste the w32 emulated "primary selection", at least when the selection was made in the same Emacs session (which is the limit of what we can currently do on Windows). I believe that on X, Drew's recipe works as expected, i.e. the mouse-selected text is pasted, not the text in the clipboard. I'm trying to do the same on Windows, without any rebinding of keys.