Commits

Anonymous committed dc03fdb

Fix backslash handling on Windows <1039954561.24941.56.camel@bobcat.ods.org>.

Comments (0)

Files changed (2)

 	* .cvsignore: Remove files now handled automatically by CVS.
 	* Makefile: Use `compile' instead of hard-coded `all'.
 
+	* install.el (install-detect-elisp-directory): Fix problems
+	handling backslashes in filenames (Windows).
+
 2002-10-15  Ville Skyttä  <scop@xemacs.org>
 
 	* Makefile (srckit): Remove.
   (or (catch 'tag
 	(let ((rest default-load-path)
 	      (regexp (concat "^"
-			      (expand-file-name (concat ".*/" elisp-prefix)
-						prefix)
+			      (regexp-quote (replace-in-string
+					     (file-name-as-directory
+					      (expand-file-name elisp-prefix))
+					     "\\\\" "/"))
+			      ".*/"
+			      (regexp-quote
+			       (replace-in-string prefix "\\\\" "/"))
 			      "/?$")))
 	  (while rest
-	    (if (string-match regexp (car rest))
+	    (if (string-match regexp
+			      (replace-in-string (car rest) "\\\\" "/"))
 		(if (or allow-version-specific
 			(not (string-match (format "/%d\\.%d"
 						   emacs-major-version
 						   emacs-minor-version)
-					   (car rest))))
+					   (replace-in-string (car rest)
+							      "\\\\" "/"))))
 		    (throw 'tag (car rest))))
 	    (setq rest (cdr rest)))))
       (expand-file-name (concat (if (and (not (featurep 'xemacs))