From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Disable text conversion in map-ynp Date: Mon, 06 May 2024 22:14:28 +0800 Message-ID: <87h6fb3u4b.fsf@yahoo.com> References: <86pltzb0v0.fsf@gnu.org> <87pltz3y7b.fsf@yahoo.com> <86o79jawhp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19842"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 06 16:15:50 2024 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 1s3z8A-0004st-8G for ged-emacs-devel@m.gmane-mx.org; Mon, 06 May 2024 16:15:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3z7l-0004pD-6h; Mon, 06 May 2024 10:15:25 -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 1s3z7Q-0004jJ-Dq for emacs-devel@gnu.org; Mon, 06 May 2024 10:15:09 -0400 Original-Received: from sonic310-24.consmr.mail.ne1.yahoo.com ([66.163.186.205]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3z7L-0005G1-SW for emacs-devel@gnu.org; Mon, 06 May 2024 10:15:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1715004896; bh=2FYS4Krzp33OqgpKm+iQDJhnKQZYUm4r2s52bRH7GW0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=BZy/qtJHDRix72XA42l7qMWeTJUC3982SFIdEQf5Yr3t8TnGSGqROdI5ULbn8sEE8q24vyqfy82Hhq9JhdeXvYFDi/xhXED2BEGZsFmrGb0lRbCbWX+CLwYjGXm1bICAP8xyqbgOfgdD6X1GW7xTx4W3I8rAMt4ku+EcSpbtuU4CeL/2KUN8REjcJtMsrwv4Ez5fpIy79R6illP+E3vRVtTzeFcCy0mo+N5V96douVFL/S9qUMMGX8YG14bNDlxpLSlLsahjDPnNSg/ykdp7bRQ4zuhQ6asQ0b6giG6Sgh7SuyBAhuqeYWqBTfC2OSa7zlrQVmPCjfgRttBSJZuw8g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1715004896; bh=LuYOlp/mpzA6vslpIJzrV+T2NqLt2UjTnH3ZaPwM+WA=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=bcY7CSF7C6i0KanFcbKe717NZ02OjVccnNMfoPn9Dww4va7ST4ZohpMWb31oqPAtOOSHI7Q6zrttbC5PKrHLWIen1Uu6Uuhgb/3Ljqrn04lwEOBKc5xom0HZe3K7WuAxtxjuLKzLU5ZZnNHueMlMGti5jL4ggTHvqwKBRqpclM6UiodW7810ekgx4LJU0P2R09t6dC5+w2z7veuZyizo/ON3Oe9f++Znh3npagJSdjylxVPLYBfhr+Ob8wcotfnHjyEJtlJJPjcBOfwZ32zRAjpCdh87Lev5GTSLHDU4CWgi64HcCDZr4U1412SEiTT/oWxOsSR4NNciNGWLoG+kwg== X-YMail-OSG: uXXtr5QVM1nc8LAzEioVx8M8qserfmDC00lt8j4lJYdpT0EtYEBObonoQ9hNLvE M3tBP3SidumjhzkvBGTfGi5_xt9c2MOQd8jYEl3wnKuqSnIoixGJdcMvcN6RecjPiyJFFUdjbmG2 ApGROBpePefX4wqi0YAODz4PN0rscI401Ki9.sEhVNWChePKjp12r541kzfW_f009rmHfPsW.MH8 6zCzQ6dYcHpUzzCm3Lo..xY1QwRPHuKhkk2nZwdGgFR_6zWM3PZPTZcoVX_506dBo0JoXIH5jhy7 VWVBhcevlX7i50ymQDKq6hE0iz1mXoQsp4okJl_SOt9caB117zJ5OXUHKGfiF42l5SCmzfXS6X08 NJmXzSrC7ApJhOa6KVzO42dNo5KKeToQpE6LpXIm0vytETPhlQ1vzSif7j2Oose8x_5P_vDI_Gex hqifPQcwYxoU4UmhQy0HRTt6FySjFgjNmKQPKR0o.ASHqUyf9f5.kIUJx6XBW3XeXlJwvj4zTkD1 aigz2OAvFzPOLQydlyIhETg2ZgmmgXW0Kt8nR4DFoqmXiVrEgC631EwjZdK44QpiPrQqMFJOghx6 uajd0EPdSb37tC0kZ0.QOOPK3g7lUlUi5avYLQMoVjFjs36QAqbXOP94.NsvyuLdSk1kRRaGdclO .oeWOaarVDZO.ghfZMCA8g7fnAxmBBCHODC0OF8XzXKWcfLaNau6tsen244ovbmCzcgx2IFh1hws t7G.tsSU9Rvv.UM44nDqMfI5ZcPHw3meEe2KyjqWoW7U4FFm30zq3Eq_eVHpFm0I8Jrt6hNRPOMl u0wWaGmIQcyOoBDY.mmTMqMwCOGaN8j8gUc8oDMu89 X-Sonic-MF: X-Sonic-ID: d5e9bc3b-c00e-4048-be45-6d968fae8036 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Mon, 6 May 2024 14:14:56 +0000 Original-Received: by hermes--production-sg3-6f9f87bd85-k6cpg (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID bdc3376f9b3ea1138574f9f8bcacb23e; Mon, 06 May 2024 14:14:53 +0000 (UTC) In-Reply-To: <86o79jawhp.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 06 May 2024 16:41:22 +0300") X-Mailer: WebService/1.1.22321 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.205; envelope-from=luangruo@yahoo.com; helo=sonic310-24.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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:318897 Archived-At: Eli Zaretskii writes: > Thanks, but I don't think I understand the issue, given the above > description. For starters, you changed read-event to read-key, not > the other way around. So does it mean it's read-key that is supposed > to prevent text conversion, while read-event does not? Yes, sorry. See the doc string of read-key: Also in contrast to `read-event', input method text conversion will be disabled while the key sequence is read, so that character input events will always be generated for keyboard input. > Also, read-event disables input methods if its 2nd argument is nil > (which it is in this case) -- does this mean that fact does not affect > the Android input methods? INHERIT-INPUT-METHOD only affects Emacs input methods, yes. > and if so, is there a way to suppress input methods on Android while > still calling read-event? There could be, but it would entail calling read-char rather than read-event, or introducing a new parameter to read-event. I'm not sure the former is any more correct than calling read-key. > IOW, I'd like to keep using read-event, but make sure text-conversion > doesn't happen, instead of switching to read-key. And if that's > impossible for some reason, how about using read-key only on Android? I think an informed conclusion would be easier to draw if you directed me to previous occasions where issues arose from switching from read-key to read-event in similar contexts.