瀏覽代碼

Don't prompt for bad links during babel export

* lisp/ob-exp.el (org-babel-exp-in-export-file): Bind
  `org-link-search-inhibit-query' to t to inhibit prompts.
Robert P. Goldman 14 年之前
父節點
當前提交
a173acf275
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/ob-exp.el

+ 2 - 1
lisp/ob-exp.el

@@ -93,7 +93,8 @@ source block function.")
        (set-buffer (get-file-buffer org-current-export-file))
        (save-restriction
 	 (condition-case nil
-	     (org-open-link-from-string link)
+	     (let ((org-link-search-inhibit-query t))
+	       (org-open-link-from-string link))
 	   (error (when heading
 		    (goto-char (point-min))
 		    (re-search-forward (regexp-quote heading) nil t))))