Mercurial > emacs
changeset 56545:c3fa830eb56c
(wdired-finish-edit): Require dired-aux before locally binding dired-backup-overwrite.
author | Lars Hansen <larsh@soem.dk> |
---|---|
date | Sun, 25 Jul 2004 19:54:51 +0000 |
parents | 0fc1920bee81 |
children | 5a1afa879fee |
files | lisp/wdired.el |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/wdired.el Sun Jul 25 17:44:33 2004 +0000 +++ b/lisp/wdired.el Sun Jul 25 19:54:51 2004 +0000 @@ -455,6 +455,11 @@ (setq file-new (substitute-in-file-name file-new)) (if wdired-use-interactive-rename (wdired-search-and-rename file-ori file-new) + ;; If dired-rename-file autoloads dired-aux while + ;; dired-backup-overwrite is locally bound, + ;; dired-backup-overwrite won't be initialized. + ;; So we must ensure dired-aux is loaded. + (require 'dired-aux) (condition-case err (let ((dired-backup-overwrite nil)) (dired-rename-file file-ori file-new