From f3de4c3e041e0ea825b5b512dc0db37c78b7909e Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Thu, 12 Oct 2023 17:34:54 +0300 Subject: [PATCH] org-babel-tangle-collect-blocks: Ignore src blocks without language * lisp/ob-tangle.el (org-babel-tangle-collect-blocks): Skip src blocks that do not specify lang rather than erring. Reported-by: Andrea Link: https://orgmode.org/list/AS8P193MB241369D9F0701F57E293429288D3A@AS8P193MB2413.EURP193.PROD.OUTLOOK.COM --- lisp/ob-tangle.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 4566e03ad..b30fd9274 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -475,6 +475,7 @@ code blocks by target file." (src-lang (nth 0 info)) (src-tfile (cdr (assq :tangle (nth 2 info))))) (unless (or (string= src-tfile "no") + (not src-lang) ;; src block without lang (and tangle-file (not (equal tangle-file src-tfile))) (and lang-re (not (string-match-p lang-re src-lang)))) ;; Add the spec for this block to blocks under its tangled