From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#64656: 29.0.91; Doc of minibuffer histories and completing-read - automatic addition of completions to DEFAULT list Date: Mon, 30 Oct 2023 09:44:10 +0200 Organization: LINKOV.NET Message-ID: <861qdc1s3s.fsf@mail.linkov.net> References: <83y1jga0nr.fsf@gnu.org> <83o7kb9a40.fsf@gnu.org> <86bkg84de3.fsf@mail.linkov.net> <86jzrhlrub.fsf_-_@mail.linkov.net> <86h6m9v1sx.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10798"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , "64656@debbugs.gnu.org" <64656@debbugs.gnu.org> To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 30 09:10:48 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 1qxNMG-0002fm-8d for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Oct 2023 09:10:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxNLz-0007Au-Mu; Mon, 30 Oct 2023 04:10:32 -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 1qxNLx-00079g-Id for bug-gnu-emacs@gnu.org; Mon, 30 Oct 2023 04:10:29 -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 1qxNLx-0008Ry-AM for bug-gnu-emacs@gnu.org; Mon, 30 Oct 2023 04:10:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qxNMT-0004xj-UE for bug-gnu-emacs@gnu.org; Mon, 30 Oct 2023 04:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Oct 2023 08:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64656 X-GNU-PR-Package: emacs Original-Received: via spool by 64656-submit@debbugs.gnu.org id=B64656.169865342219006 (code B ref 64656); Mon, 30 Oct 2023 08:11:01 +0000 Original-Received: (at 64656) by debbugs.gnu.org; 30 Oct 2023 08:10:22 +0000 Original-Received: from localhost ([127.0.0.1]:44199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qxNLq-0004wU-8Q for submit@debbugs.gnu.org; Mon, 30 Oct 2023 04:10:22 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:40183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qxNLl-0004wD-TA for 64656@debbugs.gnu.org; Mon, 30 Oct 2023 04:10:20 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 31BCF240005; Mon, 30 Oct 2023 08:09:37 +0000 (UTC) In-Reply-To: (Drew Adams's message of "Sun, 29 Oct 2023 22:15:10 +0000") X-GND-Sasl: juri@linkov.net 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:273541 Archived-At: > But it's easy to restore it with a simple patch that prepends the > current default value (a command at point) to the sorted list of > all available command names: > > And even that doesn't seem to have much, if > anything, to do with adding all of the initial > completions to the `M-n' queue. > So I really don't follow you, here. All available command names mentioned above are extracted from initial completions. > To be very clear, I'm opposed to the misfeature > of automatically jamming the initial completions > onto the `M-n' queue. We have arg DEFAULTS for > that. Callers of `completing-read' etc. can > provide exactly the list of DEFAULTS they want > to prepend to the `M-n' queue. Indeed, ideally callers of `completing-read' should provide the exact list of defaults. The problem is that it's too late to identify the existing callers and to add an explicit list of defaults to them. > Don't remove programmer (and user) control by > smothering `M-n' with the completion candidates. This doesn't remove programmer (and user) control because it's still easy to add own default values to `M-n' and to remove initial completions from `M-n'.