Problem with completer-file on Windows
Edi Weitz <[email protected]>
| Newsgroups | gmane.lisp.ilisp.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi!
The function completer-file in completer.el starts with these lines:
;; Canonicalize slashes under windows-nt for proper completion
(when (eq system-type 'windows-nt)
(setq string (replace-in-string string "/" "\\\\")))
Unfortunately, the Emacs that I'm using (21.2, prebuilt binaries, full
version, on Windows XP pro) doesn't know the function
replace-in-string and thus barfs.
I fixed this for me
;; Canonicalize slashes under windows-nt for proper completion
(when (eq system-type 'windows-nt)
(setq string (replace-regexp-in-string "/" "\\\\" string)))
but it don't have other Emacsen on Windows around to test whether
it'll work there.
However, I can confirm that on the Linux and FreeBSD machines I have
access to replace-regexp-in-string is known on 21.2 but not on
20.7. None of them knows replace-in-string. (I assume the existence or
non-existence of these functions doesn't depend on the underlying OS.)
I'm using the ilisp-20020702.tar.gz snapshot.
Cheers,
Edi.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf