From 92ca657ea8aa928802597bc996541c42ff1e6284 Mon Sep 17 00:00:00 2001 From: Makarius Wenzel Date: Wed, 2 Aug 2000 15:02:20 +0000 Subject: added isa-preprocessing; --- isa/isa.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)))) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; -- cgit v1.2.3