completer fix for Emacs running on Windows
Hannu Koivisto <[email protected]>
| Newsgroups | gmane.lisp.ilisp.devel |
|---|---|
| Message-ID | <[email protected]> |
Greetings, The attached patch fixes a problem in completer running on Emacs running on Windows. First of all the original code didn't work at all since replace-in-string is not defined in Emacs and even if you fixed that, it seems that replacing slashes with backslashes is not a good idea in Emacs -- completer wasn't able to display the list of possible completions. This may not be the most appropriate fix but at least it's better than nothing. Someone who actually uses Emacs and completer on Windows can hack further if this doesn't turn out to be good enough. 2003-05-21 Hannu Koivisto <[email protected]> * completer.el: * (completer-file) Replace slash with blackslashes in STRING only in XEmacs running on Windows. -- Hannu
ilisp-completer-emacs+windows-fix.patch
(text/x-patch, 570 B)
--- completer.el 14 Jul 2002 16:35:14 -0000 1.1.1.3
+++ completer.el 21 May 2003 19:26:46 -0000 1.3
@@ -434,7 +434,7 @@
delimiters in WORD. If optional MODE is nil or 'help then possible
matches will always be returned."
;; Canonicalize slashes under windows-nt for proper completion
- (when (eq system-type 'windows-nt)
+ (when (and (eq system-type 'windows-nt) (featurep 'xemacs))
(setq string (replace-in-string string "/" "\\\\")))
(let* ((case-fold-search completion-ignore-case)
(last (and (eq mode 'exit-ok) (completer-last-component string)))