|
|
Subscribe / Log in / New account

Emacs for Android

Emacs for Android

Posted Jun 29, 2023 15:00 UTC (Thu) by wtarreau (subscriber, #51152)
Parent article: Emacs for Android

Amusing, but I feel like the most important question should have been "how wants to use this ?". I'm a daily emacs user. I almost never use it remotely as it's not uncommon that some bindings don't work well remotely and that I start to lose time engaging into difficult ways to do expectedly simple things. But on Android ? Seriously ? I, too, suspect that the maintainer will be the only user and will suddenly stop maintaining it out of boredom or lack of time, without anyone asking for fixes, which does help give up on such activities.


to post comments

Emacs for Android

Posted Jun 29, 2023 15:52 UTC (Thu) by jeckersb (subscriber, #47103) [Link] (3 responses)

I think it's unusable on the form factor of an Android phone, especially with an onscreen keyboard. But I can appreciate the utility if you wanted to haul a larger Android tablet with a bluetooth keyboard to the coffee shop and do a little bit of hacking.

Emacs for Android

Posted Jun 29, 2023 18:14 UTC (Thu) by pizza (subscriber, #46) [Link]

More importantly, Android is being deployed into all sorts of form factors these days, and for many (most?) people it's likely to be their only available computing platform. It seems to me that getting emacs [1] to work well on this platform is worthy for that reason alone.

[1] As others have pointed out, this is about more than "emacs the editor" -- consider emacs-the-platform, for org-mode and other useful/cool tools.

Emacs for Android

Posted Jun 30, 2023 6:12 UTC (Fri) by jem (subscriber, #24231) [Link]

It doesn't even have to be a bluetooth keyboard. You can plug in a simple ten dollar USB keyboard, too.

Emacs for Android

Posted Jul 13, 2023 9:54 UTC (Thu) by davidgerard (guest, #100304) [Link]

Or a Chromebook, which is a perfectly serviceable little laptop that also happens to run Android apps out of the box.

How's this thing run on a Chromebook?

Emacs for Android

Posted Jun 29, 2023 21:42 UTC (Thu) by khim (subscriber, #9252) [Link] (11 responses)

One platform which, I hope, they tested this port is ChromeOS.

ChromeOS laptops are popular enough, they support Android apps and while, technically, Emacs is already available there via Linux on ChromeOS route it's often is not available in corporate settings.

Of course if it can be installed and started on ChromeOS but actual use is just not possible, then that's the whole different story.

Emacs for Android

Posted Jun 30, 2023 7:14 UTC (Fri) by halla (subscriber, #14185) [Link] (10 responses)

We got help (but no money, boo) from Google to port Krita to ChromeOS, which also meant a port to Android, since it's the same.

In our experience:

* just the changes from Android version to version need about a full-time developer to track. Especially when it comes to file handling.
* Android users are... They don't consider the limitations of their platform and try to make huge animations on small phones. Additionally, high-school teachers are apparently telling students to install krita on their tablets/chromebooks to fill their class assignments -- which apparently are humongous big animations.
* Android is really good at crashing applications
* The money the port brings in through in-app donations couldn't even be classified as pin money.
* We now have about as many regular Android users as Windows users.

This is not meant as a pro or con Emacs on Android argument, but just my personal experience from the past couple years of maintaining an Android/ChromeOS port of a big free software application.

Emacs for Android

Posted Jun 30, 2023 8:31 UTC (Fri) by khim (subscriber, #9252) [Link] (6 responses)

So nothing have changes with invention of Android and ChromeOS.

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

This was said 35 years ago and apparently is still true today.

Emacs for Android

Posted Jun 30, 2023 10:43 UTC (Fri) by Wol (subscriber, #4433) [Link] (3 responses)

As a Doctor friend said to me, "Doctors are chosen from the general population. Seeing as half the population are below average intelligence, what does that say about doctors?". I guess the same is true for software engineers?

I'm just reeling from a Slack update, where it's blatantly obvious they didn't think through the consequences of their actions ...

Cheers,
Wol

Emacs for Android

Posted Jun 30, 2023 17:37 UTC (Fri) by mpr22 (subscriber, #60784) [Link] (2 responses)

Physicians and surgeons are not chosen from the general population at large.

Physicians and surgeons are chosen from the slice of the general population who have achieved the degrees of Bachelor of Medicine and Bachelor of Surgery – which (among late-GenX-ers like me) is mostly selected from the slice of the general population who could get good A-level results in three STEM subjects (which criterion, whatever people may say about the standard of modern exams then or now, does exclude a very large portion of the general population).

That said, of course, being book smart opens up whole new vistas of folly that people who aren't have no access to.

Emacs for Android

Posted Jun 30, 2023 20:07 UTC (Fri) by Wol (subscriber, #4433) [Link] (1 responses)

Well, it weren't me that said it, it was a doctor friend.

> who could get good A-level results in three STEM subjects

As one of the last baby-boomers, who tried to get into medical school, back then your average trainee doctor was made a UCCA offer of "three passes". (Okay, most of them went on to get one grade higher across all three.) What annoyed me was that, of my friends who got in, only one of them iirc had better grades than me :-) It is what it is. (Gen-X? 20 years younger than me?)

> That said, of course, being book smart opens up whole new vistas of folly that people who aren't have no access to.

More and more as I get older, the importance of experience gets rammed home. You can be the smartest person in the world, and if you haven't met that situation before, you'll make the wrong call ... (As someone "on the spectrum", intuition often beats logic, and we don't have intuition. That said, we do have a sixth sense, which I regularly describe as "hang on, something here doesn't add up".)

Cheers,
Wol

Emacs for Android

Posted Jul 3, 2023 12:39 UTC (Mon) by paulj (subscriber, #341) [Link]

Expertise (i.e., knowledge gained from [repeated ideally] experience) can be a siren song. The expert can be over-confident when faced with some new situation, and not recognise when it falls outside their experience (or the experience of those who handed down their expertise to the expert in education). And they can go badly wrong - refusing to cede authority, refusing to acknowledge their lack of expertise, doubling down from one mistake to the next.

Fresh eyes reasoning from first principles may well be better then.

Non-expert intuition can be critical in recognising when experts have gone off their previously beaten tracks, and gotten lost in their own hubris.

Emacs for Android

Posted Jun 30, 2023 17:16 UTC (Fri) by atai (subscriber, #10977) [Link] (1 responses)

and idiots are especially bad at Emacs

Emacs for Android

Posted Jun 30, 2023 20:11 UTC (Fri) by Wol (subscriber, #4433) [Link]

I seem to remember two interesting facts about education that most bright people fail to grasp ...

As your brain develops, you have to be about 14 before you can really indulge in abstract thought. And maybe half the population never actually reach that milestone.

If you can't think abstract, you're unlikely to make a good programmer, or emacs user :-)

Cheers,
Wol

Emacs for Android

Posted Jun 30, 2023 13:18 UTC (Fri) by repetitivestrain (guest, #165872) [Link]

AFAIK there has only been one major change to file system handling, in Android 11, with an easy way out provided for programs like Emacs which aren't distributed through the Google Play Store. If you request the permission to ``access all files'', you can access most of the file system through the Unix VFS, the same way you could in earlier versions with the ordinary storage permission.

The same copy of Emacs runs on all versions of Android from 2.2 onwards, so it doesn't seem like it will be an excessive amount of trouble for me to update Emacs to follow the requirements for targeting each new Android release.

Emacs for Android

Posted Jun 30, 2023 22:08 UTC (Fri) by khim (subscriber, #9252) [Link] (1 responses)

Unrelated to Emacs-on-Android discussion:

* The money the port brings in through in-app donations couldn't even be classified as pin money.
* We now have about as many regular Android users as Windows users.

And that's precisely why free software is dead on arrival: there is no money in it.

Open Source software have very easy and well-working way out: build your piece of Open Source software as “base platform”. Something free which is not really usable by itself but which can be used by proprietary software competitors to build their products.

Then you can get some money from these proprietary competitors funneled into “base platform”. Just make sure you are not building open core thingie which is actually usable without proprietary parts and you would have enough money to thrive.

Free Software? No answer to this funding question at all. Free software rejects proprietary software which means there are no way to fund it's development.

Emacs for Android

Posted Jul 2, 2023 9:57 UTC (Sun) by halla (subscriber, #14185) [Link]

Krita is not dead on arrival, it arrived more than a decade ago, and has millions of users. It is very much alive. And we fund over half a dozen developers from income derived from Krita.

It's the Android Play Store that's a bad place to make money.

Emacs for Android

Posted Jun 30, 2023 4:50 UTC (Fri) by rsidd (subscriber, #2582) [Link]

I have actually installed a linux chroot and an i3 desktop on an old mobile phone. Here is a photo (from 2014), which also shows an emacs window.

It did need that bluetooth keyboard to be useful. It became less useful as my eyes got older (I still don't wear glasses for the most part but I no longer want to work on tiny screens.) But I can imagine some people would find native android emacs useful on phones.

On android tablets, yes for sure, if there are emacs android tablet users.

Emacs for Android

Posted Jun 30, 2023 8:43 UTC (Fri) by mzamazal (subscriber, #126307) [Link] (7 responses)

I'm going to use Emacs on my Android devices. The primary motivation is that I have a lot of things in Org mode that are not accessible, both read and write, when I'm not in front of my computer. Having Gnus would be also great but this is more difficult to arrange. Emacs in Termux seems usable, it's text-only but it is good enough for the given purpose and it has excellent onscreen keyboard support. The Android port could be better and easier to use although at the moment it's not usable for me because it's too small and has poor onscreen keyboard support (and I can't see sense in using my very portable devices with an external keyboard).

Emacs for Android

Posted Jun 30, 2023 13:13 UTC (Fri) by repetitivestrain (guest, #165872) [Link] (6 responses)

Would you please explain the reason you believe the Android port has worse on-screen keyboard support compared to Termux?

I've been using the Android port with such programs almost every day since it was first written. Unlike Termux, it fully supports the character and word composition interfaces that IMEs expect, providing input methods with complete read/write access to buffer text, as required for features such as auto-correct, text completion, and automatic punctuation. These interfaces are additionally a prerequisite for input methods that input non-alphabetic scripts (such as CJK scripts) to operate as expected, which are also not supported by Termux.

Emacs for Android

Posted Jun 30, 2023 16:45 UTC (Fri) by mzamazal (subscriber, #126307) [Link] (5 responses)

Last time I tried the only way to display the keyboard that I could find was clicking on an editable buffer. Which doesn't work very well when there are no editable buffers displayed, such as right after startup. The other thing is that Termux, with its key bar, makes easy to use the most important "special" keys with any keyboard. As for input methods, both quail and Android keyboards seem to work fine for me, including Swype and suggestions, but I need just accented characters, nothing like CJK. Of course, YMMV.

Emacs for Android

Posted Jul 1, 2023 0:27 UTC (Sat) by repetitivestrain (guest, #165872) [Link] (4 responses)

You can customize `touch-screen-display-keyboard' to display the on screen keyboard even if the current buffer is read only. I don't understand why one would want it to be displayed when no text can be edited (or why one would need a separate menu bar full of modifier keys), however, since editor commands can be used from the tool bar and menu bar.

BTW, are you sure GBoard or AOSP Keyboard text suggestions work in Termux? They require access to text currently behind point, which a terminal emulator cannot provide.

Emacs for Android

Posted Jul 1, 2023 12:08 UTC (Sat) by mzamazal (subscriber, #126307) [Link] (3 responses)

Thank you for the tip about touch-screen-display-keyboard. The keyboard is needed even for read-only buffers in order to be able to invoke various commands (quitting, switching buffers, mode specific commands, ...). Part of this could be indeed achieved by using menus or the toolbar but not everything (and menus + toolbar are unusable for me in the default configuration because they are too small on my phone, and all the text is quite small for me). Having some special keys, which are not present on typical onscreen keyboards, easily accessible is obviously useful with Emacs while using alternative keyboards containing them may not be practical for various reasons; but perhaps it's not that important once the graphical environment is fully OK. I'll give it another try.

I think it would help if there was a tutorial on the web for the Android Emacs port. The included Info documentation is hard to access initially because of the usage issues discussed.

Text input suggestions etc. can be used in Termux in the text input bar displayed after swiping the key bar to left.

Emacs for Android

Posted Jul 2, 2023 0:41 UTC (Sun) by repetitivestrain (guest, #165872) [Link] (2 responses)

> Thank you for the tip about touch-screen-display-keyboard. The keyboard is needed even for read-only buffers in order to be able to invoke various commands (quitting, switching buffers, mode specific commands, ...). Part of this could be indeed achieved by using menus or the toolbar but not everything (and menus + toolbar are unusable for me in the default configuration because they are too small on my phone, and all the text is quite small for me). Having some special keys, which are not present on typical onscreen keyboards, easily accessible is obviously useful with Emacs while using alternative keyboards containing them may not be practical for various reasons; but perhaps it's not that important once the graphical environment is fully OK. I'll give it another try.

I don't think it's Emacs's place to provide additional virtual input devices (such as modifier keys.) Such functionality belongs in the program providing the virtual keyboard.

As for the tool bar and menu bar, I think they're sufficiently large by default. However, you could adjust tool-bar-button-margin and the height of the menu-bar face you find their size insufficient.

> I think it would help if there was a tutorial on the web for the Android Emacs port. The included Info documentation is hard to access initially because of the usage issues discussed.

You could simply tap the ``read the Emacs manual'' link on the splash screen. I don't have the resources to write, translate, and update another tutorial or to run a website to publish it. Additionally, the Android documentation will be uploaded to gnu.org as part of the Emacs manual if the port is released.

> Text input suggestions etc. can be used in Termux in the text input bar displayed after swiping the key bar to left.

That's modal editing, not Emacs, and quite inconvenient to use :-)

Emacs for Android

Posted Jul 2, 2023 10:47 UTC (Sun) by mzamazal (subscriber, #126307) [Link] (1 responses)

The default font size in the Android Emacs is less than 2 millimeters on my phone (significantly smaller than the Android top bar with time, battery info, etc.; much smaller than keyboard keys, which are >5 millimeters), which means I cannot tap it even approximately reliably with my fingers and it's not easy for me to even read; similar applies to the tool bar.

Emacs for Android

Posted Jul 2, 2023 11:33 UTC (Sun) by repetitivestrain (guest, #165872) [Link]

That's likely a bug. Would you please report this problem to bug-gnu-emacs@gnu.org, taking care to include all the diagnostic information printed by `report-emacs-bug'?

If that isn't convenient for you, it would still be helpful if you could provide the output of the shell command `getprop' on your phone; it can be run from inside Emacs, a terminal emulator, or from your computer using `adb' if you enable USB debugging.

Thanks in advance.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds