[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#66224: [PATCH] Add optional PREDICATE argument to read-directory-nam
From: |
Michael Heerdegen |
Subject: |
bug#66224: [PATCH] Add optional PREDICATE argument to read-directory-name |
Date: |
Thu, 05 Oct 2023 03:23:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Joseph Turner via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:
> I'm not sure what you mean. In both of the following examples, PREDICATE
> is used to narrow the completion candidates to only empty directories:
>
> (read-directory-name "Prompt: " "~/" nil t nil #'directory-empty-p)
> (read-directory-name "Prompt: " "~/" nil nil nil #'directory-empty-p)
In the second version also non-empty directories will be accepted.
Michael.