aboutsummaryrefslogtreecommitdiff
path: root/coq
diff options
context:
space:
mode:
Diffstat (limited to 'coq')
-rw-r--r--coq/coq.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/coq/coq.el b/coq/coq.el
index 0a8ec0ed..09d1a484 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -15,6 +15,7 @@
(eval-when (compile)
(require 'proof-utils)
+ (require 'proof-shell)
(require 'span)
(require 'outline)
(require 'newcomment)
@@ -830,7 +831,7 @@ This is specific to `coq-mode'."
(setq proof-cannot-reopen-processed-files nil
proof-auto-multiple-files t
;; proof-shell-inform-file-retracted-cmd 'coq-retract-file
- proof-shell-require-command-regexp coq-require-command-regexp
+ ;; proof-shell-require-command-regexp coq-require-command-regexp
proof-done-advancing-require-function 'coq-process-require-command)
(add-hook 'proof-activate-scripting-hook 'proof-cd-sync nil t)
@@ -1554,6 +1555,12 @@ queue."
(coq-make-lib-up-to-date (symbol-value coq-object-local-hash-symbol)
module-obj-file)))))
+(defvar coq-process-require-current-buffer
+ "Used in `coq-compile-save-some-buffers' and `coq-compile-save-buffer-filter'.
+This only locally used variable communicates the current buffer
+from `coq-compile-save-some-buffers' to
+`coq-compile-save-buffer-filter'.")
+
(defun coq-compile-save-buffer-filter ()
"Filter predicate for `coq-compile-save-some-buffers'.
See also `save-some-buffers'. Returns t for buffers with major mode