From unknown Sun Jun 22 11:35:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#19003 <19003@debbugs.gnu.org> To: bug#19003 <19003@debbugs.gnu.org> Subject: Status: 24.4; Mouse-click in different frame displaying same buffer breaks region Reply-To: bug#19003 <19003@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:35:35 +0000 retitle 19003 24.4; Mouse-click in different frame displaying same buffer b= reaks region reassign 19003 emacs submitter 19003 Christian Tanzer severity 19003 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 09 13:39:36 2014 Received: (at submit) by debbugs.gnu.org; 9 Nov 2014 18:39:36 +0000 Received: from localhost ([127.0.0.1]:55079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnXOh-0005oo-0X for submit@debbugs.gnu.org; Sun, 09 Nov 2014 13:39:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56925) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnQ3k-0008D2-Px for submit@debbugs.gnu.org; Sun, 09 Nov 2014 05:49:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnQ3f-0000DN-EA for submit@debbugs.gnu.org; Sun, 09 Nov 2014 05:49:28 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnQ3f-0000DJ-B2 for submit@debbugs.gnu.org; Sun, 09 Nov 2014 05:49:23 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnQ3a-0002WO-I4 for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 05:49:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnQ3V-0000AG-UP for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 05:49:18 -0500 Received: from 85-125-208-90.work.xdsl-line.inode.at ([85.125.208.90]:55057 helo=swing.co.at) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnQ3V-00007l-Ft for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 05:49:13 -0500 Received: from tr.swing.cluster ([127.0.0.1]) by swing.co.at with esmtp (Exim 4.84) (envelope-from ) id 1XnPiE-0004uC-TF; Sun, 09 Nov 2014 11:27:14 +0100 From: Christian Tanzer To: bug-gnu-emacs@gnu.org Subject: 24.4; Mouse-click in different frame displaying same buffer breaks region Date: Sun, 09 Nov 2014 11:26:50 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 09 Nov 2014 13:39:33 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Christian Tanzer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Starting point =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D A buffer is displayed in two frames, a region was selected with the mouse in one of the frames. The problem =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D If one clicks (mouse-1) into the other frame, the region is silently extended to that point =E2=80=94 although it isn't highlighted anymore. A subsequent mouse-yank-primary inserts the broken region. I originally noticed this problem when I used mouse-yank-primary to yank a region into a different frame (without fist using mouse-1 to select that frame). For mouse-yank-primary, it can be solved by moving=20 (or mouse-yank-at-point (mouse-set-point click)) into the `let' for `primary'. I have no idea how to solve it for mouse-1 events.=20 Emacs versions effected =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I originally noticed the problem in Emacs 24.1. It's still there in 24.4. The problem occurs, when starting from `emacs -Q'. In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.24) of 2014-10-22 on tr Windowing system distributor `The X.Org Foundation', version 11.0.11500000 Configured using: `configure --prefix=3D/usr --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --mandir=3D/usr/share/man --infodir=3D/usr/share/info --datadir=3D/usr/share --sysconfdir=3D/etc --localstatedir=3D/var/lib --libdir=3D/usr/lib64 --disable-silent-rules --disable-dependency-tracking --program-suffix=3D-emacs-24 --infodir=3D/usr/share/info/emacs-24 --localstatedir=3D/var --enable-locallisppath=3D/etc/emacs:/usr/share/emacs/site-lisp --with-gameuser=3Dgames --without-compress-install --with-file-notification=3Dinotify --disable-acl --with-dbus --with-gnutls --with-gpm --without-hesiod --without-kerberos --without-kerberos5 --without-xml2 --without-selinux --without-wide-int --with-zlib --with-sound=3Dalsa --with-x --without-ns --without-gconf --without-gsettings --with-toolkit-scroll-bars --with-gif --with-jpeg --without-png --with-rsvg --with-tiff --with-xpm --with-imagemagick --with-xft --without-libotf --without-m17n-flt --with-x-toolkit=3Dgtk2 GENTOO_PACKAGE=3Dapp-editors/emacs-24.4 'CFLAGS=3D-march=3Dcore2 -O2 -pipe' CPPFLAGS=3D 'LDFLAGS=3D-Wl,-O1 -Wl,--as-needed'' Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 r e p o r t - C-_ M-x r e p o r t =20 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. (No files need saving) C-x is undefined byte-code: Beginning of buffer Mark set Undo! Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind inotify dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 90242 9111) (symbols 48 17584 0) (miscs 40 62 139) (strings 32 9232 4284) (string-bytes 1 253117) (vectors 16 9031) (vector-slots 8 394987 16042) (floats 8 67 531) (intervals 56 4353 0) (buffers 960 13) (heap 1024 13846 595)) --=20 Christian Tanzer http://www.c-tanzer.at/ From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 10 17:55:06 2014 Received: (at 19003) by debbugs.gnu.org; 10 Nov 2014 22:55:06 +0000 Received: from localhost ([127.0.0.1]:56453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnxrW-00005Q-9l for submit@debbugs.gnu.org; Mon, 10 Nov 2014 17:55:06 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:23131) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnxrU-00005G-77 for 19003@debbugs.gnu.org; Mon, 10 Nov 2014 17:55:04 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvQMAOatTlRLd+sd/2dsb2JhbABcgw6DYlCGLstTBAICgRwXAQF8hAMBAQMBIzMjBQsLGgIYDgICFBgNJIhLCbZ8gUyTKgEBAQEGAQEBAR6BLI9cB4J3gVQFi2SmPIFvgjSBYh+BN4FDAQEB X-IPAS-Result: AvQMAOatTlRLd+sd/2dsb2JhbABcgw6DYlCGLstTBAICgRwXAQF8hAMBAQMBIzMjBQsLGgIYDgICFBgNJIhLCbZ8gUyTKgEBAQEGAQEBAR6BLI9cB4J3gVQFi2SmPIFvgjSBYh+BN4FDAQEB X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="96596226" Received: from 75-119-235-29.dsl.teksavvy.com (HELO pastel.home) ([75.119.235.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 10 Nov 2014 17:55:03 -0500 Received: by pastel.home (Postfix, from userid 20848) id 51282735D; Mon, 10 Nov 2014 17:55:03 -0500 (EST) From: Stefan Monnier To: Christian Tanzer Subject: Re: bug#19003: 24.4; Mouse-click in different frame displaying same buffer breaks region Message-ID: References: Date: Mon, 10 Nov 2014 17:55:03 -0500 In-Reply-To: (Christian Tanzer's message of "Sun, 09 Nov 2014 11:26:50 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 19003 Cc: 19003@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > A buffer is displayed in two frames, a region was > selected with the mouse in one of the frames. > The problem > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > If one clicks (mouse-1) into the other frame, the region is silently > extended to that point =E2=80=94 although it isn't highlighted anymore. Actually, the region is extended as soon as you select the other frame (if you have a window-manager that lets focus follow the mouse, then you see it immediately). So the problem is that this "switch-frame" should probably deactivate the mark (if the region was set via shifted-movement). Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 10 20:39:53 2014 Received: (at 19003) by debbugs.gnu.org; 11 Nov 2014 01:39:53 +0000 Received: from localhost ([127.0.0.1]:56720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xo0Qz-0006M5-1U for submit@debbugs.gnu.org; Mon, 10 Nov 2014 20:39:53 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:59884) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xo0Qx-0006Ly-I6 for 19003@debbugs.gnu.org; Mon, 10 Nov 2014 20:39:51 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvAMAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+yDmDGgQCAoEcFwEBfIQDAQEEViMQCzQSFBgNJIhUuEiTKgEBAQEBAQQBAQEBHpEIB4RLBYtkpjyBb4I0gWIfgTeBQwEBAQ X-IPAS-Result: AvAMAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+yDmDGgQCAoEcFwEBfIQDAQEEViMQCzQSFBgNJIhUuEiTKgEBAQEBAQQBAQEBHpEIB4RLBYtkpjyBb4I0gWIfgTeBQwEBAQ X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="96603196" Received: from 75-119-235-29.dsl.teksavvy.com (HELO pastel.home) ([75.119.235.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 10 Nov 2014 20:39:50 -0500 Received: by pastel.home (Postfix, from userid 20848) id 47575735D; Mon, 10 Nov 2014 20:39:50 -0500 (EST) From: Stefan Monnier To: Christian Tanzer Subject: Re: bug#19003: 24.4; Mouse-click in different frame displaying same buffer breaks region Message-ID: References: Date: Mon, 10 Nov 2014 20:39:50 -0500 In-Reply-To: (Christian Tanzer's message of "Sun, 09 Nov 2014 11:26:50 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 19003 Cc: 19003@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Would the patch below solve it for you? Stefan === modified file 'src/frame.c' --- src/frame.c 2014-11-10 20:05:40 +0000 +++ src/frame.c 2014-11-10 22:55:38 +0000 @@ -1198,7 +1198,7 @@ return do_switch_frame (frame, 1, 0, norecord); } -DEFUN ("handle-switch-frame", Fhandle_switch_frame, Shandle_switch_frame, 1, 1, "e", +DEFUN ("handle-switch-frame", Fhandle_switch_frame, Shandle_switch_frame, 1, 1, "^e", doc: /* Handle a switch-frame event EVENT. Switch-frame events are usually bound to this function. A switch-frame event tells Emacs that the window manager has requested === modified file 'lisp/window.el' --- lisp/window.el 2014-10-15 18:32:27 +0000 +++ lisp/window.el 2014-11-10 22:56:00 +0000 @@ -7904,7 +7904,7 @@ (defun handle-select-window (event) "Handle select-window events." - (interactive "e") + (interactive "^e") (let ((window (posn-window (event-start event)))) (unless (or (not (window-live-p window)) ;; Don't switch if we're currently in the minibuffer. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 14 06:28:33 2014 Received: (at 19003) by debbugs.gnu.org; 14 Nov 2014 11:28:33 +0000 Received: from localhost ([127.0.0.1]:60227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpF3J-0006fi-5u for submit@debbugs.gnu.org; Fri, 14 Nov 2014 06:28:33 -0500 Received: from 85-125-208-90.work.xdsl-line.inode.at ([85.125.208.90]:50374 helo=swing.co.at) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpF3F-0006fV-Un for 19003@debbugs.gnu.org; Fri, 14 Nov 2014 06:28:31 -0500 Received: from tr.swing.cluster ([127.0.0.1]) by swing.co.at with esmtp (Exim 4.84) (envelope-from ) id 1XpF3E-0001E3-IB; Fri, 14 Nov 2014 12:28:28 +0100 X-mailer: PMA 0.7.0 In-reply-to: Your message of "Mon, 10 Nov 2014 20:39:50 -0500" References: Content-type: text/plain; charset=utf-8 Date: Fri, 14 Nov 2014 11:28:22 -0000 Mime-version: 1.0 Content-transfer-encoding: 8bit Subject: Re: bug#19003: 24.4; Mouse-click in different frame displaying same buffer breaks region To: Stefan Monnier From: Christian Tanzer Message-ID: X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 19003 Cc: 19003@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Christian Tanzer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.4 (/) Stefan Monnier wrote at Mon, 10 Nov 2014 20:39:50 -0500: > Would the patch below solve it for you? Yes, the patch in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19003#11 fixes the problem [tested against git branch emacs-24, commit 6688117e7924]. With that patch in place, mouse-1 and mouse-2 work fine! Thanks, Christian -- Christian Tanzer http://www.c-tanzer.at/ From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 16 00:30:54 2014 Received: (at 19003-done) by debbugs.gnu.org; 16 Nov 2014 05:30:54 +0000 Received: from localhost ([127.0.0.1]:34251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpsQH-0001e3-Lt for submit@debbugs.gnu.org; Sun, 16 Nov 2014 00:30:53 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:56495) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpsQF-0001dv-8z for 19003-done@debbugs.gnu.org; Sun, 16 Nov 2014 00:30:52 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AugIAGA2ZVSnWBqE/2dsb2JhbABbgw5UWQGJNMNDh0kEAgKBHBcBAQEBAQF8hAMBAQMBViMQCzQSFBgNJIhLCQ28HZRaAQEBBwEBAQEekRQHhEsFjAuLAokVlHaCNoFkHzABgQeBQwEBAQ X-IPAS-Result: AugIAGA2ZVSnWBqE/2dsb2JhbABbgw5UWQGJNMNDh0kEAgKBHBcBAQEBAQF8hAMBAQMBViMQCzQSFBgNJIhLCQ28HZRaAQEBBwEBAQEekRQHhEsFjAuLAokVlHaCNoFkHzABgQeBQwEBAQ X-IronPort-AV: E=Sophos;i="5.07,380,1413259200"; d="scan'208";a="97109247" Received: from 167-88-26-132.cpe.teksavvy.com (HELO pastel.home) ([167.88.26.132]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 16 Nov 2014 00:30:50 -0500 Received: by pastel.home (Postfix, from userid 20848) id 573EE9865; Sun, 16 Nov 2014 00:30:50 -0500 (EST) From: Stefan Monnier To: Christian Tanzer Subject: Re: bug#19003: 24.4; Mouse-click in different frame displaying same buffer breaks region Message-ID: References: Date: Sun, 16 Nov 2014 00:30:50 -0500 In-Reply-To: (Christian Tanzer's message of "Fri, 14 Nov 2014 11:28:22 -0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 19003-done Cc: 19003-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Version:24.5 >> Would the patch below solve it for you? > Yes, the patch in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19003#11 > fixes the problem [tested against git branch emacs-24, > commit 6688117e7924]. Thanks, installed, Stefan From unknown Sun Jun 22 11:35:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 14 Dec 2014 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator