From 8f40ffb2b100ab2fa8455f30322d700895cd740b Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Fri, 24 Mar 2000 09:57:46 +0000 Subject: Attempt to fix filename mess for Windows. --- isa/isa.el | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'isa') diff --git a/isa/isa.el b/isa/isa.el index 01121a80..aa5bad34 100644 --- a/isa/isa.el +++ b/isa/isa.el @@ -145,8 +145,18 @@ and script mode." proof-shell-cd-cmd "Library.cd \"%s\"" ;; Escapes for filenames inside ML strings. + ;; We also make a hack for a bug in Isabelle, by switching from + ;; backslashes to forward slashes if it looks like we're running + ;; on Windows. proof-shell-filename-escapes - '(("\\\\" . "\\\\") ("\"" . "\\\"")) + (if (fboundp 'win32-long-filename) ; rough test for XEmacs on win32 + ;; Patterns to unixfy names. + ;; Jacques Fleuriot's patch in ML does this too: ("^[a-zA-Z]:" . "") + ;; But I'll risk leaving drive names in, not sure how to replace them. + '(("\\\\" . "/") ("\"" . "\\\"")) + ;; Normal case: quotation for backslash, quote mark. + '(("\\\\" . "\\\\") ("\"" . "\\\""))) + ;; FIXME: the next two are probably only good for NJ/SML proof-shell-interrupt-regexp "Interrupt" -- cgit v1.2.3