瀏覽代碼

Merge branch 'bugfix'

Ihor Radchenko 2 年之前
父節點
當前提交
6c1e3dfa28
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      lisp/ob-tangle.el

+ 4 - 1
lisp/ob-tangle.el

@@ -638,7 +638,10 @@ which enable the original code blocks to be found."
 	  (error "Not in tangled code"))
 	  (error "Not in tangled code"))
         (setq body (buffer-substring body-start end)))
         (setq body (buffer-substring body-start end)))
       ;; Go to the beginning of the relative block in Org file.
       ;; Go to the beginning of the relative block in Org file.
-      (org-link-open-from-string link)
+      ;; Explicitly allow fuzzy search even if user customized
+      ;; otherwise.
+      (let (org-link-search-must-match-exact-headline)
+        (org-link-open-from-string link))
       (setq target-buffer (current-buffer))
       (setq target-buffer (current-buffer))
       (if (string-match "[^ \t\n\r]:\\([[:digit:]]+\\)" block-name)
       (if (string-match "[^ \t\n\r]:\\([[:digit:]]+\\)" block-name)
           (let ((n (string-to-number (match-string 1 block-name))))
           (let ((n (string-to-number (match-string 1 block-name))))