Display directory when `dired-omit-mode` is first enabled
authorStefan Kangas <stefankangas@gmail.com>
Tue, 5 Sep 2023 15:50:27 +0000 (17:50 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Tue, 5 Sep 2023 15:51:27 +0000 (17:51 +0200)
* lisp/dired-x.el (dired-omit-expunge): Display the directory name
when 'dired-omit-mode' is first enabled.  (Bug#64705)

lisp/dired-x.el

index 398f55f2a24de8ef26ae6227a3290fd032ae61c4..b7824fa81bd67918d42f8e7610cd8b29438d0c57 100644 (file)
@@ -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