From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arsen =?utf-8?Q?Arsenovi=C4=87?= Newsgroups: gmane.emacs.devel Subject: Re: Android port Date: Sun, 19 Feb 2023 15:42:06 +0100 Message-ID: <863571hfio.fsf@aarsen.me> References: <87ttzkmrw1.fsf.ref@yahoo.com> <87ttzkmrw1.fsf@yahoo.com> <86wn4ga1pa.fsf@aarsen.me> <86wn4d3luy.fsf@aarsen.me> <87ilfxhmlv.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21905"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 19 15:55:41 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 1pTl6K-0005P9-AT for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Feb 2023 15:55:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTl5X-0005Iy-Vj; Sun, 19 Feb 2023 09:54:52 -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 1pTl5W-0005Ih-2h for emacs-devel@gnu.org; Sun, 19 Feb 2023 09:54:50 -0500 Original-Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1pTl5U-0007pt-3Q for emacs-devel@gnu.org; Sun, 19 Feb 2023 09:54:49 -0500 Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4PKT9F4hs6z9sW9; Sun, 19 Feb 2023 15:54:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1676818481; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=191HIHPiLGGz7Zo9pOTKSCwUiBgTy21QelBc+5U4NUU=; b=zVXQ1NFnaiKFbZiueiuP3lvYo0zM8sHL5SMBPot0yySMUk163PBfItpTWWtKsLcS0VIZEd YyOLLca1fdGwdDlaVYvvxKQ5ORRFQkWDShoDe9dalUvKx98GJnSh/UOg0/NCffzDk/vTaE mMFxNKI9bj+ER2WaxKlomvysVakiuBbr39F7mODBOsnYioYASL4DA9p3dvayirzT1LU/wY RGxtltx5FY3qwYBKGrNxt2USs7v+lMVh12tXhzFbhN7qHL7UvMmqmBwybxn+oYc7hqschu N3uVDUA3KG8EjpHwdPP5MVTTLWwxNuU5+zy9l+Bf5CbS5Brs0V+rCvh7MfiH1w== In-reply-to: <87ilfxhmlv.fsf@yahoo.com> Received-SPF: pass client-ip=2001:67c:2050:0:465::202; envelope-from=arsen@aarsen.me; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:303572 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Po Lu writes: > Arsen Arsenovi=C4=87 writes: > >> Hi, >> >> While building initially, I got some make errors that looked like they >> were from a race, for example: >> >> GEN execinfo.h >> mv: cannot stat 'execinfo.h-t': No such file or directory >> >> Further confirming my suspicion that these are coming from a race is >> Emacs compiling fine if make is reinvoked, and that a non-parallel make >> build works fine. >> >> I figured this was a fluke initially, but, I reproduced the issue today. >> You can fetch the build log from here: >> https://www.aarsen.me/~arsen/emacs-races.script >> >> There also appears to be a dependency missing between generating the APK >> and running the pdumper, or such, since I could re-run make after make >> concluded in the nonparallel case. > > This should not be a problem, since the dumping happens on-device on > Android. Ah, OK. >> This seems pretty reproducible on my machine, I suspect due to the large >> number of -t files utilized in Gnulib. > > I will look into this, thanks. > >> While I'm around, I was also thinking about how to enable using the >> modifier keys on virtual keyboards without modifiers. I was considering >> mapping a key, say, KEYCODE_VOLUME_DOWN to ESC if pressed and Ctrl if >> held in combination with another key, hence, the sequence Press VolDown, >> Release VolDown, Press VolDown, Type x, Release VolDown would be parsed >> as ESC C-x, or C-M-x. Do you know if this is possible? All methods >> that I know rely on external tools (XKB configs, AHK, ...) that are not >> available on android. > > I'm not sure how to do this, since those keys are not ``meta modifiers'' > on the system. > > I'd recommend an on screen keyboard which has those modifier keys > instead. Indeed, that'd require some state tracking, for instance, on press reset a special-as-ctrl flag and set a special-held flag, if anything else is typed interpret it as C- if special-held is set and set special-as-ctrl, and on key release, reset special-held and emit an ESC if special-as-ctrl is reset. I'm not aware of a better solution because, as you said, these keys aren't modifiers, and register as normal keypresses. My thinking here is that providing an alternative for folk who don't use virtual keyboards with modifier keys already (which is, most likely, almost everyone) could ease their transition and help them with muscle memory. Have a splendid day. =2D-=20 Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCY/I4L18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy c2VuLm1lAAoJEFLClDAeosSTMWMA/ih2T3/xZg++onYqibKDEXdWY86KuxeUc3kD fKjBsQGeAP9nrV/Y18b5xt9adatUGCRqhyAlImqOKbNkp7DusV89DQ== =feMA -----END PGP SIGNATURE----- --=-=-=--