ob-ref: Silence byte-compiler

* lisp/ob-ref.el (org-babel-ref-resolve): Silence byte-compiler.
This commit is contained in:
Nicolas Goaziou 2015-11-07 23:06:21 +01:00
parent 27aa7b3f1e
commit 0547969c0c
1 changed files with 6 additions and 4 deletions

View File

@ -193,10 +193,12 @@ the variable."
(when (org-babel-ref-goto-headline-id ref)
(throw :found (org-babel-ref-headline-body)))
;; Check the Library of Babel.
(let ((lob-info (cdr (assq (intern ref) org-babel-library-of-babel))))
(when lob-info
(throw :found (org-babel-execute-src-block nil lob-info params))))
(t (error "Reference `%s' not found in this buffer" ref)))))
(let ((info (cdr (assq (intern ref)
org-babel-library-of-babel))))
(when info
(throw :found
(org-babel-execute-src-block nil info params))))
(error "Reference `%s' not found in this buffer" ref))))
(cond
((symbolp result) (format "%S" result))
((and index (listp result))