瀏覽代碼

ob-core: Tiny refactoring

* lisp/ob-core.el (org-babel-expand-noweb-references): Tiny
  refactoring.
Nicolas Goaziou 7 年之前
父節點
當前提交
1e40dd6486
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      lisp/ob-core.el

+ 2 - 3
lisp/ob-core.el

@@ -2761,9 +2761,8 @@ block but are passed literally to the \"example-block\"."
                    (let ((raw (org-babel-ref-resolve source-name)))
                      (if (stringp raw) raw (format "%S" raw)))
                  (or
-                  ;; Retrieve from the library of babel.
-                  (nth 2 (assoc (intern source-name)
-                                org-babel-library-of-babel))
+                  ;; Retrieve from the Library of Babel.
+                  (nth 2 (assoc-string source-name org-babel-library-of-babel))
                   ;; Return the contents of headlines literally.
                   (save-excursion
                     (when (org-babel-ref-goto-headline-id source-name)