From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron Newsgroups: gmane.emacs.devel Subject: Re: emacs-30 8064b2a6798: Document undocumented completion commands Date: Thu, 09 Jan 2025 13:41:22 +0100 Message-ID: References: <173506838079.2264184.7348874799811402829@vcs3.savannah.gnu.org> <20241224192621.31046CA6ED0@vcs3.savannah.gnu.org> <86zfk58vv2.fsf@gnu.org> <86frlx8np8.fsf@gnu.org> <86a5c030yz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21326"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 09 13:42:25 2025 Return-path: Envelope-to: ged-emacs-devel@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 1tVrrk-0005Ox-E6 for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Jan 2025 13:42:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVrr4-0001E9-RZ; Thu, 09 Jan 2025 07:41:43 -0500 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 1tVrqr-0001D7-Va for emacs-devel@gnu.org; Thu, 09 Jan 2025 07:41:30 -0500 Original-Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tVrqq-0005g6-D3; Thu, 09 Jan 2025 07:41:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1736426485; bh=hfimeeW6+hZ7WJ8Tb7rhAcAG4/6SRK3/9UJMkxp/RgA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=fS6NIy4AXyuAdXBQYB4a9nEuraiQPuebpfWY7upkQz1tdL9kxpIezoLn/mt1C+hdS RU+EnZFW00UfzKfzq3VJ87DQ1DznHaStIYfhiQ2xyhi2az1ApQ33mjA2pusVBNx+tq KZGDwd+h6pOlnUxDyzMaBYnQspgtHCjz9PUnfA7o8qNIzlZLpJS+1BIvDruj9YlgGz XWHBFCZxxyDMDT0pBDRk2GbtM+dzBBrsAhGegO4Gdp91IjLfyv6mSSS2CUNXSTtORx AGwYtnOrPGBEAb64vDg/tPBKz8pm2qC/eBK55ABDSU22G+HDhsj1Itlhvmo+7jFRed wgDg6xp/nJFXA== In-Reply-To: <86a5c030yz.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Jan 2025 09:23:00 +0200") Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327817 Archived-At: Eli Zaretskii writes: >> From: Eshel Yaron >> Cc: emacs-devel@gnu.org >> Date: Mon, 06 Jan 2025 13:16:40 +0100 >> >> Eli Zaretskii writes: >> >> >> From: Eshel Yaron >> >> Cc: emacs-devel@gnu.org >> >> Date: Sun, 05 Jan 2025 12:36:27 +0100 >> >> >> >> Eli Zaretskii writes: >> >> >> >> >> From: Eshel Yaron >> >> >> Cc: Eli Zaretskii >> >> >> Date: Sun, 05 Jan 2025 09:06:04 +0100 >> >> >> >> >> >> > DEFUN ("read-from-minibuffer", Fread_from_minibuffer, >> >> >> > Sread_from_minibuffer, 1, 7, 0, >> >> >> > doc: /* Read a string from the minibuffer, prompting with string PROMPT. >> >> >> > +While in the minibuffer, you can use \\\\[minibuffer-complete] and \\[minibuffer-complete-word] to complete your input. >> >> >> >> >> >> This part isn't quite right: read-from-minibuffer does not provide >> >> >> completion with minibuffer-complete[-word] by default. >> >> >> >> >> >> How about just dropping these references? >> >> > >> >> > Sorry, I don't want to drop them, they are important. >> >> > >> >> > Why do you say these are not supported by default? I can use them in >> >> > "emacs -Q", so what did I miss? >> >> >> >> Hmm, C-h f read-from-minibuffer now says "While in the minibuffer, you can >> >> use TAB and SPC to complete your input." But read-from-minibuffer doesn't >> >> provide such completion, by default it uses minibuffer-local-map, in which >> >> both keys are self-inserting. Do you see something different? >> > >> > Please help me make this accurate without losing the important >> > information about these commands. Okay? >> >> AFAICT it would be more accurate (and relevant) to mention these >> commands in the docstring of completing-read, not read-from-minibuffer. >> But they are also pretty well documented in both the Emacs manual and >> the ELisp manual, so I'm not sure I see the importance of mentioning >> them there as well... > > Maybe you are right. But can you help me a bit more by telling which > functions that enter the minibuffer install the two keymaps I > mentioned in the doc string, minibuffer-local-map and > minibuffer-local-completion-map? Those are the functions in whose > minibuffer these commands can be used. Sure: essentially all functions that enter the minibuffer install minibuffer-local-map or a map that inherits from minibuffer-local-map. minibuffer-local-completion-map is specific to completing-read-default, the default completing-read-function which completing-read invokes. Eshel