Fix cancellation of Wdired

* lisp/wdired.el (wdired-abort-changes): Call 'dired-revert'.
Patch by Stephen Berman <stephen.berman@gmx.net>.  (Bug#63676)
This commit is contained in:
Eli Zaretskii 2023-05-26 12:23:19 +03:00
parent 916c2a19bd
commit b6b384023a

View file

@ -470,6 +470,9 @@ 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)
(set-buffer-modified-p nil)
(setq buffer-undo-list nil)
(message "Changes aborted"))