From: Eli Zaretskii Date: Fri, 10 Nov 2023 19:54:35 +0000 (+0200) Subject: Fix mode-line after switching from WDired back to Dired X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=400a71b8f2c5a49dce4f542adfd2fdb59eb34243;p=emacs.git Fix mode-line after switching from WDired back to Dired * 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) --- diff --git a/lisp/wdired.el b/lisp/wdired.el index 7b9c75d36b1..079d93d6011 100644 --- a/lisp/wdired.el +++ b/lisp/wdired.el @@ -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)