浏览代码

ob-tangle: don't call `org-store-link' interactively when tangling

* lisp/ob-tangle.el (org-babel-tangle-collect-blocks): Don't call
  `org-store-link' interactively as it can confuse the setting of
  `org-link-to-org-use-id' and cause undue edits to the org-mode
  buffer during tangling.
Eric Schulte 14 年之前
父节点
当前提交
814012ca80
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/ob-tangle.el

+ 1 - 1
lisp/ob-tangle.el

@@ -295,7 +295,7 @@ code blocks by language."
           (unless (and language (not (string= language src-lang)))
 	    (let* ((info (org-babel-get-src-block-info))
 		   (params (nth 2 info))
-		   (link (progn (call-interactively 'org-store-link)
+		   (link (progn (org-store-link nil)
 				(org-babel-clean-text-properties
 				 (car (pop org-stored-links)))))
 		   (source-name