]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix mode-line after switching from WDired back to Dired
authorEli Zaretskii <eliz@gnu.org>
Fri, 10 Nov 2023 19:54:35 +0000 (21:54 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 10 Nov 2023 19:54:35 +0000 (21:54 +0200)
* lisp/wdired.el (wdired-change-to-dired-mode): Call
'dired-sort-set-mode-line' to set the mode name in the mode line,
so as to restore the display before switching to WDired.
(Bug#67028)

lisp/wdired.el

index 7b9c75d36b15f409f6db9451464fee6e73c28e20..079d93d601124956814a16e7d18ff136e7b269b5 100644 (file)
@@ -453,7 +453,7 @@ non-nil means return old filename."
   (force-mode-line-update)
   (setq buffer-read-only t)
   (setq major-mode 'dired-mode)
-  (setq mode-name "Dired")
+  (dired-sort-set-mode-line)
   (dired-advertise)
   (dired-hide-details-update-invisibility-spec)
   (remove-hook 'kill-buffer-hook #'wdired-check-kill-buffer t)