unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: 71394@debbugs.gnu.org
Subject: bug#71394: [PATCH] Update .org->.texi Makefile target for new Org 9.7 release
Date: Thu, 06 Jun 2024 12:07:34 +0000	[thread overview]
Message-ID: <87jzj246m1.fsf@localhost> (raw)

[-- Attachment #1: Type: text/plain, Size: 1172 bytes --]

Tags: patch

Tags: patch

X-Debbugs-CC: Eli Zaretskii <eliz@gnu.org>

May you please install the attached patch for .org->.texi Makefile rule?
The patch enables evaluation of code blocks inside the manual - this
allows generating parts of the manual programatically.

Note that this patch may also affect _future_ versions of other .org
manuals. Currently, it is modus-themes.org - the only other .org manual
in Emacs tree. If code blocks in .org manuals are explicitly marked with
:eval yes header argument, they will be evaluated during export to
produce generated output for inclusion into the manual.

We need this patch to make the new version of Org manual (in Org mode
9.7) work. We also hope to merge Org 9.7 into Emacs before emacs-30
branch is cut.

In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.41, cairo version 1.18.0) of 2024-06-01 built on localhost
Repository revision: 1c59acd7b63ca507d3d12e0dba7f77510ced9c45
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101013
System Description: Gentoo Linux

Configured using:
 'configure JAVAC=/etc/java-config-2/current-system-vm/bin/javac'


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Enable-code-block-evaluation-when-generating-.org-ma.patch --]
[-- Type: text/patch, Size: 1527 bytes --]

From 71a43b4652987faa4b6c96d9d075e6d9652577e0 Mon Sep 17 00:00:00 2001
Message-ID: <71a43b4652987faa4b6c96d9d075e6d9652577e0.1717675205.git.yantar92@posteo.net>
From: Kyle Meyer <kyle@kyleam.com>
Date: Wed, 29 May 2024 00:05:46 -0400
Subject: [PATCH] Enable code block evaluation when generating .org manuals

* doc/misc/Makefile.in ($(1:.org=.texi)): Enable code block evaluation
in Org mode manual and other .org manuals to produce automatically
generated parts.

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.
---
 doc/misc/Makefile.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/misc/Makefile.in b/doc/misc/Makefile.in
index 2841916dc89..b26d3525a22 100644
--- a/doc/misc/Makefile.in
+++ b/doc/misc/Makefile.in
@@ -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
 
-- 
2.45.1


[-- Attachment #3: Type: text/plain, Size: 224 bytes --]


-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

             reply	other threads:[~2024-06-06 12:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-06 12:07 Ihor Radchenko [this message]
2024-06-06 12:36 ` bug#71394: [PATCH] Update .org->.texi Makefile target for new Org 9.7 release Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87jzj246m1.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=71394@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).