From: Eli Zaretskii Date: Fri, 26 May 2023 09:23:19 +0000 (+0300) Subject: Fix cancellation of Wdired X-Git-Tag: emacs-29.0.92~91 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b6b384023a97185486ed4d69fb18bcd2d3cf8049;p=emacs.git Fix cancellation of Wdired * lisp/wdired.el (wdired-abort-changes): Call 'dired-revert'. Patch by Stephen Berman . (Bug#63676) --- diff --git a/lisp/wdired.el b/lisp/wdired.el index 5572dcb32f3..9952da71078 100644 --- a/lisp/wdired.el +++ b/lisp/wdired.el @@ -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"))