From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37782: Emacs 27 client adding [I] to the beginning of the buffer Date: Sat, 26 Oct 2019 13:30:54 +0300 Message-ID: <83k18rvlwh.fsf@gnu.org> References: <831rvbdcjq.fsf@gnu.org> <83d0evbjb1.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="214210"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37782-done@debbugs.gnu.org To: Carlos Pita Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 26 12:32:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iOJMm-000tYV-0w for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Oct 2019 12:32:16 +0200 Original-Received: from localhost ([::1]:39620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOJMk-0007DA-R4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Oct 2019 06:32:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59845) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOJMZ-00076x-RL for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2019 06:32:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iOJMY-0005PZ-Ol for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2019 06:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59133) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iOJMY-0005PP-ML for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2019 06:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iOJMY-0007ef-Iw for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2019 06:32:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Oct 2019 10:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 37782 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 37782@debbugs.gnu.org, eliz@gnu.org, carlosjosepita@gmail.com Original-Received: via spool by 37782-done@debbugs.gnu.org id=D37782.157208587629364 (code D ref 37782); Sat, 26 Oct 2019 10:32:02 +0000 Original-Received: (at 37782-done) by debbugs.gnu.org; 26 Oct 2019 10:31:16 +0000 Original-Received: from localhost ([127.0.0.1]:39720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iOJLm-0007dX-KC for submit@debbugs.gnu.org; Sat, 26 Oct 2019 06:31:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iOJLi-0007dI-Fk for 37782-done@debbugs.gnu.org; Sat, 26 Oct 2019 06:31:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iOJLd-00054g-Bm; Sat, 26 Oct 2019 06:31:05 -0400 Original-Received: from [176.228.60.248] (port=4586 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iOJLc-0006mC-Fw; Sat, 26 Oct 2019 06:31:04 -0400 In-reply-to: (message from Carlos Pita on Sat, 19 Oct 2019 00:20:05 -0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170188 Archived-At: > From: Carlos Pita > Date: Sat, 19 Oct 2019 00:20:05 -0300 > Cc: 37782@debbugs.gnu.org > > The problem with the fix for #5095 is that it's dropping the current > event, which is a valid char event and not -2. Thus, the first esc > char sent by the terminal after turning on focus tracking is lost and > we get `[`, `I` events separately inserted into the buffer afterwards. > > Attached is a patch that replays key as mock input when it's not -2. Thanks, pushed, and closing the bug.