aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Innes2000-10-23 17:40:16 +0000
committerAndrew Innes2000-10-23 17:40:16 +0000
commit446c097e30de5509ef33a5432febcc28a4e680cf (patch)
treee3ae2607410aa498222b06d6fb928a17a8fadd5c
parent16ed4c479ef84d7218498b24c6ba477a441b6a39 (diff)
downloademacs-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.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/files.el6
2 files changed, 8 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c85834eaf22..eb5f45276ab 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12000-10-23 Andrew Innes <andrewi@gnu.org>
2
3 * files.el (make-backup-file-name-1) [windowsnt, ms-dos]: Remove
4 superfluous calls to subst-char-in-string; instead apply
5 expand-file-name after convert-standard-filename to ensure
6 expected directory separators are used.
7
12000-10-23 Eli Zaretskii <eliz@is.elta.co.il> 82000-10-23 Eli Zaretskii <eliz@is.elta.co.il>
2 9
3 * info.el (Info-file-list-for-emacs): Add an entry for Eshell. 10 * info.el (Info-file-list-for-emacs): Add an entry for Eshell.
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_"