From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: Android port of Emacs Date: Sun, 25 Jun 2023 04:02:09 +0200 Message-ID: <87zg4o47vi.fsf@telefonica.net> References: <83v8fnslfz.fsf@gnu.org> <83edmask4z.fsf@gnu.org> <5c02371a-3c42-de66-70b7-4ed0d88cc3fa@gutov.dev> <87cz1td0ku.fsf@yahoo.com> <87cz1ta5fr.fsf@telefonica.net> <87edm645yy.fsf@yahoo.com> <878rc95a1t.fsf@telefonica.net> <87r0q1vwtl.fsf@yahoo.com> <874jmx55ek.fsf@telefonica.net> <87mt0owgjf.fsf@yahoo.com> 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="31848"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 25 04:03:27 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 1qDF67-00085s-O6 for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Jun 2023 04:03:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDF5A-0007WL-P2; Sat, 24 Jun 2023 22:02:28 -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 1qDF52-0007Ve-OA for emacs-devel@gnu.org; Sat, 24 Jun 2023 22:02:24 -0400 Original-Received: from relayout03-redir.e.movistar.es ([86.109.101.203]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDF4z-0003V4-Ub for emacs-devel@gnu.org; Sat, 24 Jun 2023 22:02:20 -0400 Original-Received: from sky (95.red-83-37-210.dynamicip.rima-tde.net [83.37.210.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout03.e.movistar.es (Postfix) with ESMTPSA id 4QpZ3k14WYzMl8N; Sun, 25 Jun 2023 04:02:09 +0200 (CEST) In-Reply-To: <87mt0owgjf.fsf@yahoo.com> (Po Lu's message of "Sun, 25 Jun 2023 08:07:32 +0800") X-TnetOut-Country: IP: 83.37.210.95 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout03 X-TnetOut-MsgID: 4QpZ3k14WYzMl8N.A7562 X-TnetOut-SpamCheck: no es spam, clean X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1688263331.41647@qEiX6es/dsoHmSJtuOl9uQ Received-SPF: softfail client-ip=86.109.101.203; envelope-from=ofv@wanadoo.es; helo=relayout03-redir.e.movistar.es X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:307196 Archived-At: Po Lu writes: > =C3=93scar Fuentes writes: > >> If I understand correctly, this means that you can't start Emacs from >> Termux, but a specially-built Emacs could be launched as any other >> Android app and then it could invoke Termux applications. Isn't the >> "installed alongside Termux" part a bit complicated? I mean, if it is >> not possible for Termux to build, package and install your port >> alongside their other packages, how the user could do that? > > By configuring Emacs with: > > ./configure --with-shared-user-id=3Dcom.termux > > I think. Or perhaps org.termux? Great. >> How is that different from Termux themselves building and distributing >> your port? > > Termux only packages command-line applications, while programs using GUI > features can only be started by the system itself. > > HTH. There is a Termux extension on the works for supporting X11 and Wayland, so that can change on the future. Other projects (UserLand) provide a graphical environment out of the box. I just tried Emacs on UserLand (Emacs 28.2, the GTK build, from their Arch distribution), the experience is not great, but it runs. Installing Emacs as a separate step would not be an issue, but if the user could launch your port from Termux/Userland or from elsewhere having access to all those binaries, it would be a boom. >> OTOH, I know from experience that creating, hosting and maintaining a >> software distribution (and that would be what you are describing, IIUC) >> is quite a lot of work, even when the number of packages is small-ish >> (about 50-100 in my case, counting dependencies.) So having a >> "hands-off" method for installing Emacs along with other software >> packages is crucial for gaining a broad adoption. > > Well, if it helps, I'll see if I can scrape together some machines to > distribute packages built this way. Considering that we already have software distributions for Android, that would be a waste of your time. And believe me, it is a lot of time, building the packages is the easy part, the real work comes with the bug reports. Today I tried your port again for about an hour. It is obvious that you use a hardware keyboard ;-) Emacs hides the on-screen keyboard too often, even with touch-screen-display-keyboad set to `t': just try M-x calc and do a simple operation. IMO Emacs should never hide the on-screen keyboard, moreover when clicking with the finger over the small clickable areas of menus and links is very difficult. And a quick method to show the keyboard would be very welcome (having the volume button trick to close Emacs is curious, I'm sure you have your reasons, but if the keyboard is shown and the user can press C-g, isn't it better than closing Emacs?) Also, completion works weird: the sequence C-x b Mes TAB correctly completes to *Messages*, but when ENTER is hit Emacs creates a buffer names "Mes". But those are minor issues that I'm sure will be resolved. I'm having strong W32/Cygwin vibes. Nobody would say nowadays that the W32 port is questionable because Cygwin exists. Likewise, this port shows lots of potential as the right port for the general userbase that would like to carry Emacs on our pockets.