From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62190: 30.0.50; analyze-text-conversion in Android Date: Tue, 14 Mar 2023 13:29:43 -0400 Message-ID: Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7761"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu To: 62190@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 14 18:30:30 2023 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 1pc8Tl-0001nO-Tu for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Mar 2023 18:30:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pc8TV-0004pE-4T; Tue, 14 Mar 2023 13:30:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pc8TL-0004or-Eo for bug-gnu-emacs@gnu.org; Tue, 14 Mar 2023 13:30:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pc8TK-00011v-Mb for bug-gnu-emacs@gnu.org; Tue, 14 Mar 2023 13:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pc8TK-0005mB-Br; Tue, 14 Mar 2023 13:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: luangruo@yahoo.com, bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Mar 2023 17:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62190 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Po Lu Original-Received: via spool by submit@debbugs.gnu.org id=B.167881499622157 (code B ref -1); Tue, 14 Mar 2023 17:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Mar 2023 17:29:56 +0000 Original-Received: from localhost ([127.0.0.1]:38365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pc8TD-0005lJ-HH for submit@debbugs.gnu.org; Tue, 14 Mar 2023 13:29:55 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pc8TA-0005l4-FQ for submit@debbugs.gnu.org; Tue, 14 Mar 2023 13:29:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pc8T9-0004mo-Tp for bug-gnu-emacs@gnu.org; Tue, 14 Mar 2023 13:29:52 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pc8T8-000109-CG for bug-gnu-emacs@gnu.org; Tue, 14 Mar 2023 13:29:51 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 289281000CA; Tue, 14 Mar 2023 13:29:46 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 362531000BC; Tue, 14 Mar 2023 13:29:44 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1678814984; bh=az9k8bHWUnGSxDNdDF6NmahhGwe+LTVRGOoo01eH9m8=; h=From:To:Subject:Date:From; b=FiZX+T9AqafYsTwOkXH0H2gpYNIIhAG/DHecdFXF4BC6zLYgsNkvLPpFqyB2j8Xk3 2h5xqhAiYk9nzF+tmzMqWSYU5mIiK0iyTuJtKPn3ATffappH661lRDvsXKhNjpNpn3 74YqH93QxYnIInBLGXjzadksT7Uu9TUY0d9PzLPvjQDBE0DIiOu5dyeu18XtuxN0T+ voqrUCIXjCBdwbSubboV8HAO3shwKSGy4iL7JLeR+c0jJw3tL5Dsx7sYAhezcwEh+l E9BCq28iSq30t++0UwUWX4WLXtPok+KZJSNhimbGT6F4tIm+5NpRghOC6bA87gWdfp hKW9dnwInbh/A== Original-Received: from pastel (unknown [216.154.34.24]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1211312328D; Tue, 14 Mar 2023 13:29:44 -0400 (EDT) Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:257942 Archived-At: Package: Emacs Version: 30.0.50 I tried out the Emacs distributed on F-Droid, which is apparently built from our feature/android work, and I bumped into `analyze-text-conversion`. Currently, this breaks things like `ESC x` (I don't have Meta/Alt on my keyboard) or `C-h l` because the second event I get is not a letter (like `x` or `l`) but the event `text-conversion`. I guess this may depend on the keyboard, admittedly. IIUC this is tied to the feature whereby you can "build" a word from the keyboard before sending it "for real" to Emacs, but you get to see this word in your buffer before it's "committed"? Maybe `text-conversion` should not be generated when we're "in the middle" of `read-key-sequence`? Or maybe `text-conversion` should be turned into a sequence of "normal" events via `input-decode-map`? Or maybe more of the event processing should be done in ELisp and less in C (i.e. the raw events would be exposed to ELisp and they'd be processed a bit more like we do with our input-methods)? I'm not very knowledgeable about this topic (under Android I use my on-screen keyboards as if they were normal keyboards, very rarely even making use of the predictive features). Stefan