[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Globbing file name match function?
From: |
Andreas Schwab |
Subject: |
Re: Globbing file name match function? |
Date: |
Sun, 05 Jun 2022 13:39:17 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
On Jun 05 2022, Lars Ingebrigtsen wrote:
> I've been poking around for a couple of minutes to see whether we have a
> function to list files matching a regexp a la how a shell matches them.
> That is:
>
> $ ls ~/src/emacs/*/lisp/abbrev.el
> /home/larsi/src/emacs/27.1/lisp/abbrev.el
> /home/larsi/src/emacs/bisect/lisp/abbrev.el
> /home/larsi/src/emacs/emacs-28/lisp/abbrev.el
> /home/larsi/src/emacs/foo/lisp/abbrev.el
> ...
>
> This is with a glob, but ideally you'd be able to drop in a regexp
> anywhere in the file name. Do we have that anywhere in Emacs?
There is file-expand-wildcards.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
- Globbing file name match function?, Lars Ingebrigtsen, 2022/06/05
- Re: Globbing file name match function?, Eli Zaretskii, 2022/06/05
- Re: Globbing file name match function?, Lars Ingebrigtsen, 2022/06/05
- Re: Globbing file name match function?, Eli Zaretskii, 2022/06/05
- Re: Globbing file name match function?, Lars Ingebrigtsen, 2022/06/05
- Re: Globbing file name match function?, Stefan Monnier, 2022/06/05
- Re: Globbing file name match function?, Philip Kaludercic, 2022/06/05
- Re: Globbing file name match function?, Lars Ingebrigtsen, 2022/06/05
- Re: Globbing file name match function?, Andreas Schwab, 2022/06/06
Re: Globbing file name match function?,
Andreas Schwab <=