summaryrefslogtreecommitdiffhomepage
path: root/lib/prog
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-10-04 00:29:17 +0100
committerjao <jao@gnu.org>2021-10-04 00:29:17 +0100
commit5a3f184f25bc4230d4d95d81e203f328839f8737 (patch)
tree1abee80d656374c50b1cdf9b9ae9e95a0ab6addc /lib/prog
parent069d6132f3c7415a22d9f00e533ad14d55d95e15 (diff)
downloadelibs-5a3f184f25bc4230d4d95d81e203f328839f8737.tar.gz
elibs-5a3f184f25bc4230d4d95d81e203f328839f8737.tar.bz2
misc nits
Diffstat (limited to 'lib/prog')
-rw-r--r--lib/prog/jao-compilation.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prog/jao-compilation.el b/lib/prog/jao-compilation.el
index ef303ea..1c8e465 100644
--- a/lib/prog/jao-compilation.el
+++ b/lib/prog/jao-compilation.el
@@ -100,7 +100,7 @@
"Find the root of current file's project and issue a
compilation command"
(interactive)
- (let ((default-directory (jao-compilation-root))
+ (let ((default-directory (or (jao-compilation-root) default-directory))
(compilation-environment (jao-compilation--environment))
(compilation-read-command 'compilation-read-command))
(call-interactively 'compile)))