News for hackers. Stuff that matters.
Re:The Guile in TeXmacs (2019) [pdf] by aasasd on Thursday April 16, 2020 @10:26AM (#22889681)
I'm mourning on two graves every time I'm tuning my Org-mode workflow. First, that Emacs had to have its own language so I can't take my code and run it in an up-to-date and stable vm embedded in an Android app. Second, that additions and modifications to Org-mode tend to use Emacs' text juggling here and there instead of a higher-level Org API and string functions—so even if I had an embedded Elisp, I'd need to implement half of Emacs.

Emacs' flirt with Guile promised to mend one of those ailments—especially considering how on my oldish machine Emacs' GC hiccups every few seconds when just scrolling through an outline, and Emacs internals don't seem to get lots of low-level development these days (understandably, but still). Alas, that hope now has a grave of its own.

Re:The Guile in TeXmacs (2019) [pdf] by BeetleB on Thursday April 16, 2020 @10:57AM (#22890006)
> Second, that additions and modifications to Org-mode tend to use Emacs' text juggling here and there instead of a higher-level Org API and string functions

I was shocked when I started looking into Org's API and found everything is done via parsing. There's virtually no tree/graph type API.

Re:The Guile in TeXmacs (2019) [pdf] by aasasd on Thursday April 16, 2020 @11:25AM (#22890356)
That's done throughout all Emacs addons: basically its text-modification API seems to have been constructed backwards from what's available to the user and the UI, instead of the other way around, and depends a lot on the cursor position. Even the more-or-less popular string library ‘s’ is a third-party addon. So Org pretty much went on with the common practice here.

With the volume of addon development that Emacs managed to get, it's a quite solid case of ‘worse is better, but you're now stuck with the worse for your life’.

Re:The Guile in TeXmacs (2019) [pdf] by tincholio on Thursday April 16, 2020 @11:17AM (#22890249)
There's org-element, if you want to parse/generate org-mode, but it's true that many packages just operate on the text.
Re:The Guile in TeXmacs (2019) [pdf] by BeetleB on Friday April 17, 2020 @09:17PM (#22904524)
org-element doesn't go far enough. Say I wanted to traverse my document in depth first order. Or in breadth first order. How do I do it? org-element does not let me choose.

I say this as there is another well known node based editor out there: Leo. Nonprogrammers manipulate their documents trivially with Python code in a way that's a huge pain in Org mode even for seasoned developers.

Re:The Guile in TeXmacs (2019) [pdf] by mgubi on Thursday April 16, 2020 @04:11PM (#22893002)
somebody should write an org-mode-like clone in TeXmacs, taking advantage of the structured editing features there. Is powerful enough to play tetris (https://github.com/mgubi/tm-tetris) , sure you can do org-mode kind stuff there too.