From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#6872: 24.0.50; Mouse-2 pastes the wrong text. Date: Sun, 22 Aug 2010 19:27:13 -0400 Message-ID: <87pqxacjou.fsf@stupidchicken.com> References: <4C6A28AA.10003@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1282520393 7540 80.91.229.12 (22 Aug 2010 23:39:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 22 Aug 2010 23:39:53 +0000 (UTC) Cc: 6872@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 23 01:39:51 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 1OnK8k-00039d-Gv for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Aug 2010 01:39:50 +0200 Original-Received: from localhost ([127.0.0.1]:54915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnK8j-000877-TG for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Aug 2010 19:39:49 -0400 Original-Received: from [140.186.70.92] (port=32960 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnK8C-0007qk-9g for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2010 19:39:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OnK89-0001DA-Op for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2010 19:39:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43444) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnK89-0001D1-LS for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2010 19:39:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OnJvN-0007zF-SU; Sun, 22 Aug 2010 19:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Aug 2010 23:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6872 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6872-submit@debbugs.gnu.org id=B6872.128251956030695 (code B ref 6872); Sun, 22 Aug 2010 23:26:01 +0000 Original-Received: (at 6872) by debbugs.gnu.org; 22 Aug 2010 23:26:00 +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 1OnJvL-0007z2-OC for submit@debbugs.gnu.org; Sun, 22 Aug 2010 19:25:59 -0400 Original-Received: from pantheon-po18.its.yale.edu ([130.132.50.74]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnJvJ-0007yx-Pl for 6872@debbugs.gnu.org; Sun, 22 Aug 2010 19:25:58 -0400 Original-Received: from furry (173-9-75-145-NewEngland.hfc.comcastbusiness.net [173.9.75.145]) (authenticated bits=0) by pantheon-po18.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o7MNRDm2017407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 22 Aug 2010 19:27:13 -0400 Original-Received: by furry (Postfix, from userid 1000) id 6495F16D402; Sun, 22 Aug 2010 19:27:13 -0400 (EDT) In-Reply-To: <4C6A28AA.10003@swipnet.se> ("Jan =?UTF-8?Q?Dj=C3=A4rv"'s?= message of "Tue, 17 Aug 2010 08:14:02 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 22 Aug 2010 19:26:01 -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:39710 Archived-At: Jan Dj=C3=A4rv writes: > In the first frame, go to *scratch* if not alread there. > C-x 5 2. In the new frame C-x b tmp > Select the text "This buffer is for notes". > Move mouse to the other frame and press mouse-2. The text is inserted > as it should. > Double click on "buffer" (in the line that was just inserted) to select > it. > Go back to the frame with *scratch* and press mouse-2. The selected > word "buffer" is not inserted, but the old selection "This buffer is for > notes". Could you help test this patch? *** lisp/mouse.el 2010-08-21 04:46:23 +0000 --- lisp/mouse.el 2010-08-22 23:25:55 +0000 *************** *** 1271,1277 **** (when select-active-regions ;; Without this, confusing things happen upon e.g. inserting into ;; the middle of an active region. ! (deactivate-mark)) (or mouse-yank-at-point (mouse-set-point click)) (let ((primary (cond --- 1271,1278 ---- (when select-active-regions ;; Without this, confusing things happen upon e.g. inserting into ;; the middle of an active region. ! (let ((select-active-regions nil)) ! (deactivate-mark))) (or mouse-yank-at-point (mouse-set-point click)) (let ((primary (cond =3D=3D=3D modified file 'src/keyboard.c' *** src/keyboard.c 2010-08-22 15:14:37 +0000 --- src/keyboard.c 2010-08-22 23:22:34 +0000 *************** *** 368,374 **** Used by the `select-active-regions' feature. */ Lisp_Object Vsaved_region_selection; =20=20 ! Lisp_Object Qx_set_selection, QPRIMARY; =20=20 Lisp_Object Qself_insert_command; Lisp_Object Qforward_char; --- 368,374 ---- Used by the `select-active-regions' feature. */ Lisp_Object Vsaved_region_selection; =20=20 ! Lisp_Object Qx_set_selection, QPRIMARY, Qhandle_switch_frame; =20=20 Lisp_Object Qself_insert_command; Lisp_Object Qforward_char; *************** *** 1799,1808 **** { /* Even if not deactivating the mark, set PRIMARY if `select-active-regions' is non-nil. */ ! if (EQ (Vselect_active_regions, Qonly) ! ? EQ (CAR_SAFE (Vtransient_mark_mode), Qonly) ! : (!NILP (Vselect_active_regions) ! && !NILP (Vtransient_mark_mode))) { int beg =3D XINT (Fmarker_position (current_buffer->mark)); int end =3D XINT (make_number (PT)); --- 1799,1809 ---- { /* Even if not deactivating the mark, set PRIMARY if `select-active-regions' is non-nil. */ ! if ((EQ (Vselect_active_regions, Qonly) ! ? EQ (CAR_SAFE (Vtransient_mark_mode), Qonly) ! : (!NILP (Vselect_active_regions) ! && !NILP (Vtransient_mark_mode))) ! && !EQ (Vthis_command, Qhandle_switch_frame)) { int beg =3D XINT (Fmarker_position (current_buffer->mark)); int end =3D XINT (make_number (PT)); *************** *** 11725,11730 **** --- 11726,11733 ---- staticpro (&Qx_set_selection); QPRIMARY =3D intern_c_string ("PRIMARY"); staticpro (&QPRIMARY); + Qhandle_switch_frame =3D intern_c_string ("handle-switch-frame"); + staticpro (&Qhandle_switch_frame); =20=20 Qinput_method_exit_on_first_char =3D intern_c_string ("input-method-exi= t-on-first-char"); staticpro (&Qinput_method_exit_on_first_char);