changeset 95957:42fbae40c9e0

(wdired-search-and-rename): Fix undocumented change.
author Andreas Schwab <schwab@suse.de>
date Sun, 15 Jun 2008 09:43:38 +0000
parents d2bcf235d764
children fbdde312e09d
files lisp/ChangeLog lisp/wdired.el
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sun Jun 15 08:04:13 2008 +0000
+++ b/lisp/ChangeLog	Sun Jun 15 09:43:38 2008 +0000
@@ -1,3 +1,7 @@
+2008-06-15  Andreas Schwab  <schwab@suse.de>
+
+	* wdired.el (wdired-search-and-rename): Fix undocumented change.
+
 2008-06-15  Ulf Jasper  <ulf@web.de>
 
 	* net/newst-plainview.el (newsticker-faces, newsticker-feed-face)
--- a/lisp/wdired.el	Sun Jun 15 08:04:13 2008 +0000
+++ b/lisp/wdired.el	Sun Jun 15 09:43:38 2008 +0000
@@ -503,12 +503,11 @@
         (setq curr-filename (wdired-get-filename nil t))
         (if (equal curr-filename filename-ori)
             (progn
-              (setq exit-while t)
+              (setq done t)
               (let ((inhibit-read-only t))
                 (dired-move-to-filename)
                 (search-forward (wdired-get-filename t) nil t)
                 (replace-match (file-name-nondirectory filename-ori) t t))
-              (setq done)
               (dired-do-create-files-regexp
                (function dired-rename-file)
                "Move" 1 ".*" filename-new nil t))