]> git.eshelyaron.com Git - emacs.git/commitdiff
(file-newest-backup): Use file-name-sans-versions.
authorMarkus Rost <rost@math.uni-bielefeld.de>
Wed, 22 May 2002 23:29:58 +0000 (23:29 +0000)
committerMarkus Rost <rost@math.uni-bielefeld.de>
Wed, 22 May 2002 23:29:58 +0000 (23:29 +0000)
lisp/ChangeLog
lisp/files.el

index a35caa9d7655e5643eaa8d66a47005b94095f287..e97889906b610b9ef7548f5bd53dd034809ffd91 100644 (file)
@@ -1,3 +1,10 @@
+2002-05-22  Markus Rost  <rost@math.ohio-state.edu>
+
+       * files.el (file-newest-backup): Use file-name-sans-versions.
+
+       * diff.el (diff-latest-backup-file): Replace the main code by
+       a call of file-newest-backup.
+
 2002-05-22  Mike Williams  <mdub@bigfoot.com>
 
        * textmodes/sgml-mode.el (sgml-guess-indent): Look further into
index 9169ae9193bb61c14cccaecf7ec5552c9807aa22..b01472171a93c782423dbbefc635289ed042d5d0 100644 (file)
@@ -3011,7 +3011,8 @@ saying what text to write."
   ;; `make-backup-file-name' will get us the right directory for
   ;; ordinary or numeric backups.  It might create a directory for
   ;; backups as a side-effect, according to `backup-directory-alist'.
-  (let* ((filename (make-backup-file-name filename))
+  (let* ((filename (file-name-sans-versions
+                   (make-backup-file-name filename)))
         (file (file-name-nondirectory filename))
         (dir  (file-name-directory    filename))
         (comp (file-name-all-completions file dir))