(convert-standard-filename): Start replacing slashes

from the beginning of the file name, not from where the last
invalid character was.  From "Andrew Maguire (SWW)"
<Andrew.Maguire@Smallworld.co.uk>
This commit is contained in:
Eli Zaretskii 2001-05-08 16:26:11 +00:00
parent b60729681f
commit 5f47fb28f8
2 changed files with 13 additions and 5 deletions

View file

@ -1,3 +1,10 @@
2001-05-08 Eli Zaretskii <eliz@is.elta.co.il>
* w32-fns.el (convert-standard-filename): Start replacing slashes
from the beginning of the file name, not from where the last
invalid character was. From "Andrew Maguire (SWW)"
<Andrew.Maguire@Smallworld.co.uk>
2001-05-07 MORIOKA Tomohiko <tomo@m17n.org>
The following changes are to provide infrastructure for handling

View file

@ -266,11 +266,12 @@ with a definition that really does change some file names."
(setq start (match-end 0)))
;; convert directory separators to Windows format
;; (but only if the shell in use requires it)
(if (w32-shell-dos-semantics)
(while (string-match "/" name start)
(aset name (match-beginning 0) ?\\)
(setq start (match-end 0))))
name))
(when (w32-shell-dos-semantics)
(setq start 0)
(while (string-match "/" name start)
(aset name (match-beginning 0) ?\\)
(setq start (match-end 0))))
name))
;;; Fix interface to (X-specific) mouse.el
(defun x-set-selection (type data)