changeset 5958:64fa4e0f3fce

(recover-file): Call auto-save-file-name-p correctly.
author Richard M. Stallman <rms@gnu.org>
date Wed, 16 Feb 1994 18:23:16 +0000
parents 334f7ce7c8db
children e4337a7bbe32
files lisp/files.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Wed Feb 16 18:20:13 1994 +0000
+++ b/lisp/files.el	Wed Feb 16 18:23:16 1994 +0000
@@ -1822,7 +1822,8 @@
      (list (read-file-name "Recover file: "
 			       file-dir nil nil file-name))))
   (setq file (expand-file-name file))
-  (if (auto-save-file-name-p file) (error "%s is an auto-save file" file))
+  (if (auto-save-file-name-p (file-name-nondirectory file))
+      (error "%s is an auto-save file" file))
   (let ((file-name (let ((buffer-file-name file))
 		     (make-auto-save-file-name))))
     (cond ((not (file-newer-than-file-p file-name file))