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.devel Subject: Re: Android input methods Date: Mon, 13 Feb 2023 19:04:12 +0200 Message-ID: <83y1p1ebub.fsf@gnu.org> References: <83r0uvghw7.fsf@gnu.org> <87k00nyo60.fsf@yahoo.com> <83ilg7gdjj.fsf@gnu.org> <87bklyzyyj.fsf_-_@yahoo.com> <83a61iho6r.fsf@gnu.org> <87ttzqxq3f.fsf@yahoo.com> <83cz6dfzet.fsf@gnu.org> <87edqtws0w.fsf@yahoo.com> <835yc5fvd1.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15625"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: luangruo@yahoo.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 13 18:06:01 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pRcHB-0003tM-Iv for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Feb 2023 18:06:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRcFq-000098-Bk; Mon, 13 Feb 2023 12:04:38 -0500 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 1pRcFp-00008Y-1d for emacs-devel@gnu.org; Mon, 13 Feb 2023 12:04:37 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRcFo-0007zC-PA; Mon, 13 Feb 2023 12:04:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=POAG7m9++acJRWrt+tfU8Ihe2Hy+hqTPbQnH//7G9Dg=; b=KBe+Mk8X5QJ7 dY/CXbuv68xrpck3Wn08qAfvsFLuT9uGFmgeLDmM9oTkCjQFsb0nUC0C567esYRekMeMopdoE7/ST EZZ63aV69g7NsnzpI0a75+HYIYywrSeXgcPyJrtW372WFqIJA9Be5NJLWof+RZeCYYLJYku0fkjf1 sy5ai7QcsfU2MJDGSLT8W4fyqHBabH1cRZ8m8jRrLkD4JTbpcCm58zYi9erMGg5zMBWcdtTNWsIml rYu1O8TL40Kv/xFCsl5qxJmAnLtqnxOxvaRJudiYsFDbLd26eDJHdvehUCf7NojY99H2zXB46cZov nR/tg8ZWkFQghcVfNxiqXw==; Original-Received: from [87.69.77.57] (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 1pRcFo-00056k-8H; Mon, 13 Feb 2023 12:04:36 -0500 In-Reply-To: <835yc5fvd1.fsf@gnu.org> (message from Eli Zaretskii on Mon, 13 Feb 2023 17:17:14 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303222 Archived-At: > Date: Mon, 13 Feb 2023 17:17:14 +0200 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > > From: Po Lu > > Cc: emacs-devel@gnu.org > > Date: Mon, 13 Feb 2023 22:37:19 +0800 > > > > Eli Zaretskii writes: > > > > >> My problem is that modes such as `electric-indent-mode' expect, for > > >> example, newline characters to be inserted by the return key, and do not > > >> indent if the change is made directly by the input method. > > > > > > is the only problem with such modes? Or are there other issues? > > > > There are many others: consider the vc-dir buffer: when you type ``mmmm > > i'', it expects individual key presses, each one of which marks a file > > or registers it with the VC system. > > These commands don't insert text, so I'm unsure how they are > relevant. The "mmm" is not inserted into a buffer, it is a series of > 3 commands. Come to think of this, we should simply turn off the input method in these situations. Basically, all special-modes don't want input methods to interfere -- except when those modes prompt the user for some text. So I think we need a way for Emacs to turn the input method on and off as needed.