From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Takesi Ayanokoji Newsgroups: gmane.emacs.devel Subject: Re: Android port of Emacs Date: Sun, 25 Jun 2023 13:45:11 +0900 Message-ID: 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> <87zg4o47vi.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f3120f05feece66c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19521"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , emacs-devel@gnu.org To: =?UTF-8?Q?=C3=93scar_Fuentes?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 25 06:46:30 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 1qDHdt-0004ss-Qk for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Jun 2023 06:46:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDHcw-0002sP-OQ; Sun, 25 Jun 2023 00:45:30 -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 1qDHcv-0002sE-36 for emacs-devel@gnu.org; Sun, 25 Jun 2023 00:45:29 -0400 Original-Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDHcs-0004h4-UH for emacs-devel@gnu.org; Sun, 25 Jun 2023 00:45:28 -0400 Original-Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-3fde8e4d321so16218111cf.2 for ; Sat, 24 Jun 2023 21:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687668324; x=1690260324; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=KcB7Du8pIHrn43u5fFp5t+hW88NXO5Ee3W0epji3NFQ=; b=BumgEfaPmQey/YTAwnWCjWD7obPZSn7eE+9FnbaKtqSrmBSit/wR1U2UAkbiAU2hKM T4QCj0zxGvzw/nOtAQG13lLHuHC7rOCUD7tz2Pb6LXwVx9/BwM2AJ++jqVIGZMa0xurq TwLL1P/ElzxofaSpdOiTmFyvpCas1+uYfqD4fHzK8kZPpouMBWjDxeXhKa0poQvcvRgv JkJTA8dWxyDZyNNyLRovBRwotpGrlxCMLXr6FhFkqlGjuwU3g1LYlEYl/B5CHhaNkctQ rICDmJIQCWla3CT+d3po/dpKV07cXhgm0Wf6EkjLpjKANnx0sJs1CnXu6jsY022Wx6o6 bH5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687668324; x=1690260324; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KcB7Du8pIHrn43u5fFp5t+hW88NXO5Ee3W0epji3NFQ=; b=L0JShi2yc8Yn5MFcyO8khRXdaHSJsHGvuFt4saTwhxB4bk0e+3+nhrXaeYwLPFr9E1 D6mb2n9p8ahZ8T5GY4H75SF3kDz1alHGmfIgK9SEVxSdzrUo6UL50gWjYmfuQhEi9lgT FjmknzFHrSRG+5SGgwpA32MdpZs2kwFLCL+lfSz+18Cl7F/JRSZBao9g//QIGnGL/5/f DflV21609edO2oHxQ7wM+ixQQq7fILK3yrgs2X5PXkiTqU5IfwwGSpzZTzQ2GHfqXWQA 1jFq5N/grh0pUhHJiWfdvuf0gkOS44f/AdONaVdRWvdnlqWBA5WjSGBegPl82Zn3Le+p ig1w== X-Gm-Message-State: AC+VfDyLUPsWolSgDBclNpvtvU41iij4Pa+BFpxWj7I7ZDkabIpRAuaP hrugHJMuQmJWg5lzWEERSf3ueftbXqYQ+heqmXE= X-Google-Smtp-Source: ACHHUZ5Wmh3HiywXzpVccjhXvPa8dgQ8lBe0ludqjFzc8xKyuupw8MY5VjzoCSfyeAr9rMK2TobmRom1mRxAEA9Ta6A= X-Received: by 2002:a05:622a:38b:b0:400:8036:6f0d with SMTP id j11-20020a05622a038b00b0040080366f0dmr9494540qtx.3.1687668323978; Sat, 24 Jun 2023 21:45:23 -0700 (PDT) In-Reply-To: <87zg4o47vi.fsf@telefonica.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::82d; envelope-from=ayanokoji.takesi@gmail.com; helo=mail-qt1-x82d.google.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:307205 Archived-At: --000000000000f3120f05feece66c Content-Type: text/plain; charset="UTF-8" > >> 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=com.termux > > > > I think. Or perhaps org.termux? Based on my experience trying for several weeks, https://github.com/ayatakesi/termux-emacs https://qiita.com/ayatakesi/items/be1868d2f394d39f1e76 in addition to specify sharedUserId, it requires to change the Java classpath(directory structure of java sourse files and classpath references in sourse files). The repository's README and article are written in Japanese, but I believe it can be understood in English using Google Translate (At least, its quality is equivalent to the English text I would write. Changes I made are all contained in the patch file. https://github.com/ayatakesi/termux-emacs/blob/my/feature/android/my_emacs_feature_android.patch > 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?) In my case, it requires some changes to the source code in order to specify how the soft keyboard should be displayed. https://github.com/ayatakesi/termux-emacs/blob/test-20230624/my/feature/android/test-20230624.patch Thanks. --000000000000f3120f05feece66c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> >> If I understand correctly= , this means that you can't start Emacs from
>= ; >> Termux, but a specially-built Emacs could be launched as any oth= er
> >> Android app and then it could invok= e Termux applications. Isn't the
> >> &= quot;installed alongside Termux" part a bit complicated? I mean, if it= is
> >> not possible for Termux to build, = package and install your port
> >> alongsid= e their other packages, how the user could do that?
= > >
> > By configuring Emacs with:
=
> >
> >=C2=A0 =C2=A0./= configure --with-shared-user-id=3Dcom.termux
> &g= t;
> > I think.=C2=A0 Or perhaps org.termux?

Based on my experience tr= ying for several weeks,
https://github.com/ayatakesi/termux-emacs
https://qiita.com/ayatakesi/items/be1868d2f394d39f1e76

in addition to specify share= dUserId, it requires to change the Java
classpath(di= rectory structure of java sourse files and classpath
references in sourse files).

The repository's README and article are written in Japanese, but = I
believe it can be understood in English using Goog= le Translate
(At least, its quality is=C2=A0 equival= ent to the English text I would write.

Changes I made are all contained in the patch file.
https://github.com/ayatake= si/termux-emacs/blob/my/feature/android/my_emacs_feature_android.patch<= /div>

> 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-s= creen 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 tric= k 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?)
<= div dir=3D"auto">
In my case, it requires some c= hanges to the source code in order to specify how the soft keyboard should = be displayed.

Thanks.
--000000000000f3120f05feece66c--