GNU bug report logs - #6774
Cut and paste with C-w/mouse-2 not working?

Previous Next

Package: emacs;

Reported by: Angelo Graziosi <angelo.graziosi <at> alice.it>

Date: Sun, 1 Aug 2010 22:04:02 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #41 received at 6774 <at> debbugs.gnu.org (full text, mbox):

From: David De La Harpe Golden <david <at> harpegolden.net>
To: Miles Bader <miles <at> gnu.org>
Cc: Chong Yidong <cyd <at> stupidchicken.com>, 6774 <at> debbugs.gnu.org,
	Angelo Graziosi <angelo.graziosi <at> alice.it>
Subject: Re: bug#6774: Cut and paste with C-w/mouse-2 not working?
Date: Tue, 03 Aug 2010 16:15:02 +0100
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]






This bug report was last modified 14 years and 342 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.