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: tree-sitter and Android port Date: Tue, 21 Feb 2023 10:27:41 +0800 Message-ID: <87y1oreorm.fsf@yahoo.com> References: <87ttzkmrw1.fsf.ref@yahoo.com> <87ttzkmrw1.fsf@yahoo.com> <877cwcfmal.fsf_-_@yahoo.com> <86k00cpcbn.fsf@aarsen.me> 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="24364"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Yuan Fu , Theodor Thornhill , emacs-devel@gnu.org To: Arsen =?utf-8?Q?Arsenovi=C4=87?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 21 03:30:53 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 1pUIQf-00067a-JV for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Feb 2023 03:30:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUIPl-0004hp-EQ; Mon, 20 Feb 2023 21:29:57 -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 1pUIPk-0004hf-9B for emacs-devel@gnu.org; Mon, 20 Feb 2023 21:29:56 -0500 Original-Received: from sonic314-49.consmr.mail.ne1.yahoo.com ([66.163.189.175]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUIPh-0001oP-P1 for emacs-devel@gnu.org; Mon, 20 Feb 2023 21:29:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676946590; bh=tOiK+di/anHIYJFvl3XLuNBEPYyTtrx+zwI5UR+cUOM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=s+uUEJcVRgK0gmoURIXe8Kh7l5V6333CCKJOrx0+9KNJmn2ADVAdK3yH6yv0YFJX1ksYkg4QoW/Jlr1zJfL2h54SWXx0OULNaV9B7sKOMnAW2nXNeDPKHgEvdiNApNAa02izE951Noq3iVAoPIJ/Ebyh4yXalRn9Wa5hCNuA/FsjEg7V1syEraWaLaO7p+qI7rO0wUCiW59YqFeLg+fnN75/JvA/om461hOTeKDdYCgsmm9ZehrKpmCH7PQN7HitFTk2ongykrMO6GWRn8F2W7sNQY8UnsGV8SRgxnZUmC7W4K7yZjYwPDEWNdTqlPOtrrcgMWDQNSOTgFF0JTm7VQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676946590; bh=1diTnr2NfWeDO71PvmU3cMSyFsVXwjL5Wt3ly9rj52M=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=LFoTH09eELEc+2XZRuEd4Q2fYV6Ha0pejyWskgQ6BeWQoLX1OOGj2F42YvUh+A77LpuHz5dP74rJg9WMI9Rq5yJSapqaOeM/6+3X3T4Ru/GJkpyb4rhYNHz+Wz5+hP2gnnGnStNtNKmvIno5YeRNa9W6lGww0CbntTNbAnMhEM0YnOrCIm8plZCtPorL/9T5mfEdJfNzouAC1jlZusni9PpBERs494EPk70PdR0r5lIW+fsMfHWR6pmVDDuTXOWLLpBwOOoAmiUaF9iFpNktiVE6D8wV0mq3Xt8R1uI1b5SkTETW6gNBKQvniZPqpy9lQrr5VFlst6MH9fauY3/aNw== X-YMail-OSG: u8c.fGcVM1nw_3bKKHN7LMIjEbnZlGYv_fvyqTr_DYdQefcwDjf1Q5hfaaD.oHI 1Mlcda9wwKdvX_Zcri72mqHHkoQ.tPIgRjW.8PgkbBriHSADp2ASImQ.6K9FgE.G6XJxd7b1oPoA VAa5haT8ExAblwNnBK9FZnGGK2abGT9Mg1L7U5v_vQ45KEa1435TlZY.rmreY9Nxde4ToXU1_Tbb 72Xx8NSR_vtmwyvjsRXv_esOUmnHVBb5iR8AGoDF2_UOjPxDmYi4NzKzsDKXAXCQ1HeYeL0IkKdi 0ZKI2erXlmlvatX2gTfQbuqcYCeJer0xQd_XQF0Dq69uyg.xgkfu779smCcwxAzRNHbpRE70WDNM Emu1E8fndTG0sO3RpoNKvtd2ptdXIvv5k_p8Qg8rk1PAsH4zmbF4NKeW6W7XzUrzR3Y56pkBg6e1 LhYn8dx2ptwsKmPjM8KO6NJPOIHp9CBBZJYK1_3ptb_RNFdOcmJvWhdjKWvamxS7umnNAYs5q8hn G1q4aJ5FCz.1H3wO5JoIDyCgichTVWyAIkQm6AG_KnegqJzR9Evsgp7KnpffZe6orUeRInrFxxb7 aVJZhdDdHWcg9ADXDN4Z8EhCVFj43SdxUyeqD1C.9D_k74c3aKzSiptneHfvOZuCKX64OeAdDfsa DGzBr4eN7gVcHITmk8kDNr75VJDqGS0N6Vdo4mW5ZQ8Dhf3Kon96nkbpQpoo.OREbq0CAB2JYmt4 6M030OjySrdGSUSXO0yPcafK1M63dj8dc_igisue_.FKKlgejWv2G0WT1sPt22no6cf0edBC5OqW Fvr9fRxQ9dOB1wv.BanN2sgc3NQP8NE7cGaDBbyYoT X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Tue, 21 Feb 2023 02:29:50 +0000 Original-Received: by hermes--production-sg3-9fc5746c8-b8cx5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID df2baa605e3861a11fec29b16364e955; Tue, 21 Feb 2023 02:27:47 +0000 (UTC) In-Reply-To: <86k00cpcbn.fsf@aarsen.me> ("Arsen =?utf-8?Q?Arsenovi=C4=87?= =?utf-8?Q?=22's?= message of "Mon, 20 Feb 2023 16:38:49 +0100") 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.189.175; envelope-from=luangruo@yahoo.com; helo=sonic314-49.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:303630 Archived-At: Arsen Arsenovi=C4=87 writes: > Hi, > > Po Lu writes: > >> I've added support for tree-sitter to the Android port, and ported that >> library to our Android build system as well. > > Thanks, that should greatly improve the efficiency of fontification in > due time. > >> However, there is one problem. Android does not let Emacs link with any >> shared libraries or run any executables installed in non-system >> directories, meaning that compiled grammars cannot be installed in a >> useful fashion. This is done for security reasons, as apparently many >> Android programs have been tricked into executing malicious downloaded >> code in the past. > > Based on my prior experience with Termux, I suspect that the Emacs home > directory should work. Termux is able to both build and launch programs > in that directory, and I suspect also dlopen () libraries, though I have > not tried that. Termux has taken the approach of targeting an older version of Android without these restrictions, meaning that it will no longer install on some soon-to-be future version of Android; Android 14 will no longer allow installing applications targeting Android 5.1 or later, and they plan to ``progressively ramp up'' the target version requirement. > P.S: I noticed that the Termux wiki lists some file managers that > integrate with SAF, and hence, should be able to access the home > directory on devices with poor built-in file managers: > https://wiki.termux.com/wiki/Internal_and_external_storage > > While the manual should probably skirt from naming specific file > managers, it could be good to name what a file manager needs to be able > to access the Emacs home directory (namely, SAF support). If they are free software, I don't see a problem with listing them in the manual.