From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Turner via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#66224: [PATCH] Add optional PREDICATE argument to read-directory-name Date: Wed, 04 Oct 2023 18:34:30 -0700 Message-ID: <87v8blzw89.fsf@breatheoutbreathe.in> References: <877coch0q7.fsf@breatheoutbreathe.in> <874jje1xds.fsf@posteo.net> <87bkdly7t4.fsf@breatheoutbreathe.in> <871qehr5vs.fsf@web.de> <877co9y5jt.fsf@breatheoutbreathe.in> <877co4tmav.fsf@web.de> <87bkdf47g5.fsf@breatheoutbreathe.in> <87pm1t3lqx.fsf@web.de> Reply-To: Joseph Turner Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35065"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66224@debbugs.gnu.org, philipk@posteo.net To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 05 03:36:58 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qoDIQ-0008ql-IO for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Oct 2023 03:36:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoDIE-0003Xt-Sn; Wed, 04 Oct 2023 21:36:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qoDID-0003XH-B4 for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2023 21:36:45 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qoDID-0002JJ-0M for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2023 21:36:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qoDIU-0003fs-SW for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2023 21:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Joseph Turner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Oct 2023 01:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-Cc: "Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors" , 66224@debbugs.gnu.org, philipk@posteo.net Original-Received: via spool by 66224-submit@debbugs.gnu.org id=B66224.169646980914078 (code B ref 66224); Thu, 05 Oct 2023 01:37:02 +0000 Original-Received: (at 66224) by debbugs.gnu.org; 5 Oct 2023 01:36:49 +0000 Original-Received: from localhost ([127.0.0.1]:45630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoDIH-0003ez-JI for submit@debbugs.gnu.org; Wed, 04 Oct 2023 21:36:49 -0400 Original-Received: from out-202.mta1.migadu.com ([2001:41d0:203:375::ca]:23931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoDIE-0003eh-If for 66224@debbugs.gnu.org; Wed, 04 Oct 2023 21:36:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1696469785; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=AhYnCnwsuqmWI79hfkbQt4rAmT9+7Zzy5XrlLr+cpiM=; b=C1yOTi20rFisnuUMbclTtFcvLr7YoaFXSxZe7mWf6+Kro2IfAAHzllr6L3ZU9R6ZMjHyYj F9vXct4mhFf5BnDF0dPOL9xEakNnDO/bipKIbOTKlzpV1c+lMYyrUHbFH6Dj8w/VIOhA9Z lriIGzWaBeCvHoCEUFWtt2K+HRLhfRs= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-reply-to: <87pm1t3lqx.fsf@web.de> X-Migadu-Flow: FLOW_OUT X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271834 Archived-At: Michael Heerdegen writes: > Joseph Turner via "Bug reports for GNU Emacs, the Swiss army knife of > text editors" 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. Yes, PREDICATE narrows the completion candidates but doesn't determine a valid return value.