diff options
| author | Andrew Innes | 2000-10-23 17:40:16 +0000 |
|---|---|---|
| committer | Andrew Innes | 2000-10-23 17:40:16 +0000 |
| commit | 446c097e30de5509ef33a5432febcc28a4e680cf (patch) | |
| tree | e3ae2607410aa498222b06d6fb928a17a8fadd5c /lisp/files.el | |
| parent | 16ed4c479ef84d7218498b24c6ba477a441b6a39 (diff) | |
| download | emacs-446c097e30de5509ef33a5432febcc28a4e680cf.tar.gz emacs-446c097e30de5509ef33a5432febcc28a4e680cf.zip | |
(make-backup-file-name-1) [windowsnt, ms-dos]: Remove
superfluous calls to subst-char-in-string; instead apply
expand-file-name after convert-standard-filename to ensure
expected directory separators are used.
Diffstat (limited to 'lisp/files.el')
| -rw-r--r-- | lisp/files.el | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lisp/files.el b/lisp/files.el index 0cc2f9b6ee6..e0277befbc1 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2327,12 +2327,8 @@ doesn't exist, it is created." | |||
| 2327 | (setq file (expand-file-name file))) ; make defaults explicit | 2327 | (setq file (expand-file-name file))) ; make defaults explicit |
| 2328 | ;; Replace any invalid file-name characters (for the | 2328 | ;; Replace any invalid file-name characters (for the |
| 2329 | ;; case of backing up remote files). | 2329 | ;; case of backing up remote files). |
| 2330 | (setq file (convert-standard-filename file)) | 2330 | (setq file (expand-file-name (convert-standard-filename file))) |
| 2331 | (setq dir-sep-string (char-to-string directory-sep-char)) | 2331 | (setq dir-sep-string (char-to-string directory-sep-char)) |
| 2332 | (or (eq directory-sep-char ?/) | ||
| 2333 | (subst-char-in-string ?/ ?\\ file)) | ||
| 2334 | (or (eq directory-sep-char ?\\) | ||
| 2335 | (subst-char-in-string ?\\ ?/ file)) | ||
| 2336 | (if (eq (aref file 1) ?:) | 2332 | (if (eq (aref file 1) ?:) |
| 2337 | (setq file (concat dir-sep-string | 2333 | (setq file (concat dir-sep-string |
| 2338 | "drive_" | 2334 | "drive_" |