summaryrefslogtreecommitdiff
path: root/lisp/wdired.el
diff options
context:
space:
mode:
authorLars Hansen <larsh@soem.dk>2004-07-25 19:55:21 +0000
committerLars Hansen <larsh@soem.dk>2004-07-25 19:55:21 +0000
commite0db2366e7a4bd0719b8a0e7899f294243a6c946 (patch)
treee6f7ba39a1ef925219f66440f0ab695a074aa4d1 /lisp/wdired.el
parentab431b61cd97c306aee286644084d5e2d1923de9 (diff)
downloademacs-e0db2366e7a4bd0719b8a0e7899f294243a6c946.tar.gz
(wdired-finish-edit): Require dired-aux before locally binding dired-backup-overwrite.
Diffstat (limited to 'lisp/wdired.el')
-rw-r--r--lisp/wdired.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/wdired.el b/lisp/wdired.el
index 30ba2a3cd45..928ecd65339 100644
--- a/lisp/wdired.el
+++ b/lisp/wdired.el
@@ -455,6 +455,11 @@ non-nil means return old filename."
(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