diff options
author | Nick Dokos <ndokos@redhat.com> | 2018-02-23 17:58:27 -0500 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-02-24 21:39:50 +0100 |
commit | 84a3d03dff7ff5b92fc7f29775b6a9359c635411 (patch) | |
tree | d18c3f6f611cfc82bbaf9ffd808813e4fad361a1 | |
parent | db90aadd383817452b2cf305e52ec9c196555733 (diff) | |
download | org-mode-84a3d03dff7ff5b92fc7f29775b6a9359c635411.tar.gz |
Replace dash by underscore in temp file names.
* org-babel-groovy-evaluate: replace '-' by '_' in temp file names.
Apparently, the JVM uses file names in the construction of names of internal
objects and dashes are illegal in that context. See
https://stackoverflow.com/questions/48893994/groovy-in-org-mode-babel
for an example.
-rw-r--r-- | lisp/ob-groovy.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ob-groovy.el b/lisp/ob-groovy.el index 67e7562..565b097 100644 --- a/lisp/ob-groovy.el +++ b/lisp/ob-groovy.el @@ -84,12 +84,12 @@ in BODY as elisp." (when session (error "Sessions are not (yet) supported for Groovy")) (pcase result-type (`output - (let ((src-file (org-babel-temp-file "groovy-"))) + (let ((src-file (org-babel-temp-file "groovy_"))) (progn (with-temp-file src-file (insert body)) (org-babel-eval (concat org-babel-groovy-command " " src-file) "")))) (`value - (let* ((src-file (org-babel-temp-file "groovy-")) + (let* ((src-file (org-babel-temp-file "groovy_")) (wrapper (format org-babel-groovy-wrapper-method body))) (with-temp-file src-file (insert wrapper)) (let ((raw (org-babel-eval |