From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#48134: When sitting on top of a M-x item in the manual Date: Sun, 02 May 2021 18:09:32 +0200 Message-ID: <875z01jewz.fsf@gmail.com> References: <87fsz73t9z.8.fsf@jidanni.org> <87sg36rfrw.fsf@gmail.com> <87pmyaodji.5.fsf@jidanni.org> <87czu9li9o.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12174"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson , 48134@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 02 18:12:50 2021 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 1ldEiA-00035I-Ik for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 May 2021 18:12:50 +0200 Original-Received: from localhost ([::1]:36606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldEi9-0000zR-M4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 May 2021 12:12:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldEfT-0006f1-JO for bug-gnu-emacs@gnu.org; Sun, 02 May 2021 12:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60188) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldEfT-0004Wq-9z for bug-gnu-emacs@gnu.org; Sun, 02 May 2021 12:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldEfT-0004TJ-4N for bug-gnu-emacs@gnu.org; Sun, 02 May 2021 12:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 May 2021 16:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48134 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 48134-submit@debbugs.gnu.org id=B48134.161997178217165 (code B ref 48134); Sun, 02 May 2021 16:10:03 +0000 Original-Received: (at 48134) by debbugs.gnu.org; 2 May 2021 16:09:42 +0000 Original-Received: from localhost ([127.0.0.1]:43499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldEf7-0004Sn-MO for submit@debbugs.gnu.org; Sun, 02 May 2021 12:09:41 -0400 Original-Received: from mail-wm1-f49.google.com ([209.85.128.49]:36602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldEf6-0004Sh-E9 for 48134@debbugs.gnu.org; Sun, 02 May 2021 12:09:40 -0400 Original-Received: by mail-wm1-f49.google.com with SMTP id l24-20020a7bc4580000b029014ac3b80020so317397wmi.1 for <48134@debbugs.gnu.org>; Sun, 02 May 2021 09:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=uiHOZHefzVlJotwJ21XZ+AU/F/EkiGtCibppnIvkyfU=; b=mA2S61ID1LOEHI3MERArVdxkJy6NK/bbNNsxn+eS+qx013KTZ2Ow0O8G4ogTeKitxZ L7lBpCD2upy9vFMuWX3Hgp7A4SRF1XlbausvD4g9aN6r68231b6/5ixI6LJcSaKKdnY1 I6dX1zMEXwOZ9ytwo8PklSm2KhENFGHcEujfDPSXNhATQQgfApMGtkZa4zq16brT2iyM UnijKbPD/EZo4GbFgTy8A2368Q5VGOZUjrSKrnZYABNcUAB3HjCMKV+mHK10q7WLrgyy jpaDakYce8Nn86RwgsgoqL5iKTZY2k1LwRKuJm8q84urlrgPguk81qVjDcyvAuhohB7M uEVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=uiHOZHefzVlJotwJ21XZ+AU/F/EkiGtCibppnIvkyfU=; b=LNZGa7ZDUDjJIabhxFLEUCXwwebzFlO61XBYHWMa65LETPdHk4kxJ6fsQmCDQL0jbF jJnQVDyk5zfHyqpGnXatIoHY+JNyQ3TZ/fcdh2uCQjh5Wvcyjg8BYAbuyur7WKyYwYbv xdue1DXM5pvH/0YrH8xCKx2bomvmpGufvIl/kxT9hbnUXhVble0n5hed0WCtE4K71YQK akdIv5gzFQEWKKTJpRPMkWF4XQpz9vVKtmXXvlo3l9FSvLrMQcXXTbNAZqECsAyKEGRm ohRFNi0oyzhIxKQYeg1F7NJhKLW7BWqgEtXaC/4gtGMu+GFMX3qTzf5vlGANvzuVsh1Q 130g== X-Gm-Message-State: AOAM530bx7P/xRf6y6j9+TAvD8RCV3d/1SBHbA6hgtQMzdNTnS4bCAQ8 jhzkF47kh2Cb3QkK7xJFVi8EXo1JKOg= X-Google-Smtp-Source: ABdhPJwfGbpgkkDEjAOCAzIsa+7AMVHs9N3p4ATxjrHFahtgpgbPAcmDLFzS6rQ1Fm3o4t/lkwvZZQ== X-Received: by 2002:a05:600c:4ec9:: with SMTP id g9mr27110410wmq.145.1619971774357; Sun, 02 May 2021 09:09:34 -0700 (PDT) Original-Received: from amdahl30 ([2a01:e0a:20e:d340:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id n22sm6333056wmo.12.2021.05.02.09.09.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 May 2021 09:09:33 -0700 (PDT) In-Reply-To: <87czu9li9o.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 02 May 2021 09:14:11 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:205434 Archived-At: Lars Ingebrigtsen writes: > This is how Emacs works all over the place -- `M-n' should get you the > suggestion. Making all prompts tell you about this standard feature > would be less than optimal, so I don't think there's anything to fix > here, and I'm closing this bug report. FWIW, I think I only ever found out about M-n because someone sang its praise somewhere on the Net. I see that (info "(emacs) Minibuffer History") mentions its DWIM behaviour and gives examples for filename prompts, but given how ubiquitous and useful M-n is, I wonder if we couldn't do more to advertise it. Emacs does tell users about (some) standard features, e.g. after C-h f, we get a message advertising "q" and "C-M-v". I get that longtime users mostly see that as noise, but I think messaging a concise hint along the lines of "N suggestions; select them with M-n" would make this "future history" easier to discover. I realize that this would probably not be trivial to implement though. Looking up "future history in minibuffer input" in the Elisp manual brought me to (info "(elisp) Text from Minibuffer"), which lured me into thinking that this hypothetical hint could simply be added in read-from-minibuffer, by looking at the DEFAULT argument; a stroll through read-extended-command taught me that some functions compute their "future history" dynamically with minibuffer-default-add-function, which I guess complicates things a bit? (=E2=80=A6 Alternatively, read-extended-command could just default to the command at point, like describe-{function,variable,symbol} do)