From b6b384023a97185486ed4d69fb18bcd2d3cf8049 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 26 May 2023 12:23:19 +0300 Subject: [PATCH] Fix cancellation of Wdired * lisp/wdired.el (wdired-abort-changes): Call 'dired-revert'. Patch by Stephen Berman . (Bug#63676) --- lisp/wdired.el | 3 +++ 1 file changed, 3 insertions(+) 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")) -- 2.39.2