# HG changeset patch # User Eli Zaretskii # Date 970944554 0 # Node ID e3c97d8f7a7ef8b5821ba800ece77b33ff2a882e # Parent 62100be6ca6d623be697dd901982a7c02647603f (find-backup-file-name) [ms-dos]: If support for long file names is not available, behave as if version-control were set to never. diff -r 62100be6ca6d -r e3c97d8f7a7e lisp/files.el --- a/lisp/files.el Sat Oct 07 18:41:26 2000 +0000 +++ b/lisp/files.el Sat Oct 07 18:49:14 2000 +0000 @@ -2386,7 +2386,11 @@ ;; Run a handler for this function so that ange-ftp can refuse to do it. (if handler (funcall handler 'find-backup-file-name fn) - (if (eq version-control 'never) + (if (or (eq version-control 'never) + ;; We don't support numbered backups on plain MS-DOS + ;; when long file names are unavailable. + (and (eq system-type 'ms-dos) + (not (msdos-long-file-names)))) (list (make-backup-file-name fn)) (let* ((basic-name (make-backup-file-name-1 fn)) (base-versions (concat (file-name-nondirectory basic-name)