diff options
| author | Eli Zaretskii | 2001-05-08 16:26:11 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-05-08 16:26:11 +0000 |
| commit | 5f47fb28f83cfa470c0a35df494c611ca2c461a1 (patch) | |
| tree | 64dc3a21f1467756c7d7a72c6c0589c6c5c23718 | |
| parent | b60729681f0ba42945a2c98c549ea79ea0049a9a (diff) | |
| download | emacs-5f47fb28f83cfa470c0a35df494c611ca2c461a1.tar.gz emacs-5f47fb28f83cfa470c0a35df494c611ca2c461a1.zip | |
(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>
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/w32-fns.el | 11 |
2 files changed, 13 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 992f32d4539..f3c8755b3a8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2001-05-08 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * w32-fns.el (convert-standard-filename): Start replacing slashes | ||
| 4 | from the beginning of the file name, not from where the last | ||
| 5 | invalid character was. From "Andrew Maguire (SWW)" | ||
| 6 | <Andrew.Maguire@Smallworld.co.uk> | ||
| 7 | |||
| 1 | 2001-05-07 MORIOKA Tomohiko <tomo@m17n.org> | 8 | 2001-05-07 MORIOKA Tomohiko <tomo@m17n.org> |
| 2 | 9 | ||
| 3 | The following changes are to provide infrastructure for handling | 10 | The following changes are to provide infrastructure for handling |
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el index 8e0e85dc5f1..018390d4b4a 100644 --- a/lisp/w32-fns.el +++ b/lisp/w32-fns.el | |||
| @@ -266,11 +266,12 @@ with a definition that really does change some file names." | |||
| 266 | (setq start (match-end 0))) | 266 | (setq start (match-end 0))) |
| 267 | ;; convert directory separators to Windows format | 267 | ;; convert directory separators to Windows format |
| 268 | ;; (but only if the shell in use requires it) | 268 | ;; (but only if the shell in use requires it) |
| 269 | (if (w32-shell-dos-semantics) | 269 | (when (w32-shell-dos-semantics) |
| 270 | (while (string-match "/" name start) | 270 | (setq start 0) |
| 271 | (aset name (match-beginning 0) ?\\) | 271 | (while (string-match "/" name start) |
| 272 | (setq start (match-end 0)))) | 272 | (aset name (match-beginning 0) ?\\) |
| 273 | name)) | 273 | (setq start (match-end 0)))) |
| 274 | name)) | ||
| 274 | 275 | ||
| 275 | ;;; Fix interface to (X-specific) mouse.el | 276 | ;;; Fix interface to (X-specific) mouse.el |
| 276 | (defun x-set-selection (type data) | 277 | (defun x-set-selection (type data) |