From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#33749: 26.1; input-decode-map to empty vector should preserve echo area Date: Thu, 20 Dec 2018 13:56:39 -0500 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1545333664 5868 195.159.176.226 (20 Dec 2018 19:21:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 20 Dec 2018 19:21:04 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 33749@debbugs.gnu.org To: Yuri Khan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 20 20:21:00 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ga3sP-0001K5-Hc for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Dec 2018 20:20:57 +0100 Original-Received: from localhost ([::1]:39531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ga3uW-0006VX-9K for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Dec 2018 14:23:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ga3VR-00031V-7x for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2018 13:57:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ga3VI-0008BQ-Bp for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2018 13:57:10 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52475) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ga3VF-00088t-SW for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2018 13:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ga3VF-0003l9-Qg for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2018 13:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Dec 2018 18:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33749 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33749-submit@debbugs.gnu.org id=B33749.154533220814419 (code B ref 33749); Thu, 20 Dec 2018 18:57:01 +0000 Original-Received: (at 33749) by debbugs.gnu.org; 20 Dec 2018 18:56:48 +0000 Original-Received: from localhost ([127.0.0.1]:56733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ga3V1-0003kV-Ql for submit@debbugs.gnu.org; Thu, 20 Dec 2018 13:56:47 -0500 Original-Received: from alt42.smtp-out.videotron.ca ([23.233.128.29]:60318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ga3V0-0003kB-4r for 33749@debbugs.gnu.org; Thu, 20 Dec 2018 13:56:46 -0500 Original-Received: from fmsmemgm.homelinux.net ([23.233.195.134]) by Videotron with SMTP id a3UtgxsclFsgZa3Uugrzj8; Thu, 20 Dec 2018 13:56:40 -0500 X-Authority-Analysis: v=2.3 cv=Y7LWTCWN c=1 sm=1 tr=0 a=xXJ578j8WyTliCxld3/pTA==:117 a=xXJ578j8WyTliCxld3/pTA==:17 a=IkcTkHD0fZMA:10 a=2ur7OfE09M0A:10 a=YSjo-HGSELHF2Ga8TOwA:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=QEXdDO2ut3YA:10 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 2112DAE59B; Thu, 20 Dec 2018 13:56:39 -0500 (EST) In-Reply-To: (Yuri Khan's message of "Fri, 21 Dec 2018 00:33:28 +0700") X-CMAE-Envelope: MS4wfDTwr6sZ4yUqOzlRG6nlZuaX9I+ppgWU8/POztNPnAhZL0DeE15HuQyyvb3v9o7rM5HwUicZHVTz2gJ7guOqYVX3cWU1A1P+CdU14JXwYSpZiYUGjN+5 ofNdAltWzrbfYgiWDG4j3+xsRWOaBXH7PKoP170NZW9o+oav1DBQGg1B8xyMOhbEUhz4D7+YQbltqsZ2i31fI7YYf1SFmO6VB7xCmwCn+kPYYLtqYByAhh+0 vFlqq3VqhzxSVunzuxeVvKhmzFhucN8DCU5h4VlV1sc= 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: 208.118.235.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:153646 Archived-At: > There are many of these, that I considered it impractical to attempt > to prevent them all from happening. They're probably not all guilty. That's why I'm asking if you've been able to find which one is the culprit. > safe_run_hooks (Qecho_area_clear_hook); > =E2=86=92 clear_message (1, 0); > } [...] > if (INTERACTIVE && t < mock_input) > =E2=86=92 echo_truncate (echo_start); > [...] > if (INTERACTIVE && t < mock_input) > =E2=86=92 echo_truncate (echo_local_start); > this_command_key_count =3D keys_local_start; Are you saying that if you neuter all three of those, the problem disappears? If you keep any one of those is the problem still present? >> Also, who/where do you intend to set input-decode-preserve-echo? > > My current plan is: > > * term/xterm-kitty.el will define a (customizable?) user variable > kitty-use-full-keyboard, boolean, default nil. > * If it is nil, =E2=80=98terminal-init-xterm-kitty=E2=80=99 will call > (terminal-init-xterm) and call it a day. > * If =E2=80=98kitty-use-full-keyboard=E2=80=99 has been set to non-nil, > =E2=80=98terminal-init-xterm-kitty=E2=80=99 will send to the terminal the= escape > sequence enabling full keyboard mode (CSI ? 2 0 1 7 h), set up > =E2=80=98input-decode-map=E2=80=99 and =E2=80=98local-function-key-map=E2= =80=99 as appropriate for > that mode, set =E2=80=98input-decode-preserve-echo=E2=80=99 to =E2=80=98t= =E2=80=99, and perform other > xterm-like initialization such as bracketed paste, clipboard/selection > control, mouse, etc. Ah, so you're planning to set it once and for all globally? That would really make it a workaround more than a fix, I think. Stefan