From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: The X window system, yanking, and pasting using the mouse Date: Thu, 27 Jan 2011 21:35:59 +0000 Message-ID: <4D41E53F.9070700@harpegolden.net> References: <87hbcvkrgr.fsf@anzu.internal.golden-gryphon.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1296199659 9552 80.91.229.12 (28 Jan 2011 07:27:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Jan 2011 07:27:39 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 28 08:27:33 2011 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 1Piik0-0003e7-13 for ged-emacs-devel@m.gmane.org; Fri, 28 Jan 2011 08:27:32 +0100 Original-Received: from localhost ([127.0.0.1]:52697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Piijy-0001vV-Pn for ged-emacs-devel@m.gmane.org; Fri, 28 Jan 2011 02:27:31 -0500 Original-Received: from [140.186.70.92] (port=44249 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiiUl-0002Rr-HN for emacs-devel@gnu.org; Fri, 28 Jan 2011 02:11:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiiOd-0007fm-57 for emacs-devel@gnu.org; Fri, 28 Jan 2011 02:05:28 -0500 Original-Received: from harpegolden.net ([65.99.215.13]:60539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PiiOc-0007fb-Uy for emacs-devel@gnu.org; Fri, 28 Jan 2011 02:05:27 -0500 Original-Received: from [87.198.55.208] (87-198-55-208.ptr.magnet.ie [87.198.55.208]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id 79F8F683D1 for ; Thu, 27 Jan 2011 21:36:01 +0000 (GMT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11 In-Reply-To: <87hbcvkrgr.fsf@anzu.internal.golden-gryphon.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 65.99.215.13 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:135122 Archived-At: On 27/01/11 02:31, Manoj Srivastava wrote: > Hi, > > I have read the archives of this mailing list, and the release > notes of the latest release candidate, and I am left somewhat > confused. I am using the latest Emacs from Git. > > This is what I have: > --8<---------------cut here---------------start------------->8--- > (setq > transient-mark-mode t ;show the marked region > ;;; Behave like other X applications. This is confusing. > x-select-enable-primary t > x-select-enable-clipboard t ;;; cut/paste use clipboard > select-active-regions 'only ;;; temporarily active regions set the > ;;; window selection. > mouse-drag-copy-region t ;;; copy dragged region to kill ring > ) *** It is necessary to bind mouse-2 to mouse-yank-at-click to restore old behaviour. It is NOT PRESENTLY POSSIBLE to restore historical emacs behaviour without a rebinding as well as customisation. That is not to say it /shouldn't/ be possible to use solely customisation to restore the historical behaviour - I have recommended mouse-2 be bound back to mouse-yank-at-click, and mouse-yank-at-click then expanded to support both the standards-compliant and historical emacs behaviour, depending on a customisation. Third party code and other binding sites (e.g. the fringes) also make this approach preferable IMNHO. All recent discussions of the matter on emacs-devel have convinced me that users /do not cope with rebinding/, even when directly told they need to rebind some of them simply refuse to do so. Possibly that's only because there's no GUI for keybinding reconfiguration, but that would be a large project compared to just reverting the mouse-2 binding and introducing the relevant boolean customisation. First place in your ~/.emacs: (global-set-key [mouse-2] 'mouse-yank-at-click) Then do: mouse-drag-copy-region t select-active-regions nil x-select-enable-primary t x-select-enable-clipboard nil I also acknowledge the customisations are confusing. I still do not see a way to make a saner scheme without breaking some source-code backward compatibility (n.b. a saner scheme should be possible with "user visible behaviour" backward compatibility.)