diff options
| author | Eli Zaretskii | 2000-10-07 18:49:14 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2000-10-07 18:49:14 +0000 |
| commit | f26d858e50bb795ef9274e9d97089bbf92fce691 (patch) | |
| tree | 8fb9bd92843228e81ce39af26a0fd2782675d734 | |
| parent | 97ea7b552d0e30f3a76a1c96c46edcd724eea39b (diff) | |
| download | emacs-f26d858e50bb795ef9274e9d97089bbf92fce691.tar.gz emacs-f26d858e50bb795ef9274e9d97089bbf92fce691.zip | |
(find-backup-file-name) [ms-dos]: If support for long
file names is not available, behave as if version-control were set
to never.
| -rw-r--r-- | lisp/files.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index 6fc452545e5..904d04636f5 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2386,7 +2386,11 @@ Uses `backup-directory-alist' in the same way as does | |||
| 2386 | ;; Run a handler for this function so that ange-ftp can refuse to do it. | 2386 | ;; Run a handler for this function so that ange-ftp can refuse to do it. |
| 2387 | (if handler | 2387 | (if handler |
| 2388 | (funcall handler 'find-backup-file-name fn) | 2388 | (funcall handler 'find-backup-file-name fn) |
| 2389 | (if (eq version-control 'never) | 2389 | (if (or (eq version-control 'never) |
| 2390 | ;; We don't support numbered backups on plain MS-DOS | ||
| 2391 | ;; when long file names are unavailable. | ||
| 2392 | (and (eq system-type 'ms-dos) | ||
| 2393 | (not (msdos-long-file-names)))) | ||
| 2390 | (list (make-backup-file-name fn)) | 2394 | (list (make-backup-file-name fn)) |
| 2391 | (let* ((basic-name (make-backup-file-name-1 fn)) | 2395 | (let* ((basic-name (make-backup-file-name-1 fn)) |
| 2392 | (base-versions (concat (file-name-nondirectory basic-name) | 2396 | (base-versions (concat (file-name-nondirectory basic-name) |