From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45834: 28.0.50; Mouse events in terminal emacs Date: Tue, 19 Jan 2021 17:38:22 +0200 Message-ID: <831reh7x8x.fsf@gnu.org> References: <4653d6b7-8824-4113-ac5a-2793b9d84c8c@www.fastmail.com> <87k0s9mnxs.fsf@gnus.org> <87v9bthryl.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1734"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45834@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 19 17:05:14 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 1l1tVK-0000Jb-0q for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 17:05:14 +0100 Original-Received: from localhost ([::1]:40844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1tVI-00088h-UD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 11:05:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1t5y-0007gS-Cc for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 10:39:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39771) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1t5y-0005Ls-5H for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 10:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l1t5y-0004ZQ-2S for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 10:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jan 2021 15:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45834 X-GNU-PR-Package: emacs Original-Received: via spool by 45834-submit@debbugs.gnu.org id=B45834.161107070517493 (code B ref 45834); Tue, 19 Jan 2021 15:39:02 +0000 Original-Received: (at 45834) by debbugs.gnu.org; 19 Jan 2021 15:38:25 +0000 Original-Received: from localhost ([127.0.0.1]:51316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1t5N-0004Y5-37 for submit@debbugs.gnu.org; Tue, 19 Jan 2021 10:38:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1t5K-0004Xo-P5 for 45834@debbugs.gnu.org; Tue, 19 Jan 2021 10:38:23 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54255) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1t5E-0005IE-Ud; Tue, 19 Jan 2021 10:38:17 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4925 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l1t5A-0002wg-3M; Tue, 19 Jan 2021 10:38:16 -0500 In-Reply-To: <87v9bthryl.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 19 Jan 2021 16:22:26 +0100) 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:198175 Archived-At: > From: Lars Ingebrigtsen > Cc: 45834@debbugs.gnu.org > Date: Tue, 19 Jan 2021 16:22:26 +0100 > > Eli Zaretskii writes: > > > I think it's the focus-in event that we somehow mishandle. See > > xterm.el, search for "\e[I" (without the quotes). > > Instrumenting the xterm-translate-focus-in/out functions shows that > they are being called, so that bit apparently works correctly? > > However, if I say (read-event "foo: ") and then click on another window, > I get the following return value, which... I probably shouldn't? Or > should I? > > 27[O > > The reported test case is actually in > > (read-key-sequence "foo: ") > > and it won't actually return the \e[O, but will just append it to the > prompt. Does this work in Emacs 27? If it does, I suspect one of the recent changes in the input handling stuff...