From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65459: completing-read INITIAL-VALUE unaware of COLLECTION and REQUIRE-MATCH Date: Wed, 23 Aug 2023 22:30:36 -0400 Message-ID: References: <83jztmro8z.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10349"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65459@debbugs.gnu.org, Eli Zaretskii , Heime To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 24 04:31:21 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 1qZ080-0002SK-0y for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Aug 2023 04:31:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZ07g-0000CO-BN; Wed, 23 Aug 2023 22:31:00 -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 1qZ07e-0000Bp-Ah for bug-gnu-emacs@gnu.org; Wed, 23 Aug 2023 22:30:58 -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 1qZ07e-0008To-2R for bug-gnu-emacs@gnu.org; Wed, 23 Aug 2023 22:30:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZ07h-0001g3-Om for bug-gnu-emacs@gnu.org; Wed, 23 Aug 2023 22:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Aug 2023 02:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65459 X-GNU-PR-Package: emacs Original-Received: via spool by 65459-submit@debbugs.gnu.org id=B65459.16928442556431 (code B ref 65459); Thu, 24 Aug 2023 02:31:01 +0000 Original-Received: (at 65459) by debbugs.gnu.org; 24 Aug 2023 02:30:55 +0000 Original-Received: from localhost ([127.0.0.1]:35720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZ07b-0001fe-30 for submit@debbugs.gnu.org; Wed, 23 Aug 2023 22:30:55 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:7296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZ07Y-0001fN-LD for 65459@debbugs.gnu.org; Wed, 23 Aug 2023 22:30:53 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 1EE474454AC; Wed, 23 Aug 2023 22:30:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1692844237; bh=WlvILCPPQ7zMjTulUL/3Lcl2UDbN0qk8ud0EeZoGbEM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=RKwd2ifjv6oevx+dnvwSSTQ2RCK/CBSaVdqxZi/0KCHxUzzX9hgED9fQdXIWYc5J+ /Twp8u2gFcr+G8+RhnrOeGBYImK2+tCXO59GAeEOYI8ntN3To3I5mDcksYRXAXCp8J SGfiCr687sRlXmdr6GgfzgV9nFtyzlXAQYf+7Pvn0bQ9PryG8u+EcRomoCSEuZx0G4 JwCsz2yuoxFjIbE9vuAHLIkwIVsY9xa1CUKNLGjifcrs59PoOlYWBMcZDQK0rOo0oN iKFsrg2r4pEp0Su2//AgTjBVEHfcHM/XCyivjDgENi7Ae/p3tNFDv6d2ZNfUEyiNwc F9L8PN+VlDGhg== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 65323442446; Wed, 23 Aug 2023 22:30:37 -0400 (EDT) Original-Received: from pastel (unknown [104.247.227.249]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3448E120208; Wed, 23 Aug 2023 22:30:37 -0400 (EDT) In-Reply-To: (Gregory Heytings's message of "Wed, 23 Aug 2023 23:06:24 +0000") 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:268293 Archived-At: > (defun my-completing-read (prompt collection start) > (minibuffer-with-setup-hook > (:append > (lambda () > (setq-local actual-minibuffer-default-add-function > minibuffer-default-add-function) > (setq-local minibuffer-default-add-function > '(lambda () (setq minibuffer-default-add-done nil) > (funcall actual-minibuffer-default-add-function))) Why use ' on `lambda`? BTW, rather than the above two `setq-local`s, I think you can write: (add-function :before (local 'minibuffer-default-add-function) (lambda () (setq minibuffer-default-add-done nil))) -- Stefan