aboutsummaryrefslogtreecommitdiff
path: root/coq
diff options
context:
space:
mode:
authorClément Pit--Claudel2017-02-26 00:28:18 -0500
committerClément Pit--Claudel2017-03-08 15:06:17 -0500
commit70dfbc54d9a6b559dbfcfd6105a7e8c80d78d888 (patch)
treee68885d95d7281f758d41f5f8a8249a4ddb76509 /coq
parent6c703907b192bc903ca9897e17424e58e2003692 (diff)
Fix incorrect assumption that noninteractive == byte-compiling
The PG Makefile does ensure (using --batch) that noninteractive is non-nil while compiling, but package.el doesn't.
Diffstat (limited to 'coq')
-rw-r--r--coq/coq-abbrev.el2
-rw-r--r--coq/coq-autotest.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/coq/coq-abbrev.el b/coq/coq-abbrev.el
index 2b318dea..a05c9853 100644
--- a/coq/coq-abbrev.el
+++ b/coq/coq-abbrev.el
@@ -71,7 +71,7 @@
;; DA: how about above, just temporarily disable saving?
(message "Coq default abbrevs loaded")))
-(unless noninteractive
+(unless (or noninteractive (bound-and-true-p byte-compile-current-file))
(coq-install-abbrevs))
;;;;;
diff --git a/coq/coq-autotest.el b/coq/coq-autotest.el
index b6b361ed..a8367b5c 100644
--- a/coq/coq-autotest.el
+++ b/coq/coq-autotest.el
@@ -16,7 +16,7 @@
(defvar coq-compile-before-require nil))
-(unless noninteractive
+(unless (bound-and-true-p byte-compile-current-file)
(pg-autotest start 'debug)