[GHC] #975: Allow quoting of the file path in :load command
GHC
trac at galois.com
Tue Nov 14 19:58:34 EST 2006
#975: Allow quoting of the file path in :load command
--------------------------------+-------------------------------------------
Reporter: cubranic at gmail.com | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: GHCi | Version: 6.4.2
Severity: normal | Resolution: fixed
Keywords: | Difficulty: Unknown
Testcase: | Architecture: x86
Os: Windows |
--------------------------------+-------------------------------------------
Comment (by guest):
''It sounds like haskell-mode should be changed to escape backslashes,
though.''
That's exactly what I ended up doing in my local haskell-ghci.el:
{{{
--- haskell-ghci.el.orig 2006-10-19 14:09:24.012317100 -0700
+++ haskell-ghci.el 2006-10-30 18:01:59.322452600 -0800
@@ -227,7 +227,7 @@
(hack-local-variables) ; in case they've changed
(save-buffer)
(let ((file (if (string-equal load-command ":load ")
- (concat "\"" buffer-file-name "\"")
+ (replace-in-string (concat "\"" buffer-file-name "\"")
"[\\\\]" "/")
""))
(dir (expand-file-name default-directory))
(cmd (and (boundp 'haskell-ghci-command)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/975>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list