From a55ca8073b07760b4784667cfda4e00a4eec2420 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Tue, 5 Sep 2023 17:50:27 +0200 Subject: [PATCH] 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) --- lisp/dired-x.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5