aboutsummaryrefslogtreecommitdiff
path: root/generic/proof-shell.el
diff options
context:
space:
mode:
authorDavid Aspinall2010-08-26 23:08:27 +0000
committerDavid Aspinall2010-08-26 23:08:27 +0000
commite21c8e665861e618a980f27feedc1d0b9240571e (patch)
treec9cf5e35fae19d82c9d7c9cb82b0b6f7174a7493 /generic/proof-shell.el
parent2b6176e2d3c7d907f29e3b4c59e843b75c068840 (diff)
proof-interrupt-process: make sure works from non-proof shell buffers.
Diffstat (limited to 'generic/proof-shell.el')
-rw-r--r--generic/proof-shell.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/proof-shell.el b/generic/proof-shell.el
index e80bdf0b..c47dedee 100644
--- a/generic/proof-shell.el
+++ b/generic/proof-shell.el
@@ -484,10 +484,9 @@ so that loading them the next time round only performs a re-linking
operation, not full re-processing. (One way of caching is via
object files, used by Lego and Coq)."
(interactive)
- (if proof-shell-busy
- (progn
- (proof-interrupt-process)
- (proof-shell-wait)))
+ (when proof-shell-busy
+ (proof-interrupt-process)
+ (proof-shell-wait))
(if (not (proof-shell-live-buffer))
(proof-shell-start) ;; start if not running
;; otherwise clear context
@@ -717,7 +716,8 @@ the prover command buffer (e.g., with Isabelle2009 press RET inside *isabelle*).
(unless proof-shell-busy
(error "Proof process not active!"))
(setq proof-shell-interrupt-pending t)
- (interrupt-process))
+ (with-current-buffer proof-shell-buffer
+ (interrupt-process)))