emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 221c8e2: ob-tangle: Parse correctly tangle options


From: ELPA Syncer
Subject: [elpa] externals/org 221c8e2: ob-tangle: Parse correctly tangle options
Date: Thu, 1 Jul 2021 09:57:14 -0400 (EDT)

branch: externals/org
commit 221c8e298ffc1098c89e5a38430878aa45a2ecf7
Author: Jacopo De Simoi <jacopods@protonmail.com>
Commit: Nicolas Goaziou <mail@nicolasgoaziou.fr>

    ob-tangle: Parse correctly tangle options
    
    * lisp/ob-tangle.el (org-babel-effective-tangled-filename): Check for
      the "no" parameter in this function to avoid erroneous tangling of a
      single block (e.g. with C-u C-c C-v t) even with the parameter
      :tangle no
    
    TINYCHANGE
---
 lisp/ob-tangle.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el
index 562776a..2f60ef9 100644
--- a/lisp/ob-tangle.el
+++ b/lisp/ob-tangle.el
@@ -359,6 +359,7 @@ as computed by `org-babel-tangle-single-block'."
                     ((string= "yes" src-tfile)
                      ;; Use the buffer name
                      (file-name-sans-extension buffer-fn))
+                    ((string= "no" src-tfile) nil)
                     ((> (length src-tfile) 0) src-tfile)))
         (ext (or (cdr (assoc src-lang org-babel-tangle-lang-exts)) src-lang)))
     (when base-name



reply via email to

[Prev in Thread] Current Thread [Next in Thread]