Subject: Re: bug#75877: 30.0.91; dired-omit-expunge embeds unquoted filename in format string
From: Eli Zaretskii <[email-masked]>
To: Derek Upham <[email-masked]>
Cc: [email-masked]
Date: Wed, 05 Feb 2025 15:49:46 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Derek Upham <[email-masked]>
> Date: Tue, 04 Feb 2025 15:40:12 -0800
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Thanks.  Is the below the right fix?
> >
> > diff --git a/lisp/dired-x.el b/lisp/dired-x.el
> > index 4a05f60..89390a4 100644
> > --- a/lisp/dired-x.el
> > +++ b/lisp/dired-x.el
> > @@ -498,8 +498,10 @@ dired-omit-expunge
> >                                 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))))
> 
> Yeah, that patch will handle that use case.  Thanks.

Thanks, installed on the master branch, and closing the bug.