]> git.eshelyaron.com Git - emacs.git/commitdiff
Enable code block evaluation when generating .org manuals
authorKyle Meyer <kyle@kyleam.com>
Wed, 29 May 2024 04:05:46 +0000 (00:05 -0400)
committerEshel Yaron <me@eshelyaron.com>
Fri, 7 Jun 2024 10:44:05 +0000 (12:44 +0200)
* doc/misc/Makefile.in ($(1:.org=.texi)): Enable code
block evaluation in Org mode manual and other .org manuals
to produce automatically generated parts.  (Bug#71394)
When testing a scratch sync to the Emacs repo, the build
failed with

 make[3]: Leaving directory '/home/kyle/src/savannah/emacs--master/lisp'
 Evaluate this emacs-lisp code block on your system? (yes or no)
 Error: end-of-file ("Error reading from stdin")
   yes-or-no-p("Evaluate this emacs-lisp code block on your system? ")

That's expected given 715148131 (org-manual: Automatically
generate export option list, 2023-07-31) and the default
org-confirm-babel-evaluate value.

(cherry picked from commit c86995d07e98e6f1a48f8df791aa4164316159d9)

doc/misc/Makefile.in

index 13407c1f40dbae8ba30d216fbf099f71fd938806..ba4d09a2fbc6b41b981390fbceed9b3d173b8bd9 100644 (file)
@@ -250,6 +250,7 @@ define org_template
  $(1:.org=.texi): $(1) ${top_srcdir}/lisp/org/ox-texinfo.el
        $${AM_V_GEN}cd "$${srcdir}" && $${emacs} -l ox-texinfo \
          --eval '(setq gc-cons-threshold 50000000)' \
+         --eval '(setq org-confirm-babel-evaluate nil)' \
          -f org-texinfo-export-to-texinfo-batch $$(notdir $$<) $$(notdir $$@)
 endef