diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2015-11-07 23:06:21 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2015-11-07 23:06:21 +0100 |
commit | 0547969c0ca53f7db05219b9debcda072768284b (patch) | |
tree | 8b3777defa06be8aa1fb58d54858ac293304ca43 | |
parent | 27aa7b3f1eac4dc5b93218956c5f949e73f23e55 (diff) | |
download | org-mode-0547969c0ca53f7db05219b9debcda072768284b.tar.gz |
ob-ref: Silence byte-compiler
* lisp/ob-ref.el (org-babel-ref-resolve): Silence byte-compiler.
-rw-r--r-- | lisp/ob-ref.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/ob-ref.el b/lisp/ob-ref.el index 7d2f3c1..ca4f167 100644 --- a/lisp/ob-ref.el +++ b/lisp/ob-ref.el @@ -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)) |