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:
parent
46d841d064
commit
2a315ab59d
|
@ -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))))
|
(directory (and dir (file-name-as-directory (expand-file-name dir))))
|
||||||
(result-type (cdr (assq :results params)))
|
(result-type (cdr (assq :results params)))
|
||||||
(file (cdr (assq :file 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.
|
;; TODO: future support `:graphics-file' to avoid collision.
|
||||||
(graphics-result (member "graphics" (cdr (assq :result-params params))))
|
(graphics-result (member "graphics" (cdr (assq :result-params params))))
|
||||||
;; (graphics-file (cdr (assq :graphics-file params)))
|
;; (graphics-file (cdr (assq :graphics-file params)))
|
||||||
|
|
Loading…
Reference in New Issue