[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 b6b384023a9 3/3: Fix cancellation of Wdired
From: |
Eli Zaretskii |
Subject: |
emacs-29 b6b384023a9 3/3: Fix cancellation of Wdired |
Date: |
Fri, 26 May 2023 05:23:31 -0400 (EDT) |
branch: emacs-29
commit b6b384023a97185486ed4d69fb18bcd2d3cf8049
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Fix cancellation of Wdired
* lisp/wdired.el (wdired-abort-changes): Call 'dired-revert'.
Patch by Stephen Berman <stephen.berman@gmx.net>. (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"))