From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brady Newsgroups: gmane.emacs.bugs Subject: bug#45834: 28.0.50; Mouse events in terminal emacs Date: Tue, 12 Jan 2021 15:29:00 -0800 Message-ID: <4653d6b7-8824-4113-ac5a-2793b9d84c8c@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17864"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-45-g4839256-fm-20210104.001-g48392560 To: 45834@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 13 00:43:17 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzTJk-0004Vk-Sr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jan 2021 00:43:17 +0100 Original-Received: from localhost ([::1]:39116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzTJj-0005fE-Jd for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jan 2021 18:43:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzTJZ-0005eX-28 for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 18:43:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50373) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzTJY-0005VQ-Qw for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 18:43:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kzTJY-0003GK-PL for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 18:43:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jan 2021 23:43:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45834 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161049495212453 (code B ref -1); Tue, 12 Jan 2021 23:43:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jan 2021 23:42:32 +0000 Original-Received: from localhost ([127.0.0.1]:33683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzTJ1-0003Eg-JR for submit@debbugs.gnu.org; Tue, 12 Jan 2021 18:42:31 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:55462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzT6L-0002ti-AI for submit@debbugs.gnu.org; Tue, 12 Jan 2021 18:29:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzT6L-00029z-2l for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 18:29:25 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:37143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzT6J-0000XK-1j for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 18:29:24 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 2C1425C057C for ; Tue, 12 Jan 2021 18:29:21 -0500 (EST) Original-Received: from imap21 ([10.202.2.71]) by compute3.internal (MEProxy); Tue, 12 Jan 2021 18:29:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tangential.info; h=mime-version:message-id:date:from:to:subject:content-type; s= fm2; bh=dgLEGtOW+vk2USdJDD69Dl1+sY5BEzkc1mwGijWhkmM=; b=PfEJtcKP c5RJDLdMKU0vx3JabIa9MbaKliFtE2SQcJXbHWIQw3IVJuqsqWjTiQJCKX9gHIJj 2NTcBVMZbu+MuUm2cxJq+vwy2qUtV02yFr4TCgclhcDflS+wSO8PE2NvETatjN3W S4Le8t1ooBwN5FMmplo0GivYHPg/mAcJ0eHDUNKhqL5zOtipM+CHvMJnI6ti7sSC 2ECj6cEsTNn2bm5eEq211DbcPO5A6zRueW99wKPornr6WJ4JZ6cy8ohAf/y8Lnr4 QMzGIsNuLNY/us3Kve6fn7eY7SNoBn25a217Kzf1oURnc7qZWMfZ+LCs6MMu1mXC iAlW9dJqQviJew== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=dgLEGtOW+vk2USdJDD69Dl1+sY5BE zkc1mwGijWhkmM=; b=B1iT43KlCuigE9DCT5bX1IWBaNymgAK5NAWWrEDPZ88ub 1BFSlQH5eoFE479ff8VWKiHMuci9WuHqw8DVwPGCl14uVyZtmT2F9QyGgoYUc8QQ bMnKCEgh78WLWL69BnQl9IeXj+mdnEXFMOTRIsFKgwLBAgWoOppb21o8LxUMpt4J +KPGCRT3iE4jJjPLXJJwpW0fRdN0EAWUVVaKSUufvk9HUXTkjyhI0cvkTTPowG43 Bj4/BJyqRYMfIb2LJ6eIn+TLOzkFKjv1Oe6cGOX0C09AZ5aSNHctjqpg35QfRxug t7roavNC5T0LIxR/tni1OKxzIjqlbSm/zcpMtWBYQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedukedrtddugdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtredtre ertdenucfhrhhomhepuehrrgguhicuoegsuhhgqdhgnhhuqdgvmhgrtghspggrthgpghhn uhdrohhrghesthgrnhhgvghnthhirghlrdhinhhfoheqnecuggftrfgrthhtvghrnhepgf fgvdeggefhveeiledvjeegleekgedtteeguddvleektddtieekleelvedtgfejnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsghughdqghhnuh dqvghmrggtshgprghtpghgnhhurdhorhhgsehtrghnghgvnhhtihgrlhdrihhnfhho X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id E102E6F60060; Tue, 12 Jan 2021 18:29:20 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Received-SPF: pass client-ip=66.111.4.27; envelope-from=bug-gnu-emacs_at_gnu.org@tangential.info; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 12 Jan 2021 18:42:26 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:197868 Archived-At: Tested with emacs -Q -nw, in Terminal.app, with TERM=xterm-256color. The issue does not reproduce with TERM=rxvt. If I press "C-h k", and then switch to another application, then this is registered as "ESC [ I-", and then upon switching back, as "ESC [ O-". I think this is about mouse events, in and out, or "I" and "O". I think since I actually have M-[ bound to resize windows (without -Q), then this allows I and O to be passed to emacs and inserted as text, or for more strange behavior in other modes like evil or magit. I'm not sure if this is considered an emacs problem, or if there is an idea for a workaround, besides perhaps unbinding M-[. I just tested in a debian VM as well, with snapd's emacs 27.1, and the same issue occurs, C-h k, then M-TAB to switch to other application shows ESC [ I- in minibuffer. Similarly issue is seen with TERM=xterm-256color but not with rxvt. Thank you, -Brady In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H2)) of 2020-10-25 built on clay.local Repository revision: 10ea719abcde4f2ee40e717eb846fe93f51d5d79 Repository branch: master System Description: Mac OS X 10.15.7 Configured features: NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS PDUMPER Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-extra shortdoc seq help-fns radix-tree help-mode easymenu cl-loaddefs cl-lib term/xterm xterm byte-opt gv bytecomp byte-compile cconv tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 61436 5322) (symbols 48 6973 1) (strings 32 19556 966) (string-bytes 1 625828) (vectors 16 9903) (vector-slots 8 124271 9350) (floats 8 95 309) (intervals 56 351 0) (buffers 992 12))