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: Android port Date: Sun, 19 Feb 2023 10:13:28 +0800 Message-ID: <87mt5ajtbr.fsf@yahoo.com> References: <912677799.460919.1676709333977@mail1.libero.it> <87zg9bjrfi.fsf@yahoo.com> <2083511697.508112.1676757486753@mail1.libero.it> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25370"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "emacs-devel@gnu.org" To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 19 03:16:44 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 1pTZFr-0006Qi-DN for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Feb 2023 03:16:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTZF1-0000Vh-4D; Sat, 18 Feb 2023 21:15:51 -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 1pTZEu-0000VX-GD for emacs-devel@gnu.org; Sat, 18 Feb 2023 21:15:44 -0500 Original-Received: from sonic316-48.consmr.mail.ne1.yahoo.com ([66.163.187.174]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTZEs-0006km-Ir for emacs-devel@gnu.org; Sat, 18 Feb 2023 21:15:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676772938; bh=KmAreNv/1VMhecF8cIcHNXAgFOJEHyCUa9+mmKqsa7M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=GX1cLv+0UZcIDMEWELgy//JCWbqWDSQU+CNBdt8/j1Dt5cubqa3oCXXSM81537xgfZieKuWIIFs3GnmJx7lNHRVHsgpF+cMlfBHjhDLEyGUvf/i8v2NAU2PaJuwugPv0178ygyo9SIWrn8edYOuIxqaXHDuQAxKam/Q0O7GaMpfg7O/EGzoBJKpHMvjb/4joycMICS7cJjXYAHgjXRP1z7eWalCVXngZHHuH6R9ZWLeIVsskJv6ptfl+yFNxtz9NDyI6SO49NoZLVwW/r7WYCkMGMhIdSYtfoqnbpYjdyUEIHcZA4TgOJRbw06t6OILJjd9mcACJbjdcNQ65J6slQg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676772938; bh=YS0yMbd2UVj/3twiOCNSx/v3cX3HL3tJe2yJu+Xze0G=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=A0dwNMRl8W+QfIHVNNUYiVAtG+/Se6RRF72uMrR2BwxgEFNxWaJe0VOesbpGokBWT0eDz4HUTPTFalK7e2EtFAqZ5T7IpYI7xQnWngRjl2+5w6u8MLXeM8hAdXnTGgYE9D1sLkm3JHyU5ouyPEmlrmEILPRCTkGJx8fSufYyq2nkRICFt89CiY3eIMYG+TBzry4fFc4Qj2ddUxgvfqFbFKujPpOoX8lwIYJ0j280T9tP8Lfok2M71FE+cnuaWjUeJwJWL2geR3rHfANQ787HFT/F/nS9H7ZnCe411Bs5cqxdsMiXmAKf/WnSIxKzTKR9eW2piLBkKLZ4b9x1I5Gy/g== X-YMail-OSG: ogrfAcwVM1m4R5h2FBH_tBnnG1nAGmep9qOuVkitJQ1tRotBSf8jcqJU65i3cn0 r_vCJW7OQTKECbSLkZrOW8vWXOpqQ7By5nik3j08m7gghQ7.stAC.76BxMLYDmQY4dqTZcvFb69A i1uV5ESKIvE.qcWgKpOOthtdGHAml8E1aEcJllHK6rwD.N108asonfZoj1L82rPVwqI9MacWAPha L6Q0f5CroLT9Pq3PG8o0MCn2aXS28NxoQywum6dbYhEb3sA.Ad0d_fka.xyU0tLBYeN7wKDVR7z. 3aM1WmRUsh21rV33QOcuiHOx32Ad3vU.xYWtL_wGY1MWTuzhIOuZmrkiHm0heu.iAguBv6fKOFZk 1uAZ2Zh4MCmPZmQK6uLIjaR4JzKLXTWahHgJXPv5NFB3gl0PzaV.ED67k8.jV2dqOOCF2Mul2w26 _oP1jj4T7INJdNjo9fVwisvEDA_PmbIuPAU6kkGPLjgxNeiiqy7rPhY4K7uQCd4_M.tWnoAUxW0N EXIWv2ZLG_xAm5fOWKm0tZ9maTDpfNS3V3pRgOuTu9M5SoyFyjTRj0yYBkvCLHQ6XEHbqfgSMgT. 9Ez_oLq3Rsj661pE4KX3oJxsLfBnledDJHj6Mm_jweMFa3jHXWokSjn4ZMhvfHsB3exM7iPDtRDz ABhAQoc8iOca0Um0cs24wAaU.2laGFtxHiRygLcE9ilETqq6syd_wYsuOwawIvPO1ofjry5vpNWM 7PHogvXl6UTWWNqKLz.gX6tYYlxhoSgNzaH6Bo7m6YEhb4RAWdlrudeQnPWSnBnizo0UW12XEORE iZ_0o3ZNCe4RbuFB2MrEioAV2VTdsLbTWiULjz0XxM X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Sun, 19 Feb 2023 02:15:38 +0000 Original-Received: by hermes--production-sg3-9fc5746c8-2jxhw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID daac4e52548febc8f35dad2a09f9c03f; Sun, 19 Feb 2023 02:13:35 +0000 (UTC) In-Reply-To: <2083511697.508112.1676757486753@mail1.libero.it> (Angelo Graziosi's message of "Sat, 18 Feb 2023 22:58:06 +0100 (CET)") X-Mailer: WebService/1.1.21183 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.187.174; envelope-from=luangruo@yahoo.com; helo=sonic316-48.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, 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:303537 Archived-At: Angelo Graziosi writes: > I gave a try to the F-Droid package installing it on a device with > android 11. I use this device with mouse and keyboard (the delete key > does not work in Emacs). > > I enabled Emacs to have access to all the files. > > When I start Emacs there is a notification [See (emacs) Android > Environment for more details about this notification]: what it means > is a mystery. As it says, you should read the node ``Android Environment'' in the Emacs manual. This notification is displayed to prevent Emacs from being killed after entering the background. > The font on this system is too small and I would increase it as I do, > for example, with my build on GNU/Linux. But How is this font called? > I cannot establish this from Options - Set Default Font > > It seems that HOME (~/) is "/data/data/org.gnu/files" which cannot be > accessed from, for example, Termux (this app has access to > /data/data/com.termux/). So it is hard (but not impossible) to > comunicate with the "external world" (for example to move an init.el, > taken from another system, to ~/.emacs.d/: this would facilitate the > setup of this android Emacs. Android security policy prevents applications from accessing each others home directories, so yes, it is not easy to access. Copying an init.el from another system is best done through the system file manager or by copying the files into Emacs's home directory via the external storage. File managers on most proprietary versions of Android refuse to display Emacs's home directory, because they are more keen to display advertisements than to actually manage files. > In any case, I created a ~/.emacs.d/init.el and added something like > > (global-tab-line-mode 1) > > (setq tab-line-tabs-function 'tab-line-tabs-buffer-groups) > (setq tab-line-close-tab-function 'kill-buffer) > > (setq auto-save-list-file-prefix nil) > > (column-number-mode 1) > (delete-selection-mode 1) > (electric-pair-mode 1) > (savehist-mode 1) > (tool-bar-mode -1) > > Needless to say, Emacs crashes all the time and I have to try many > times to write that. And if I add First, try with an up to date build. Next, please show the output of the following command with your device connected to a computer (once again, this is described in the Android appendix of the Emacs manual, so please read it.) adb logcat | grep android_run_debug_thread > (desktop-save-mode 1) > > it crashes during startup, mainly if one want to load desktop file > blocked by the lock file left there by previous crash.. I will look into that. > BTW, the About Emacs says it is a > > build 1, aarch64-unknown-linux-android220 of 2023-02-18 > > Why 2023-02-18 if the package was made 10 days ago? Android does not correctly report the date of an executable. It is always the present.