aboutsummaryrefslogtreecommitdiffhomepage
path: root/isa
diff options
context:
space:
mode:
authorGravatar Makarius Wenzel <makarius@sketis.net>2000-08-02 15:02:20 +0000
committerGravatar Makarius Wenzel <makarius@sketis.net>2000-08-02 15:02:20 +0000
commit92ca657ea8aa928802597bc996541c42ff1e6284 (patch)
treee4f3627d3be57201fe67527dba85ee49d471bdf3 /isa
parentb65f95edf852e2604048d1a8e9b591f4c7469bca (diff)
added isa-preprocessing;
Diffstat (limited to 'isa')
-rw-r--r--isa/isa.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/isa/isa.el b/isa/isa.el
index 68f88a17..6c4b6315 100644
--- a/isa/isa.el
+++ b/isa/isa.el
@@ -569,9 +569,10 @@ you will be asked to retract the file or process the remainder of it."
(setq blink-matching-paren-dont-ignore-comments t))
-;; This hook is added on load because proof shells can
+;; These hooks are added on load because proof shells can
;; be started from .thy (not in scripting mode) or .ML files.
(add-hook 'proof-pre-shell-start-hook 'isa-pre-shell-start nil t)
+(add-hook 'proof-shell-insert-hook 'isa-preprocessing)
(defun isa-shell-mode-config ()
"Configure Proof General proof shell for Isabelle."
@@ -593,6 +594,11 @@ you will be asked to retract the file or process the remainder of it."
(setq font-lock-keywords isa-goals-font-lock-keywords)
(proof-goals-config-done))
+(defun isa-preprocessing () ;dynamic scoping of `string'
+ "Handle ^VERBATIM marker -- acts on variable STRING by dynamic scoping"
+ (if (string-match isabelle-verbatim-regexp string)
+ (setq string (match-string 1 string))))
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;