ob-clojure-literate: Handle no :file specified file is nil case

* ob-clojure-literate.el (ob-clojure-literate-inject-code): Handle
  no :file specified file is nil case.
This commit is contained in:
stardiviner 2018-04-02 13:47:28 +08:00 committed by Nicolas Goaziou
parent 46d841d064
commit 2a315ab59d
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ Then you need to assign image variable to this :file value like:
(directory (and dir (file-name-as-directory (expand-file-name dir))))
(result-type (cdr (assq :results params)))
(file (cdr (assq :file params)))
(file-name (file-name-base file))
(file-name (and file (file-name-base file)))
;; TODO: future support `:graphics-file' to avoid collision.
(graphics-result (member "graphics" (cdr (assq :result-params params))))
;; (graphics-file (cdr (assq :graphics-file params)))