Repository navigation
Tidy up the literate programming module - #1497
Merged
Merged
Conversation
bbatsov
force-pushed
the
tidy-literate-programming
branch
from
November 24, 2026 11:55
6d537d3 to
9c0569b
Compare
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
force-pushed
the
tidy-literate-programming
branch
from
November 24, 2026 12:51
9c0569b to
c7d6a4f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The module silently set
org-confirm-babel-evaluateto 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,
denoblocks work now thatob-denois actually loaded, andelpy(installed but never enabled) and a leftover TODO list are gone.ob-ipythonstays even though it hasn't seen a real change since 2021; replacing it withemacs-jupyterneeds a native module and is a bigger change.