diff options
| author | David Aspinall | 2000-05-16 08:58:43 +0000 |
|---|---|---|
| committer | David Aspinall | 2000-05-16 08:58:43 +0000 |
| commit | a745d791c500f42de38051a9d7af385827857d46 (patch) | |
| tree | 0d212d9ba12f5a32b21270798d7f868f4ca87c00 | |
| parent | 87df137a5cf08c21919ec9a254e30bbc60987bb1 (diff) | |
Move setting of proof-shell-pre-interrupt-hook to isabelle-system.el
| -rw-r--r-- | isa/interface-setup.el | 5 | ||||
| -rw-r--r-- | isa/isabelle-system.el | 7 | ||||
| -rw-r--r-- | isar/interface-setup.el | 5 |
3 files changed, 7 insertions, 10 deletions
diff --git a/isa/interface-setup.el b/isa/interface-setup.el index 0a3f6b80..7e5ed4e4 100644 --- a/isa/interface-setup.el +++ b/isa/interface-setup.el @@ -6,11 +6,6 @@ 'isabelle-prog-name (concat (getenv "ISABELLE") " " (getenv "PROOFGENERAL_LOGIC"))) -(if (string-match "^polyml" (getenv "ML_SYSTEM")) - (customize-set-variable - 'proof-shell-pre-interrupt-hook - (lambda () (proof-shell-insert "f" nil)))) - (let ((xsym (getenv "PROOFGENERAL_XSYMBOL"))) (cond ((equal xsym "true") diff --git a/isa/isabelle-system.el b/isa/isabelle-system.el index bc2209ad..57cd4db6 100644 --- a/isa/isabelle-system.el +++ b/isa/isabelle-system.el @@ -182,6 +182,13 @@ Called with one argument: t to save database, nil otherwise." (isa-insert-ret "quit();")) (comint-send-eof)) +;;; Set proof-shell-pre-interrupt-hook for PolyML. +(if (and + (not proof-shell-pre-interrupt-hook) + (string-match "^polyml" (isa-getenv "ML_SYSTEM"))) + (add-hook + 'proof-shell-pre-interrupt-hook + (lambda () (proof-shell-insert "f" nil)))) ;;; ========== Utility functions ========== diff --git a/isar/interface-setup.el b/isar/interface-setup.el index 76f4f09e..9fdaba2b 100644 --- a/isar/interface-setup.el +++ b/isar/interface-setup.el @@ -6,11 +6,6 @@ 'isabelle-isar-prog-name (concat (getenv "ISABELLE") " " (getenv "PROOFGENERAL_LOGIC"))) -(if (string-match "^polyml" (getenv "ML_SYSTEM")) - (customize-set-variable - 'proof-shell-pre-interrupt-hook - (lambda () (proof-shell-insert (isar-verbatim "f") nil)))) - (let ((xsym (getenv "PROOFGENERAL_XSYMBOL"))) (cond ((equal xsym "true") |
