From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ant Newsgroups: gmane.emacs.devel Subject: Re: Android port of Emacs Date: Thu, 6 Jul 2023 17:48:01 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12310"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: emacs-devel@gnu.org To: luangruo@yahoo.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 06 17:51:15 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 1qHRGE-000325-Bn for ged-emacs-devel@m.gmane-mx.org; Thu, 06 Jul 2023 17:51:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHREe-0002Ig-ES; Thu, 06 Jul 2023 11:49:36 -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 1qHRDF-0002BH-Jv for emacs-devel@gnu.org; Thu, 06 Jul 2023 11:48:09 -0400 Original-Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHRDB-0007uZ-V2 for emacs-devel@gnu.org; Thu, 06 Jul 2023 11:48:08 -0400 Original-Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-99364ae9596so111411166b.1 for ; Thu, 06 Jul 2023 08:48:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688658484; x=1691250484; h=content-transfer-encoding:cc:content-language:subject:to:user-agent :mime-version:date:message-id:from:from:to:cc:subject:date :message-id:reply-to; bh=G1A/B4iVsMxp0myfwXw1aDdaYA5E4PmdDzPcaFTPyHU=; b=RFYo39NskNAz2Djdq7mAOGi9RfPq33cp+glYArVQw/+syjtjAJWo6l4rAknnPkGQQW 1ef7UVywjcJJgPFUCBDEo7Y8n/U/CKrIIUZuZhkQ8z2ZyAtVBIt+QhZhfsTiNDiMoN1x 23oxEBeP9Df0063bukkUmStYWp7CqeRcpvvB3PufMAyVVzviEvJsY+MjheAsD/AVarfX fq1TybQzJFiI+CJm4j75sgPhZwPwx8rvwQ/ve0gk6Sg89bO+kvrvcBgqCqd62ScfNi8P fy597uDy4p9W1Kb2zYogRUYhvqr2FuYVkipr+5Er/zKl2Wdso3gDBpfZX2jwfPTp+D0X 9JbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688658484; x=1691250484; h=content-transfer-encoding:cc:content-language:subject:to:user-agent :mime-version:date:message-id:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G1A/B4iVsMxp0myfwXw1aDdaYA5E4PmdDzPcaFTPyHU=; b=idU0PS+D2SwF826eBOxjlAPQv6Ucpt0SgA2XUG/0Lvn4xfs1dN01ghFtJQ9jJD2E9C WJx/SLIlO85jcCLx2RjS1b44rQt7hFGH2s0BGTNr3WagAPg0PkxkOqU5AiYl3ycc/b5X DgTY4AFbtjSevF1YxE1tKQZnMpFfoLlItA3v0/YKQ0o7puD0Sg4v2EdU0H2IkmWfzR9O 58Kk5gEBBSlSmVxKhB9fpZqE6iCwR1bgUPo0sFbIwoePEUwcghlMUdZQs9X5aD//3pV4 qPtqryUA5wvDsHqyoetKdVqNGKKF9F+565dcOoIVeMTc8h9OK+gEABPg6QLniTIsiUd/ VGGA== X-Gm-Message-State: ABy/qLYmjaxqpLhE264UWFf/6YgMAA0ggzIiojKJjbnSci4Ife97crN6 GnACANEIGdU34EQ8vRsjOU0= X-Google-Smtp-Source: APBJJlHlQ/R73Po1esJSmoLX73OYGUKXaNBmtqiyIyHmjtFXxuQxZziBxVE5V9y/bX1w7TRSao6PCg== X-Received: by 2002:a17:907:75db:b0:992:9a5e:3172 with SMTP id jl27-20020a17090775db00b009929a5e3172mr1707056ejc.59.1688658483523; Thu, 06 Jul 2023 08:48:03 -0700 (PDT) Original-Received: from ?IPV6:2001:b07:5d37:533e:346f:15eb:66d2:c3d7? ([2001:b07:5d37:533e:346f:15eb:66d2:c3d7]) by smtp.gmail.com with ESMTPSA id br17-20020a170906d15100b0098e17ea781csm969468ejb.94.2023.07.06.08.48.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Jul 2023 08:48:03 -0700 (PDT) X-Google-Original-From: Ant Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=ar0x2ff@gmail.com; helo=mail-ej1-x62a.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 06 Jul 2023 11:49:34 -0400 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:307516 Archived-At: * Po Lu: > I think I will look into providing modifier keys using the tool bar. Thank you for the addition. They for sure make Emacs for Android (or handheld devices in general) much more comfortable to use. The fact that having a modifier on temporarily overrides the text conversion style is very handy. I'd like to have modifiers on physical keys too, so I chose to re-use some of your functions: (define-key local-function-key-map (kbd "") #'tool-bar-event-apply-meta-modifier) (define-key local-function-key-map (kbd "") #'tool-bar-event-apply-control-modifier) And it works good, except when I want both modifiers on: pressing and then is recognized as M-.  The tool-bar-apply-modifiers function does address this issue and in fact it is possible to activate multiple modifiers through the new tool bar feature, but I'm unable to dig further and try to make it fit with physical keys. I just wanted to address this for everyone who wants to insert modifiers on Emacs for Android. And also, thank you again Po Lu for the addition.