瀏覽代碼

A neutral bug (unnecessary, but no consequences I believe).

Dan Davison 16 年之前
父節點
當前提交
a0e0fe17f4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/org-babel-ref.el

+ 1 - 1
lisp/org-babel-ref.el

@@ -115,7 +115,7 @@ return nil."
                 (re-search-backward regexp nil t)
                 ;; check the Library of Babel
                 (setq lob-info (cdr (assoc (intern ref) org-babel-library-of-babel)))))
-          (goto-char (match-beginning 0))
+          (unless lob-info (goto-char (match-beginning 0)))
         ;; ;; TODO: allow searching for names in other buffers
         ;; (setq id-loc (org-id-find ref 'marker)
         ;;       buffer (marker-buffer id-loc)