summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-02-14 15:42:18 -0500
committerKyle Meyer <kyle@kyleam.com>2021-02-14 15:42:18 -0500
commitff1e8f3eba7e101b2f6eb178b20ac13300cddb8a (patch)
tree3127d7f7bf5d84278184552e17e639386f44f4d3
parent49364f904b793513112fb8f71dd6b7f6274171cf (diff)
downloadorg-mode-ff1e8f3eba7e101b2f6eb178b20ac13300cddb8a.tar.gz
ob-java: Fix previous commit
* lisp/ob-java.el (org-babel-execute:java): Restore inspection of :dir's value to decide whether to run from temporary directory. My compatibility fix in the previous commit incorrectly changed the documented and intended behavior for (:dir . nil). Reported-by: Ian Martins <ianxm@jhu.edu>
-rw-r--r--lisp/ob-java.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-java.el b/lisp/ob-java.el
index 78e73ea..54d9090 100644
--- a/lisp/ob-java.el
+++ b/lisp/ob-java.el
@@ -172,7 +172,7 @@ replaced in this string.")
(or (cdr (assq :java params))
org-babel-java-command))
;; if true, run from babel temp directory
- (run-from-temp (not (assq :dir params)))
+ (run-from-temp (not (cdr (assq :dir params))))
;; class and package
(fullclassname (or (cdr (assq :classname params))
(org-babel-java-find-classname body)))