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.bugs Subject: bug#6701: 24.0.50; Cut and paste with mouse-3/mouse-2 no longer works Date: Thu, 22 Jul 2010 21:33:11 +0100 Message-ID: <4C48AB07.1050601@harpegolden.net> References: 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 1279831065 26961 80.91.229.12 (22 Jul 2010 20:37:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Jul 2010 20:37:45 +0000 (UTC) Cc: 6701@debbugs.gnu.org, Chong Yidong To: Matthieu Moy Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 22 22:37:43 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 1Oc2WU-0003yx-MT for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jul 2010 22:37:42 +0200 Original-Received: from localhost ([127.0.0.1]:56854 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oc2WU-0003wA-2U for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jul 2010 16:37:42 -0400 Original-Received: from [140.186.70.92] (port=39241 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oc2WC-0003pI-Fi for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 16:37:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oc2WA-0006UD-9a for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 16:37:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60593) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oc2WA-0006U9-6f for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 16:37:22 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oc2Sw-0003OI-1h; Thu, 22 Jul 2010 16:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David De La Harpe Golden Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jul 2010 20:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6701 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6701-submit@debbugs.gnu.org id=B6701.127983081113020 (code B ref 6701); Thu, 22 Jul 2010 20:34:02 +0000 Original-Received: (at 6701) by debbugs.gnu.org; 22 Jul 2010 20:33:31 +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 1Oc2SQ-0003Nx-Rq for submit@debbugs.gnu.org; Thu, 22 Jul 2010 16:33:31 -0400 Original-Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oc2SJ-0003Nn-Bb for 6701@debbugs.gnu.org; Thu, 22 Jul 2010 16:33:29 -0400 Original-Received: from [87.198.55.210] (87-198-55-210.ptr.magnet.ie [87.198.55.210]) (using TLSv1 with cipher DHE-RSA-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 14C42683A2; Thu, 22 Jul 2010 21:33:15 +0100 (IST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 22 Jul 2010 16:34:02 -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:38780 Archived-At: On 22/07/10 09:47, Matthieu Moy wrote: > Hi, > > The latests changes in the way selection works broke a nice feature > (I'd say killer-feature ;-) ) of Emacs<= 23. Not only copy-paste > works with mouse, but also _cut_-and-paste: > I confess I was aware of a problem in that area in conjunction with settings corresponding to the latest changes, though it had slipped my mind (comes from the days before the bug tracker, at least before it had stabilised): It is the reason why, a couple of years ago, I proposed a setting to allow some alternative behaviour for mouse-3 (mouse-save-then-kill): http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg01018.html Unfortunately I doubt the patch applies cleanly right now owing to reworking of the mouse layer in the interim. I can look at it this weekend. Hopefully the _reason_ I proposed the change is becoming a bit clearer to people other than me now... How I suggested mouse-3 should act at the time (Yes, this means learning to do an extra click for some operations, but it makes mouse-3 actually useful with the new settings, at least when it hasn't been replaced by a context menu anyway): first mouse-3 click: adjust region (only), thereby also adjusting primary when select-active-regions enabled (as it now is). second mouse-3 click: copy region to kill-ring/clipboard third mouse-3 click: cut region to kill-ring/clipboard (using same slot as copy to avoid duplication). Note mouse-2 click will insert the cut region even though bound to mouse-yank-primary, since the first click will have put it there*. * One caveat - this may also require certain of the no-zero-length-region fixes to work entirely correctly. (Apologies, Chong Yidong knows what I'm talking about here).