From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#19013: 25.0.50; Suggestions for M-x commands Date: Wed, 19 Nov 2014 07:14:52 +0000 Message-ID: <87y4r77jbn.fsf@violet.siamics.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1416381384 810 80.91.229.3 (19 Nov 2014 07:16:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2014 07:16:24 +0000 (UTC) To: 19013@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 19 08:16:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XqzUv-0006PM-QG for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Nov 2014 08:16:17 +0100 Original-Received: from localhost ([::1]:56774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqzUv-0003MR-8l for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Nov 2014 02:16:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqzUm-0003MF-Qo for bug-gnu-emacs@gnu.org; Wed, 19 Nov 2014 02:16:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqzUh-0003ps-GY for bug-gnu-emacs@gnu.org; Wed, 19 Nov 2014 02:16:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqzUg-0003oC-QQ for bug-gnu-emacs@gnu.org; Wed, 19 Nov 2014 02:16:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XqzUg-0008QO-DT for bug-gnu-emacs@gnu.org; Wed, 19 Nov 2014 02:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Nov 2014 07:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 19013-submit@debbugs.gnu.org id=B19013.141638131132318 (code B ref 19013); Wed, 19 Nov 2014 07:16:02 +0000 Original-Received: (at 19013) by debbugs.gnu.org; 19 Nov 2014 07:15:11 +0000 Original-Received: from localhost ([127.0.0.1]:37756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XqzTm-0008P6-U6 for submit@debbugs.gnu.org; Wed, 19 Nov 2014 02:15:10 -0500 Original-Received: from fely.am-1.org ([78.47.74.50]:41343) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XqzTg-0008OL-Mx for 19013@debbugs.gnu.org; Wed, 19 Nov 2014 02:15:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=XfgRAC21AX7t15O0CzTkxY7YkzBawX68Wm8f+t4DjIM=; b=pjy2MN5crDqhx3idFtRuA8IxgS1lX0MmpQ/ZwLE/ZUTZc1qvAyc47wydroGoVx7wSdjwq3IvQHv77/rKiNNpuPSCjc8G0SpqnpTFuhGWuTXL/Z9FcDWxG90JwLOTsxSRis2rw1+VmoorDUu47N56ZIVHXWHooBCpzD5VmliiwjY=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XqzTg-0001YH-0S for 19013@debbugs.gnu.org; Wed, 19 Nov 2014 07:15:00 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XqzTY-0005A8-I0 for 19013@debbugs.gnu.org; Wed, 19 Nov 2014 14:14:52 +0700 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 10 Nov 2014 22:51:03 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96219 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >>>>> Lars Magne Ingebrigtsen writes: > I just typed `M-x eww RET foo RET', and after displaying the search > results, Emacs helpfully said > You can run the command `eww' with M-x ew RET > I don't think that's particularly helpful, actually. Just > distracting. And even more so, =E2=80=93 M-x beginning-of-visual-line RET; then, after some time, =E2=80=93 M-x RET =E2=80=93 the same message gets sh= own, even though M-x is for sure shorter than M-x b-v. I believe there should be a variable to customize this behavior (say, suggest-shorter-command-limit; defaulting to 5, but with nil as an option to disable such suggestions altogether.) As a workaround, I=E2=80=99ve simply disabled it entirely (see the patch MIMEd.) --=20 FSF associate member #7257 np. Epilogue (Relief) =E2=80=94 Apocalyptica = =E2=80=A6 230E 334A --=-=-= Content-Type: text/diff Content-Disposition: inline --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1680,7 +1680,7 @@ defun execute-extended-command (prefixarg &optional command-name typed) ((numberp suggest-key-bindings) suggest-key-bindings) (t 2))))) (when (and waited (not (consp unread-command-events))) - (unless (or binding executing-kbd-macro (not (symbolp function)) + (unless (or t binding executing-kbd-macro (not (symbolp function)) (<= (length (symbol-name function)) 2)) ;; There's no binding for CMD. Let's try and find the shortest ;; string to use in M-x. --=-=-=--