aboutsummaryrefslogtreecommitdiff
path: root/generic/proof-script.el
diff options
context:
space:
mode:
Diffstat (limited to 'generic/proof-script.el')
-rw-r--r--generic/proof-script.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el
index 97f72be1..f9a7231d 100644
--- a/generic/proof-script.el
+++ b/generic/proof-script.el
@@ -662,7 +662,8 @@ the ACS is marked in the current buffer. If CMD does not match any,
((eq (span-property span 'type) 'comment)
(set-span-property span 'mouse-face 'highlight))
((proof-check-atomic-sequents-lists span cmd end))
- ((proof-string-match proof-save-command-regexp cmd)
+ ((and (proof-string-match proof-save-command-regexp cmd)
+ (funcall proof-really-save-command-p span cmd))
;; In coq, we have the invariant that if we've done a save and
;; there's a top-level declaration then it must be the
;; associated goal. (Notice that because it's a callback it