From: Thibaut Meyer via "General discussions about Org-mode." <emacs-orgmode@gnu.org>
To: emacs-orgmode@gnu.org
Subject: [PATCH] doc/org-manual.org: Specify that tangling requires language identifier
Date: Sat, 28 Dec 2024 15:03:04 +0100 [thread overview]
Message-ID: <20241228140625.13144-1-thibaut@thibaut.dev> (raw)
TINYCHANGE
---
See discussion "[BUG] Inconsistent org-babel tangle behaviour"
doc/org-manual.org | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/doc/org-manual.org b/doc/org-manual.org
index 2d5fd57b3..7710bfe7e 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -18028,7 +18028,8 @@ or
block. See [[*Languages]], for identifiers of supported languages.
When =<language>= identifier is omitted, the block also cannot
- have =<switches>= and =<header arguments>=.
+ have =<switches>= and =<header arguments>=. Otherwise, the first
+ switch/argument will be treated as =<language>=.
Language identifier is also used to fontify code blocks in Org
buffers, when ~org-src-fontify-natively~ is set to non-~nil~. See
@@ -19429,6 +19430,9 @@ configured through the options. During this tangling process, Org
expands variables in the source code, and resolves any noweb style
references (see [[*Noweb Reference Syntax]]).
+Note that code blocks can only be tangled when a =<language>=
+identifier is specified.
+
*** Header arguments
:PROPERTIES:
:UNNUMBERED: notoc
--
2.47.1
reply other threads:[~2024-12-28 14:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241228140625.13144-1-thibaut@thibaut.dev \
--to=emacs-orgmode@gnu.org \
--cc=thibaut@thibaut.dev \
/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/org-mode.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).