From unknown Fri Sep 05 07:33:59 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#17776 <17776@debbugs.gnu.org> To: bug#17776 <17776@debbugs.gnu.org> Subject: Status: 24.3; bug? regression: xterm-mouse-mode does not work any more with rxvt-unicode Reply-To: bug#17776 <17776@debbugs.gnu.org> Date: Fri, 05 Sep 2025 14:33:59 +0000 retitle 17776 24.3; bug? regression: xterm-mouse-mode does not work any mor= e with rxvt-unicode reassign 17776 emacs submitter 17776 Gregor Zattler severity 17776 important thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 14 04:49:40 2014 Received: (at submit) by debbugs.gnu.org; 14 Jun 2014 08:49:40 +0000 Received: from localhost ([127.0.0.1]:47182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wvjed-0004DI-Qf for submit@debbugs.gnu.org; Sat, 14 Jun 2014 04:49:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47632) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvjeZ-0004D2-LT for submit@debbugs.gnu.org; Sat, 14 Jun 2014 04:49:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvjeN-0005NA-EP for submit@debbugs.gnu.org; Sat, 14 Jun 2014 04:49:30 -0400 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,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvjeN-0005Mv-Bf for submit@debbugs.gnu.org; Sat, 14 Jun 2014 04:49:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvjeH-0008Qg-D2 for bug-gnu-emacs@gnu.org; Sat, 14 Jun 2014 04:49:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvjeB-0005LY-Fc for bug-gnu-emacs@gnu.org; Sat, 14 Jun 2014 04:49:17 -0400 Received: from mout.gmx.net ([212.227.15.19]:55118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvjeB-0005KJ-6D for bug-gnu-emacs@gnu.org; Sat, 14 Jun 2014 04:49:11 -0400 Received: from boo.workgroup ([87.185.178.113]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MC4y8-1X4ZLm09b6-008qgm for ; Sat, 14 Jun 2014 10:49:06 +0200 Received: from grfz by boo.workgroup with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1Wvje4-0001qb-Kr for bug-gnu-emacs@gnu.org; Sat, 14 Jun 2014 10:49:04 +0200 From: Gregor Zattler To: bug-gnu-emacs@gnu.org Subject: 24.3; bug? regression: xterm-mouse-mode does not work any more with rxvt-unicode Date: Sat, 14 Jun 2014 10:49:04 +0200 Message-ID: <871turzxj3.fsf@boo.workgroup> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:b+dae1tAd8Fp6DXT/HWt0R90CzzggxkZENWfkkUQ0H3gzFVHNLb TP+KeEcCDksYlxNKDrLqtfA2NGPMWxXOQIsOABysLK+xCCWKiEOfiGXusxhsuvVoXKxxSo1 t2nfnAR2c+MYbtjFyl8+yyMrBwvIrP7HdJ5nzgQa9pgDgoq6+0uGQfkkLPE7YOoP1v5HOYC 109/bsWIZiS/HI1/FruGw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] 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: -4.1 (----) X-Debbugs-Envelope-To: submit 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: -4.1 (----) xterm-mouse-mode used to work under rxvt-unicode but does not any more. I'm not sure who ist to blame (emacs or rxvt-unicode). How to reproduce: start emacs like so: urxvt -e emacs-snapshot -Q -nw --eval '(progn (xterm-mouse-mode 1)(switch-to-buffer "*Messages*")(toggle-debug-on-error))' then klick in the one window. You'll see a backtrace etc. I see: - in *Messages* Entering debugger... [ is undefined M is undefined # is undefined @ is undefined - backtrace: Debugger entered--Lisp error: (wrong-type-argument stringp nil) intern(nil) xterm-mouse--read-event-sequence-1000() xterm-mouse-event(nil) xterm-mouse-translate-1() xterm-mouse-translate(nil) This happens with rxvt-unicode (urxvt) v9.20 - released: 2014-04-26 options: perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm I git-bisected this: da26b804bfee2a137e999bb03c736bf85dd3bf5a is the first bad commit commit da26b804bfee2a137e999bb03c736bf85dd3bf5a Author: Stefan Monnier Date: Wed May 7 21:46:15 2014 -0400 * lisp/xt-mouse.el: Drop spurious/oddly shaped events. (xterm-mouse--read-event-sequence-1000): Return nil if something looks fishy. (xterm-mouse-event): Propagate it. (xterm-mouse-translate-1): Handle it. :040000 040000 bfe3c645c9b390c2bca2aa5b114ec10594142782 42a69b7988a9f3bc90a86a26401b5036ac41f876 M lisp HTH, thanks for your attention, Gregor In GNU Emacs 24.3.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2014-05-16 on babin, modified by Debian System Description: Debian GNU/Linux testing (jessie) Configured using: `configure '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/i386-linux-gnu' '--with-x=yes' '--with-x-toolkit=lucid' '--with-toolkit-scroll-bars' '--without-gconf' '--without-gsettings' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_COLLATE: de_DE.utf8 value of $LC_CTYPE: de_DE.utf8 value of $LC_MESSAGES: POSIX value of $LC_MONETARY: de_DE.utf8 value of $LC_NUMERIC: de_DE.utf8 value of $LC_TIME: de_DE.utf8 value of $LANG: de_DE.utf8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC x r e p o r t - e m a TAB RET Recent messages: ("emacs24") Loading term/xterm...done For information about GNU Emacs and the GNU system, type C-h C-a. 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 mail-prsvr mail-utils time-date tooltip 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 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 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 dynamic-setting font-render-setting x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 14 17:28:51 2014 Received: (at 17776) by debbugs.gnu.org; 14 Jun 2014 21:28:51 +0000 Received: from localhost ([127.0.0.1]:47981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvvVK-0005Mi-NN for submit@debbugs.gnu.org; Sat, 14 Jun 2014 17:28:51 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:38898) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvvVH-0005MO-NZ; Sat, 14 Jun 2014 17:28:48 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCw4mEhQYDSSIBAjSGReOGBEBUAeEOAEDqRmBaoFxgVshgTU X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCw4mEhQYDSSIBAjSGReOGBEBUAeEOAEDqRmBaoFxgVshgTU X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="66880042" Received: from 75-119-224-253.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 14 Jun 2014 17:28:42 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id B4EEDAE0BC; Sat, 14 Jun 2014 17:28:41 -0400 (EDT) From: Stefan Monnier To: Gregor Zattler Subject: Re: bug#17776: 24.3; bug? regression: xterm-mouse-mode does not work any more with rxvt-unicode Message-ID: References: <871turzxj3.fsf@boo.workgroup> Date: Sat, 14 Jun 2014 17:28:41 -0400 In-Reply-To: <871turzxj3.fsf@boo.workgroup> (Gregor Zattler's message of "Sat, 14 Jun 2014 10:49:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17776 Cc: 17776@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 (/) severity 17776 important found 17776 24.3.91 thanks > xterm-mouse-mode used to work under rxvt-unicode but does not any more. > I'm not sure who ist to blame (emacs or rxvt-unicode). IIUC you're saying it worked in 24.3 but it fails in 24.3.91, right (the email subject seems to say that it fails in 24.3, but the commit to which you bisected indicates the problem is new). Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 14 19:38:14 2014 Received: (at 17776) by debbugs.gnu.org; 14 Jun 2014 23:38:14 +0000 Received: from localhost ([127.0.0.1]:48005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvxWX-0001C5-Ls for submit@debbugs.gnu.org; Sat, 14 Jun 2014 19:38:13 -0400 Received: from mout.gmx.net ([212.227.17.22]:57695) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvxWT-0001Bi-Im for 17776@debbugs.gnu.org; Sat, 14 Jun 2014 19:38:10 -0400 Received: from boo.workgroup ([87.185.178.113]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MA8hF-1X2rPl3OG1-00BJTB; Sun, 15 Jun 2014 01:38:00 +0200 Received: from grfz by boo.workgroup with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1WvxWE-0002uH-K3; Sun, 15 Jun 2014 01:37:54 +0200 Date: Sun, 15 Jun 2014 01:37:24 +0200 From: Gregor Zattler To: Stefan Monnier Subject: Re: bug#17776: 24.3; bug? regression: xterm-mouse-mode does not work any more with rxvt-unicode Message-ID: <20140614233724.GA3488@boo.workgroup> Mail-Followup-To: Stefan Monnier , 17776@debbugs.gnu.org References: <871turzxj3.fsf@boo.workgroup> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:Fm1PD07/0wheWFML1FNSt0w9nqerNazcij6Cbl+KOmBsZmQGP9V YXxysng7zS+jrQ6j6dmc/Y6T2aBilD/0524GZeV0nFrCb+J7LO9qBFQZ+pz2v7I8jKQIvdN j4K3pDdHvYyGeUrCW2J12mVlpaYroXPvYotascppqUv2jyhj/OEPuxg72L08/5nyqKKQKTU Zhevm6cKlUeB82xArx5hw== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17776 Cc: 17776@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.0 (/) Hi Stefan, * Stefan Monnier [14. Jun. 2014]: > severity 17776 important > found 17776 24.3.91 > thanks > >> xterm-mouse-mode used to work under rxvt-unicode but does not any more. >> I'm not sure who ist to blame (emacs or rxvt-unicode). > > IIUC you're saying it worked in 24.3 but it fails in 24.3.91, right > (the email subject seems to say that it fails in 24.3, but the commit > to which you bisected indicates the problem is new). Yes, right, the version number in the subject is wrong. I actually tried to follow your advise from bug#17724 to use 24.3.9x in order to find bugs before the 24.4 release... Thanks for looking into this, Gregor From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 14 22:27:15 2014 Received: (at 17776) by debbugs.gnu.org; 15 Jun 2014 02:27:15 +0000 Received: from localhost ([127.0.0.1]:48094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ww0A6-0006Le-Mi for submit@debbugs.gnu.org; Sat, 14 Jun 2014 22:27:15 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:14165) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ww0A3-0006LP-8i for 17776@debbugs.gnu.org; Sat, 14 Jun 2014 22:27:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA0CYEXF3SCJQEBAQECAVYoCws0EhQYDYgoCNIZF48BFoQiBJRilDeBaoFxgVsh X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA0CYEXF3SCJQEBAQECAVYoCws0EhQYDYgoCNIZF48BFoQiBJRilDeBaoFxgVsh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="66890531" Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 14 Jun 2014 22:27:05 -0400 Received: by pastel.home (Postfix, from userid 20848) id 75B3B6047C; Sat, 14 Jun 2014 22:27:05 -0400 (EDT) From: Stefan Monnier To: 17776@debbugs.gnu.org Subject: Re: bug#17776: 24.3; bug? regression: xterm-mouse-mode does not work any more with rxvt-unicode Message-ID: References: <871turzxj3.fsf@boo.workgroup> <20140614233724.GA3488@boo.workgroup> Date: Sat, 14 Jun 2014 22:27:05 -0400 In-Reply-To: <20140614233724.GA3488@boo.workgroup> (Gregor Zattler's message of "Sun, 15 Jun 2014 01:37:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17776 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 (/) > Yes, right, the version number in the subject is wrong. I > actually tried to follow your advise from bug#17724 to use > 24.3.9x in order to find bugs before the 24.4 release... Great, thanks, so yes I can reproduce the problem here. It looks like rxvt-unicode uses yet some other escape sequences for mouse clicks which are not documented (but somehow worked) in the code. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 18 18:03:40 2014 Received: (at 17776-done) by debbugs.gnu.org; 18 Jun 2014 22:03:40 +0000 Received: from localhost ([127.0.0.1]:52207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WxNxE-0007hr-91 for submit@debbugs.gnu.org; Wed, 18 Jun 2014 18:03:40 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:33510) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WxNxB-0007he-L9 for 17776-done@debbugs.gnu.org; Wed, 18 Jun 2014 18:03:38 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWKAsLNBIUGA2IKAjSGRePARaEIgSpGYFqgXGBWyE X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWKAsLNBIUGA2IKAjSGRePARaEIgSpGYFqgXGBWyE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="67838730" Received: from 75-119-224-253.dsl.teksavvy.com (HELO ceviche.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 18 Jun 2014 18:03:31 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 5DBED6608C; Wed, 18 Jun 2014 18:03:31 -0400 (EDT) From: Stefan Monnier To: 17776-done@debbugs.gnu.org Subject: Re: bug#17776: 24.3; bug? regression: xterm-mouse-mode does not work any more with rxvt-unicode Message-ID: References: <871turzxj3.fsf@boo.workgroup> <20140614233724.GA3488@boo.workgroup> Date: Wed, 18 Jun 2014 18:03:31 -0400 In-Reply-To: (Stefan Monnier's message of "Sat, 14 Jun 2014 22:27:05 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17776-done 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 (/) > Great, thanks, so yes I can reproduce the problem here. > It looks like rxvt-unicode uses yet some other escape sequences for > mouse clicks which are not documented (but somehow worked) in the code. No, it was just a dump error on my part in the last change. I installed the patch below which fixes it. Sorry, and thanks for reporting it. Stefan --- lisp/xt-mouse.el 2014-05-08 01:46:15 +0000 +++ lisp/xt-mouse.el 2014-06-18 21:58:58 +0000 @@ -76,7 +76,7 @@ (is-down (string-match "down" (symbol-name (car down))))) ;; Retrieve the expected preface for the up-event. - (unless is-down + (when is-down (unless (cond ((null extension) (and (eq (read-event) ?\e) (eq (read-event) ?\[) From unknown Fri Sep 05 07:33:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 17 Jul 2014 11: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