]> git.eshelyaron.com Git - emacs.git/commitdiff
A better fix for "Fix cancellation of Wdired"
authorMichael Heerdegen <michael_heerdegen@web.de>
Sat, 27 May 2023 00:26:09 +0000 (02:26 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 28 May 2023 06:37:51 +0000 (09:37 +0300)
* lisp/wdired.el (wdired-abort-changes): Call
`dired-build-subdir-alist' instead of `dired-revert'.
(Bug#63676)

lisp/wdired.el

index 9952da710783b03c3362fa5b7a68f87a4d5b0961..5c745cc9aab855358562a192288990823fbee634 100644 (file)
@@ -470,9 +470,8 @@ non-nil means return old filename."
     (insert wdired--old-content)
     (goto-char wdired--old-point))
   (wdired-change-to-dired-mode)
-  ;; Make sure the display is in synch, and all the variables are set
-  ;; correctly.
-  (dired-revert)
+  ;; Update markers in `dired-subdir-alist'
+  (dired-build-subdir-alist)
   (set-buffer-modified-p nil)
   (setq buffer-undo-list nil)
   (message "Changes aborted"))