Skip to content

Tidy up the literate programming module - #1497

Merged
bbatsov merged 1 commit into
masterfrom
tidy-literate-programming
Nov 24, 2026
Merged

bbatsov merged 1 commit into
masterfrom
tidy-literate-programming

Conversation

@bbatsov

@bbatsov bbatsov commented Nov 24, 2026

Copy link
Copy Markdown
Owner

The module silently set org-confirm-babel-evaluate to nil, which means exporting any Org file runs its code blocks without asking. Org's prompt is back, and the docs say how to turn it off. This is a behaviour change for anyone used to the silence.

The rest is cleanup: Babel is configured once Org loads instead of at startup, deno blocks work now that ob-deno is actually loaded, and elpy (installed but never enabled) and a leftover TODO list are gone. ob-ipython stays even though it hasn't seen a real change since 2021; replacing it with emacs-jupyter needs a native module and is a bigger change.

@bbatsov
bbatsov force-pushed the tidy-literate-programming branch from 6d537d3 to 9c0569b Compare November 24, 2026 11:55
The module set org-confirm-babel-evaluate to nil without a word in the
docs. That's not a matter of convenience only: exporting an Org file
evaluates its code blocks too, so any Org file someone sent you could
run whatever code it wanted. Org asks again now, and the docs say how
to turn the question off for those who want that.

It also loaded Org (and with it Python mode) at startup to set up the
Babel languages; that happens once Org loads now, and adds to the
languages other modules set up instead of replacing them. A language
whose package failed to install is left out, rather than keeping Org
from loading. The ob-deno package was installed but its language never
loaded, and ob-async was installed but never loaded, so :async did
nothing; both work now. elpy was installed but never turned on (and
would clash with the Python module's LSP setup), and
org-babel-language-list was a leftover list with a TODO, in Org's
namespace to boot; both are gone.

The Org and Python modules and the tests byte-compiled cleanly only
because loading this module brought in Org, Python mode and subword;
they declare what they use now. CI loads this module on its own, as it
wasn't loaded anywhere before.
@bbatsov
bbatsov force-pushed the tidy-literate-programming branch from 9c0569b to c7d6a4f Compare November 24, 2026 12:51
@bbatsov
bbatsov merged commit f0feafc into master Nov 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant