From: Stefan Kangas Date: Tue, 5 Sep 2023 15:50:27 +0000 (+0200) Subject: Display directory when `dired-omit-mode` is first enabled X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a55ca8073b07760b4784667cfda4e00a4eec2420;p=emacs.git Display directory when `dired-omit-mode` is first enabled * lisp/dired-x.el (dired-omit-expunge): Display the directory name when 'dired-omit-mode' is first enabled. (Bug#64705) --- diff --git a/lisp/dired-x.el b/lisp/dired-x.el index 398f55f2a24..b7824fa81bd 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el @@ -491,7 +491,11 @@ status message." (setq count (+ count (dired-do-kill-lines nil - (if dired-omit-verbose "Omitted %d line%s" "") + (if dired-omit-verbose + (format "Omitted %%d line%%s in %s" + (abbreviate-file-name + dired-directory)) + "") init-count))) (force-mode-line-update)))) ;; Try to preserve modified state, so `%*' doesn't appear in