emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] doc/org-manual.org: Specify that tangling requires language identifier
@ 2024-12-28 14:03 Thibaut Meyer via General discussions about Org-mode.
  0 siblings, 0 replies; only message in thread
From: Thibaut Meyer via General discussions about Org-mode. @ 2024-12-28 14:03 UTC (permalink / raw)
  To: emacs-orgmode

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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-28 14:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-28 14:03 [PATCH] doc/org-manual.org: Specify that tangling requires language identifier Thibaut Meyer via General discussions about Org-mode.

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).