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#6774: Cut and paste with C-w/mouse-2 not working? Date: Tue, 03 Aug 2010 16:15:02 +0100 Message-ID: <4C583276.9080201@harpegolden.net> References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net> <871vaf69yk.fsf@catnip.gol.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 1280849899 13958 80.91.229.12 (3 Aug 2010 15:38:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Aug 2010 15:38:19 +0000 (UTC) Cc: Chong Yidong , 6774@debbugs.gnu.org, Angelo Graziosi To: Miles Bader Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 03 17:38:14 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 1OgJZG-00021d-0q for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Aug 2010 17:38:14 +0200 Original-Received: from localhost ([127.0.0.1]:42845 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgJZF-0002fJ-7W for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Aug 2010 11:38:13 -0400 Original-Received: from [140.186.70.92] (port=34546 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgJZ7-0002bm-2g for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 11:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgJZ5-0005fh-OV for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 11:38:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42029) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgJZ5-0005fY-N3 for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 11:38:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OgJCo-0002TY-7P; Tue, 03 Aug 2010 11:15: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: Tue, 03 Aug 2010 15:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6774 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12808484819489 (code B ref 6774); Tue, 03 Aug 2010 15:15:02 +0000 Original-Received: (at 6774) by debbugs.gnu.org; 3 Aug 2010 15:14:41 +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 1OgJCT-0002T0-65 for submit@debbugs.gnu.org; Tue, 03 Aug 2010 11:14:41 -0400 Original-Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgJCR-0002Ss-59 for 6774@debbugs.gnu.org; Tue, 03 Aug 2010 11:14:39 -0400 Original-Received: from [87.198.55.208] (87-198-55-208.ptr.magnet.ie [87.198.55.208]) (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 A1C6768474; Tue, 3 Aug 2010 16:15:01 +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: <871vaf69yk.fsf@catnip.gol.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 03 Aug 2010 11:15: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:39199 Archived-At: On 03/08/10 15:34, Miles Bader wrote: > So while y'all are screwing around with this, is there a simple way I > can get back the original behavior? > Yes, four boolean customizations and a rebinding (or just five boolean customizations on my experimental branch) ** group killing: ;; stop emacs using the clipboard for C-w/M-w/C-y x-select-enable-clipboard => nil ;; make emacs use primary for C-w/M-w/C-y x-select-enable-primary => t ;; stop emacs sending both keyboard and mouse selections to primary ;; (and right now sometimes failing at it) select-active-regions => nil ** group mouse: ;; make emacs treat the end of a mouse drag selection as an M-w. mouse-drag-copy-region => t ** rebind: ;; make emacs treat mouse middle button as a C-y operation. ;; rather than a primary-insertion-only operation. (global-set-key [mouse-2] 'mouse-yank-at-click) N.B. On the "selx" experimental branch, don't rebind mouse-2, do instead: mouse-yank-selection-only => nil [IMO such a boolean customisation is neater than requiring a rebind to revert for reasons outlined on emacs-devel last week]