]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/dired-x.el (dired-omit-expunge): Escape '%' (bug#75877).
authorEli Zaretskii <eliz@gnu.org>
Wed, 5 Feb 2025 13:48:49 +0000 (15:48 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Feb 2025 08:41:21 +0000 (09:41 +0100)
(cherry picked from commit bfc8540da4521d460b72fdbc20edb3a0488c23c2)

lisp/dired-x.el

index 364e8af5299d86a87e76bd3e1b537dfa5d9a736c..1774049b0560da2607e6c7ffcf0246bc6aff1386 100644 (file)
@@ -498,8 +498,10 @@ status message."
                                nil
                                (if dired-omit-verbose
                                    (format "Omitted %%d line%%s in %s"
-                                           (abbreviate-file-name
-                                            dired-directory))
+                                           (replace-regexp-in-string
+                                            "%" "%%"
+                                            (abbreviate-file-name
+                                             dired-directory)))
                                  "")
                                init-count)))
               (force-mode-line-update))))