diff options
author | Hendrik Tews <hendrik@askra.de> | 2011-01-18 21:46:18 +0000 |
---|---|---|
committer | Hendrik Tews <hendrik@askra.de> | 2011-01-18 21:46:18 +0000 |
commit | 358b338316430fe8707780985702b2a925a45abc (patch) | |
tree | 0c058e30fb1c42a714a40731aa442c99f9007c0d /generic/proof-shell.el | |
parent | 680d718e1e3ca280dfc35fc3f1807d0c373a1870 (diff) |
- fixed stale load path problem with killing the proof shell in
the deactivation-hook
Diffstat (limited to 'generic/proof-shell.el')
-rw-r--r-- | generic/proof-shell.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/generic/proof-shell.el b/generic/proof-shell.el index 069694e7..fe439115 100644 --- a/generic/proof-shell.el +++ b/generic/proof-shell.el @@ -459,14 +459,18 @@ shell buffer, alled by `proof-shell-bail-out' if process exits." proof-shell-delayed-output-end nil proof-shell-delayed-output-flags nil)) -(defun proof-shell-exit () +(defun proof-shell-exit (&optional dont-ask) "Query the user and exit the proof process. This simply kills the `proof-shell-buffer' relying on the hook function -`proof-shell-kill-function' to do the hard work." + +`proof-shell-kill-function' to do the hard work. If optional +argument DONT-ASK is non-nil, the proof process is terminated +without confirmation." (interactive) (if (buffer-live-p proof-shell-buffer) - (when (yes-or-no-p (format "Exit %s process? " proof-assistant)) + (when (or dont-ask + (yes-or-no-p (format "Exit %s process? " proof-assistant))) (let ((kill-buffer-query-functions nil)) ; avoid extra dialog (kill-buffer proof-shell-buffer)) (setq proof-shell-buffer nil)) |