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#48042: 26.3; Macros don't work with french-postfix input method Date: Sat, 15 May 2021 21:52:24 +0300 Message-ID: <83bl9bx21j.fsf@gnu.org> References: <86pmyghqf1.fsf@upmc.fr> <425cd7715bc9fae8b39a@heytings.org> <831ra9zi4x.fsf@gnu.org> <425cd7715bda5353110e@heytings.org> <83y2chxvg4.fsf@gnu.org> <425cd7715b4c15a15813@heytings.org> <83v97lxu0f.fsf@gnu.org> <425cd7715b770b248347@heytings.org> <834kf4xppr.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37473"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, harven@free.fr, 48042@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 15 20:53:29 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 1lhzPl-0009Xe-Df for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 20:53:29 +0200 Original-Received: from localhost ([::1]:49288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhzPj-0005J8-Fs for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 14:53:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhzPK-0005Ij-Uo for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 14:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhzPK-0003A5-22 for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 14:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhzPK-0004RN-00 for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 14:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 May 2021 18:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48042 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 48042-submit@debbugs.gnu.org id=B48042.162110476017039 (code B ref 48042); Sat, 15 May 2021 18:53:01 +0000 Original-Received: (at 48042) by debbugs.gnu.org; 15 May 2021 18:52:40 +0000 Original-Received: from localhost ([127.0.0.1]:49247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhzOx-0004Ql-SA for submit@debbugs.gnu.org; Sat, 15 May 2021 14:52:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhzOt-0004QV-1A for 48042@debbugs.gnu.org; Sat, 15 May 2021 14:52:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51176) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhzOm-0002pb-PD; Sat, 15 May 2021 14:52:28 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3574 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhzOl-0006ru-Pi; Sat, 15 May 2021 14:52:28 -0400 In-Reply-To: (message from Gregory Heytings on Sat, 15 May 2021 18:47:00 +0000) 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:206618 Archived-At: > Date: Sat, 15 May 2021 18:47:00 +0000 > From: Gregory Heytings > cc: monnier@iro.umontreal.ca, harven@free.fr, 48042@debbugs.gnu.org > > > To tell you the truth, I'm a bit worried that you inhibit recording > > everywhere in quail.el, which seems to contradict my analysis from back > > when I made the inhibit--record-char. How many different input methods > > did you try with macros and "C-h l" to make sure this change indeed > > causes Emacs to record each produced character just once, and nothing is > > either omitted or recorded more than once? Did you try some CJK input > > methods, for example, which offer several alternatives for each key > > sequence the user typed? > > I tried french-postfix, russian-computer, ucs, TeX, arabic, japanese and > chinese-py. From what I can see, everything works as expected, but I > don't speak or read these languages, and there are more than 200 input > methods, I cannot test them all. No one can test all of them, that's not what I meant. > > Btw, what happens if while this code runs, the user types something? We > > don't want those events to be cleared. > > > > It's quite hard to type something at that moment AFAICS, the whole > terminal initialization typically takes at most 50 ms. I tried to type > something as fast as possible during the terminal initialization, and what > happens is this (visible in *Messages*): > > q is undefined > M-] is undefined > ; is undefined > r is undefined > g is undefined > b is undefined > : is undefined > f is undefined [4 times] > / is undefined > f is undefined [4 times] > / is undefined > f is undefined [4 times] > > or this: > > q is undefined > M-[ > is undefined > ; is undefined [2 times] > c is undefined > > The first key is the pressed key ("q"), the other keys are some of the > keys of the terminal initialization process (the digits are bound to > digit-argument in the *GNU Emacs* buffer and are therefore not undefined): > > ESC [ > ESC [ > 4 1 ; 3 6 6 ; 0 c ESC ] 1 1 ; r g b : f f f f / f f f f / > f f f f ESC \ > > IOW, if the user presses something at that moment, the terminal > initialization process does not work as expected. So maybe we shouldn't discard the input if the initialization fails? Otherwise we leave no traces that could allow understanding what happened. Thanks.