A better fix for "Fix cancellation of Wdired"

* lisp/wdired.el (wdired-abort-changes): Call
`dired-build-subdir-alist' instead of `dired-revert'.
(Bug#63676)
This commit is contained in:
Michael Heerdegen 2023-05-27 02:26:09 +02:00 committed by Eli Zaretskii
parent 756244c696
commit 3be33aff96

View 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"))