From: "T.V Raman" <raman@google.com>
To: monnier@iro.umontreal.ca
Cc: raman@google.com, emacs-devel@gnu.org
Subject: Re: Q: read-file-name: Descend into subdirs while using a predicate?
Date: Mon, 26 Sep 2022 10:05:49 -0700 [thread overview]
Message-ID: <25393.56301.786194.532602@retriever.mtv.corp.google.com> (raw)
In-Reply-To: <jwvleq6xf8x.fsf-monnier+emacs@gnu.org>
Thanks Stefan for the clear answer, and happy to know I wasn't
overlooking something simple.
Also, on my laptop with an SSD, using
directory-files-recursively appears to be blazingly fast for
relatively large directories --- so that "heavy hammer" is a good
intermediate solution for my usecase which was to filter media files,
epub books and the like.
Stefan Monnier writes:
> T.V Raman [2022-09-26 07:45:08] wrote:
> > This feels like a puzzle that should have an easy answer, but I've not
> > found it:-)
>
> It's a long standing "todo" :-(
>
> Basically, we need to change the notion of "predicate" during completion
> so as to distinguish the "predicate to filter completions" from the
> "predicate to check if a value is fit to be returned from
> `completing-read`" (AKA the distinguish the predicate passed to
> `test-completion` from the predicate passed to `all/try/completions`).
>
> I've been toying with the idea of letting the predicate return a third
> option (beside nil and t) to say "it's acceptable for completions but
> not for `test-completion`".
>
>
> Stefan
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
prev parent reply other threads:[~2022-09-26 17:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-26 14:45 Q: read-file-name: Descend into subdirs while using a predicate? T.V Raman
2022-09-26 16:41 ` Stefan Monnier
2022-09-26 17:05 ` T.V Raman [this message]
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=25393.56301.786194.532602@retriever.mtv.corp.google.com \
--to=raman@google.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.