From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9527: emacs24: binding mouse-2 to mouse-yank-primary instead of mouse-yank-at-click breaks yanking from system clipboard on Windows Date: Sat, 17 Sep 2011 16:25:34 +0300 Message-ID: <83sjnvti5t.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1316266102 430 80.91.229.12 (17 Sep 2011 13:28:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Sep 2011 13:28:22 +0000 (UTC) Cc: 9527-done@debbugs.gnu.org To: Le Wang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 17 15:28:18 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R4uwM-00063r-0m for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Sep 2011 15:28:18 +0200 Original-Received: from localhost ([::1]:47850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4uwL-0003XT-E3 for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Sep 2011 09:28:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4uwI-0003XJ-JV for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2011 09:28:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4uwH-000690-HN for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2011 09:28:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4uwH-00068q-EO for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2011 09:28:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R4v0w-0007Lb-Hy for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2011 09:33:02 -0400 Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2011 13:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 9527 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 9527@debbugs.gnu.org, eliz@gnu.org Original-Received: via spool by 9527-done@debbugs.gnu.org id=D9527.131626635428206 (code D ref 9527); Sat, 17 Sep 2011 13:33:02 +0000 Original-Received: (at 9527-done) by debbugs.gnu.org; 17 Sep 2011 13:32:34 +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 1R4v0U-0007Kt-CO for submit@debbugs.gnu.org; Sat, 17 Sep 2011 09:32:34 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4v0O-0007Kh-Eu for 9527-done@debbugs.gnu.org; Sat, 17 Sep 2011 09:32:31 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LRO00E00548UY00@a-mtaout21.012.net.il> for 9527-done@debbugs.gnu.org; Sat, 17 Sep 2011 16:27:37 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.239.98]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LRO00ECN5E0S990@a-mtaout21.012.net.il>; Sat, 17 Sep 2011 16:27:37 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 17 Sep 2011 09:33:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:51308 Archived-At: > Date: Sat, 17 Sep 2011 17:52:57 +0800 > From: Le Wang > > The binding changed in mouse.el and now when middle-clicking, I get > the stuff in Emacs' kill-ring , but not system clipboard. > > I'm using a Windows native build of Emacs. This is now expected behavior, see NEWS. If you want the old behavior, rebind mouse-2, or use one of the suggestions in NEWS. *** mouse-2 is now bound to `mouse-yank-primary'. This pastes from the primary selection, ignoring the kill-ring. Previously, mouse-2 was bound to `mouse-yank-at-click'. *** To return to the previous behavior, do the following: **** Change `select-active-regions' to nil. **** Change `mouse-drag-copy-region' to t. **** Change `x-select-enable-primary' to t (on X only). **** Change `x-select-enable-clipboard' to nil. **** Bind `mouse-yank-at-click' to mouse-2. Btw, you will only get the stuff in kill-ring if the kill-ring is non-empty. If it is empty, you still get the clipboard. I'm closing this bug report.