diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2001-09-24 16:37:10 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2001-09-24 16:37:10 +0000 |
commit | 79e954d0acf68c827469b467786083f6d5c3f365 (patch) | |
tree | bf97c1707055bd0e99f9c348794c16239d6ff03a /lisp/vc-hooks.el | |
parent | 49cef826cfd723985c191f7db8839c1929e292bc (diff) | |
download | emacs-79e954d0acf68c827469b467786083f6d5c3f365.tar.gz |
(vc-delete-automatic-version-backups): Handle the
case where the file is relative.
Diffstat (limited to 'lisp/vc-hooks.el')
-rw-r--r-- | lisp/vc-hooks.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index 5e6eba772cd..5083c1eed4e 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el @@ -5,7 +5,7 @@ ;; Author: FSF (see vc.el for full credits) ;; Maintainer: Andre Spiegel <spiegel@gnu.org> -;; $Id: vc-hooks.el,v 1.132 2001/07/11 22:05:01 monnier Exp $ +;; $Id: vc-hooks.el,v 1.133 2001/09/22 20:09:40 monnier Exp $ ;; This file is part of GNU Emacs. @@ -485,7 +485,7 @@ a regexp for matching all such backup files, regardless of the version." (condition-case nil (mapcar 'delete-file - (directory-files (file-name-directory file) t + (directory-files (or (file-name-directory file) default-directory) t (vc-version-backup-file-name file nil nil t))) ;; Don't fail when the directory doesn't exist. (file-error nil))) |