From ee1108e6f87ed347a87bc2e6db11419a00aa7877 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 11 Jul 2026 15:56:10 -0500 Subject: refactor(org-export): delete dead ox-texinfo block, relocate footnote setting The ox-texinfo block could never run: :defer t with no autoload trigger, and absent from the dolist that force-requires the other backends. So its :config never fired, and Texinfo export was unavailable despite the commentary advertising it. I deleted the block and dropped the Texinfo line from the commentary. The commentary also claimed subtree default scope while the code sets 'buffer, so I fixed that too. I moved org-html-footnote-separator out of org-babel-config, where it sat as a stray ox-html setting, into ox-html's own :config. ox-html loads before any HTML export reads the value, so the timing is unchanged. --- modules/org-babel-config.el | 3 --- modules/org-export-config.el | 16 +++------------- 2 files changed, 3 insertions(+), 16 deletions(-) (limited to 'modules') diff --git a/modules/org-babel-config.el b/modules/org-babel-config.el index 79661013..51919da1 100644 --- a/modules/org-babel-config.el +++ b/modules/org-babel-config.el @@ -173,8 +173,5 @@ session when working in trusted files, and back on when done." ;; requires ob-racket, not yet in repositories ;; (add-to-list 'org-structure-template-alist '("sicp" . "src racket :lang sicp")) -;; drop Org’s default footnote list at the end -(setq org-html-footnote-separator "") - (provide 'org-babel-config) ;;; org-babel-config.el ends here. diff --git a/modules/org-export-config.el b/modules/org-export-config.el index 5a6f09fc..c3d3294c 100644 --- a/modules/org-export-config.el +++ b/modules/org-export-config.el @@ -20,7 +20,6 @@ ;; - HTML: Web publishing with HTML5 support ;; - Markdown: README files and web content ;; - ODT: Office documents for LibreOffice/MS Word -;; - Texinfo: GNU documentation and Info files ;; ;; Extended via Pandoc: ;; - Additional formats: DOCX, self-contained HTML5 @@ -28,7 +27,7 @@ ;; ;; Key features: ;; - UTF-8 encoding enforced across all backends -;; - Subtree export as default scope +;; - Buffer export as default scope ;; ;; Note: reveal.js presentations are handled by org-reveal-config.el (C-; p) ;; @@ -68,17 +67,8 @@ :config (setq org-html-postamble nil) (setq org-html-html5-fancy t) - (setq org-html-head-include-default-style nil)) - - -(use-package ox-texinfo - :ensure nil ; Built into Org - :defer t - :after ox - :config - (setq org-texinfo-coding-system 'utf-8) - (setq org-texinfo-default-class "info") - (add-to-list 'org-export-backends 'texinfo)) + (setq org-html-head-include-default-style nil) + (setq org-html-footnote-separator "")) ;; no separator between adjacent footnote refs (use-package ox-pandoc :defer t -- cgit v1.2.3