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 of Emacs (Termux, contact info, emacs in batch mode) Date: Wed, 26 Jul 2023 21:31:35 +0800 Message-ID: <87a5viyf2g.fsf@yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34834"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Johan =?utf-8?Q?Wid=C3=A9n?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 26 15:47: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 1qOeqx-0008kL-Ov for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Jul 2023 15:46:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOecT-0005cJ-CO; Wed, 26 Jul 2023 09:32:01 -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 1qOecK-0005am-Le for emacs-devel@gnu.org; Wed, 26 Jul 2023 09:31:53 -0400 Original-Received: from sonic305-21.consmr.mail.ne1.yahoo.com ([66.163.185.147]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qOecI-0004ox-Ij for emacs-devel@gnu.org; Wed, 26 Jul 2023 09:31:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1690378307; bh=cgL330k0hcU/KK22VAu2KFZfa5OS8MdQOICClV4iYsU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=OY+gV4l+r67ktpZRuri6X3V4y47SZnWJyDzDya5kp4VZmnoQhOpqVfvyzVnfmoRcv717E68cV8qKL+kRgRWzrCmZaQbyPzeyo+hAQffVeGNgOMwUCC+UVzpoYULVuTFbJe7luKm5iXaomuZJuYNySO/Qr7VYXzloJv3YdXwIAsvny3eURZY05VRCkJK5UaECTxJBCNdjuvsq9GK/MY3ZuiLu9P8u77S4mOisPj+bCOA5VwQYwafgh+DDcCht7ho4nTmEM+qyKfNN6afXWJTUsRnRoftnGDjm21nxr+azXO7p4xS+w9jye/QUqWNpY3rW4kucbLmAiaqj7If619gFaQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1690378308; bh=rfhBVpHSkvnCIBPUZL8wN8Pes2UR+5PK+XgoCPlAmn/=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Gps4iOw/CsHV0bxzic7XgYgzTjaQZZE96gSTAxf2V98CVAPdAM0I67mc/8yp8jBcZfZBbf9CVpL/XD3fCcCq38EQoAT+r4j/FNKRuCTv2mSc2OUb206T21sAkhFemJf7RmtWwVkehToa2mkKw2fHoz9kjHTdSO4Jgl2pV4KD/N452I7t2YBupuikl9Kyqqp9lCtX9yY7WZmCV0Wq/nUB4xouLVQLJFpOoXPqMlYG9AUzf2PyJodeklzv7JU2hrFM7b1bdDlPcFxraNGVJ47UCnAXzV0+d1jEVPiwzQNlg7mNMJz6+FV8cKyL+BmIANwVYOHbIclJ/Q0WFp7wCuJNsA== X-YMail-OSG: nRrql6IVM1nxKWwqpldIxz.KZfgB_z4OQ3mb_lg16jshuSP.Xhb.ihs0raIPm_H p807M59sSmI3MurVkmr6EQSUYUiHOlk1XiP8n8EzVHCtPIgxCQrdnQ6vSI.oiEmgpTHI.KY43x8P JhWy0PDV33NZe4zYmSjplX6xnJM0IXiAJ5iUrL4ntJvVFgiQFaqYNs3IeaFa4Dq3uPOlrgLZ94y9 lE7mfe9ge_KV6eW45pyjgQ_Tj298953nTjNBl.MbXzvpGDir09GMDMQvtAigRkjyHekPPXLO.qwp nf6JHX4zGO5WRuaqOQxSb3LELre2Pckb.SdIL_3VaMTynmxvphXFgQq8TNcFDoEL2CUasoSaeHK8 vSTSIv0ybaq0Fvzwgv7mXpZyiRI2TBKGGVjyRzWGGU_v5jUF88sg1wQy.gwOOYXQl00.Rg.kjlWV 2ZLiV4SwQiuBknH9fqXg0asDtAuplneiWbWWAttwsKzbuquwoOffu9u83q1GxlOLkNa9KdS8nncz KcJrBgNJZ6Yyyl0m2faAPHSOPNNNBE_cd0Ywihp.5wdo55I48JULQqtxC1ayshdCudpjkxKjTUHe 8jn5flF.sTvyeQzuPrWsS5eDtFCszU3MeynNxKyHW23wS809.ibz4G50f9F8ap6aZx4GHWVQI3p7 CVg98O_OHGkqNc9ZbPN2lAHmvlE1qnCPD6XxrFtSVzqY65DTT2WnuegzSFh6mM1WGKz6aVWKfUlO U.X7vhVcBDE8HLQAOAnqi.w5RoJE2If410Crc17OJvPu12fXc.cUxbu0BXj_jiZ2LZiaXnKALDre FkRr8YpOjC8gz6nDwbjDWB3fquofvGSUsRUtQkRxcq X-Sonic-MF: X-Sonic-ID: 1d3968d6-2b4d-431f-82c6-7c6e441d5fed Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Wed, 26 Jul 2023 13:31:47 +0000 Original-Received: by hermes--production-sg3-6b8fc8d58f-jwkjf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7cd7bb95a1c01d1d0a8ff1eb1cff0c0f; Wed, 26 Jul 2023 13:31:44 +0000 (UTC) In-Reply-To: ("Johan =?utf-8?Q?Wid=C3=A9n=22's?= message of "Tue, 25 Jul 2023 14:39:21 +0200") X-Mailer: WebService/1.1.21647 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.185.147; envelope-from=luangruo@yahoo.com; helo=sonic305-21.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, T_SCC_BODY_TEXT_LINE=-0.01 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:308118 Archived-At: [I copied the list back in.] Johan Wid=C3=A9n writes: > Thanks for the combination of Android emacs and Termux. It seems to work > very well. I have installed a couple of emacs starter kits and they work > OK (once I turned off desktop-save-mode). What's the problem with desktop-save-mode? > I suggest that in the README file on sourceforge, you add information on > how people should respond to things related to Android emacs: > - Where to submit issues > - Where and how to make pull requests > - Where to hold a discussion about things related to Android emacs That information is the same as with other versions of GNU Emacs: bug-gnu-emacs@gnu.org and emacs-devel or help-gnu-emacs. > And also a wish from me: Several packages such as Doom emacs and > pdf-tools, expect there to be an emacs executable that can be run in > batch mode. It is important that this executable is as identical as > possible to Android emacs. Would it be possible to provide such a thing > in Android emacs? Have you read the node `(emacs)Android Environment' in the Emacs manual? It illustrates: The `/assets' directory containing Emacs start-up files is supposed to be inaccessible to processes not directly created by `zygote', the system service responsible for starting applications. Since required Lisp is found in the `/assets' directory, it would thus follow that it is not possible for Emacs to start itself as a subprocess. A special binary named `libandroid-emacs.so' is provided with Emacs, and does its best to start Emacs for the purpose of running Lisp in batch mode. However, the approach it takes was devised by reading Android source code, and is not sanctioned by the Android compatibility definition documents, so your mileage may vary. In general, the answers to most questions people ask about the Android port already reside within the Emacs or Lisp reference manuals distributed with the Android port. I've always paid attention to updating the documentation wherever necessary to reflect changes and Android idiosyncrasies. > Perhaps it could be a script that in turn executes the real Android > emacs, but in batch mode. One would normally use such a thing by > starting shell mode in emacs, and from there execute things that > eventually invoke the batch mode emacs. The solution shown above has existed from almost very beginning of the Android port's existence; it does not work reliably though, due to limitations placed on Emacs by the system's asset manager architecture.