From: Philip Kaludercic <philipk@posteo.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Globbing file name match function?
Date: Sun, 05 Jun 2022 20:34:00 +0000 [thread overview]
Message-ID: <878rqavohz.fsf@posteo.net> (raw)
In-Reply-To: <87v8tf48z8.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 05 Jun 2022 13:59:07 +0200")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Eli Zaretskii <eliz@gnu.org> writes:
>
>> But what glob does is recursively find each wildcard, expand it, then
>> go deeper and repeat. So it should be possible to do the same based
>> on directory-files, I think?
>
> Yes, and I wondered if we had that already.
>
> Andreas Schwab <schwab@linux-m68k.org> writes:
>
>> There is file-expand-wildcards.
>
> Ah, thanks, just what I was looking for. (Not under the name I was
> looking for, though.) Hm... it takes globs, but it looks trivial to
> expand to regexps.
Should an alias be added with "glob" in the name, something like
"glob-expand" or just "glob", like the libc function?
next prev parent reply other threads:[~2022-06-05 20:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-05 11:11 Globbing file name match function? Lars Ingebrigtsen
2022-06-05 11:23 ` Eli Zaretskii
2022-06-05 11:25 ` Lars Ingebrigtsen
2022-06-05 11:29 ` Eli Zaretskii
2022-06-05 11:59 ` Lars Ingebrigtsen
2022-06-05 13:29 ` Stefan Monnier
2022-06-05 20:34 ` Philip Kaludercic [this message]
2022-06-05 20:42 ` Lars Ingebrigtsen
2022-06-06 8:02 ` Andreas Schwab
2022-06-05 11:39 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878rqavohz.fsf@posteo.net \
--to=philipk@posteo.net \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.