]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix cancellation of Wdired
authorEli Zaretskii <eliz@gnu.org>
Fri, 26 May 2023 09:23:19 +0000 (12:23 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 26 May 2023 09:23:19 +0000 (12:23 +0300)
* lisp/wdired.el (wdired-abort-changes): Call 'dired-revert'.
Patch by Stephen Berman <stephen.berman@gmx.net>.  (Bug#63676)

lisp/wdired.el

index 5572dcb32f3adcc0e7a2702ddb11e5dab7e0e567..9952da710783b03c3362fa5b7a68f87a4d5b0961 100644 (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"))