From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#12490: 24.2; Search inside Minibuffer don't work with M-x (M-x C-s) Date: Tue, 03 Dec 2019 00:51:30 +0200 Organization: LINKOV.NET Message-ID: <87wobecr8x.fsf@mail.linkov.net> References: <20120922224229.7baf7964@jcubic> <87obkxod8c.fsf@mail.jurta.org> <87bltxx458.fsf@joffe.skangas.se> <87o8x2lkon.fsf@gnus.org> <87h82l82qx.fsf@mail.linkov.net> <87o8wrisdd.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="17419"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Jakub Jankiewicz , Lars Ingebrigtsen , 12490@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 03 00:47:29 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ibvPc-0004Nn-PN for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Dec 2019 00:47:29 +0100 Original-Received: from localhost ([::1]:45754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibvPa-0003Rr-Eb for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Dec 2019 18:47:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42898) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibvPI-0003RO-Oj for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2019 18:47:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibvPH-0004Fb-NS for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2019 18:47:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33150) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ibvPD-0004Cr-A6 for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2019 18:47:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ibvPC-0005AW-7U for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2019 18:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Dec 2019 23:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12490 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 12490-submit@debbugs.gnu.org id=B12490.157533040119810 (code B ref 12490); Mon, 02 Dec 2019 23:47:02 +0000 Original-Received: (at 12490) by debbugs.gnu.org; 2 Dec 2019 23:46:41 +0000 Original-Received: from localhost ([127.0.0.1]:39117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibvOr-00059S-21 for submit@debbugs.gnu.org; Mon, 02 Dec 2019 18:46:41 -0500 Original-Received: from eastern.birch.relay.mailchannels.net ([23.83.209.55]:25711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibvOn-00059D-Ol for 12490@debbugs.gnu.org; Mon, 02 Dec 2019 18:46:38 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7BDB95A0D33; Mon, 2 Dec 2019 23:46:36 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a98.g.dreamhost.com (100-96-6-199.trex.outbound.svc.cluster.local [100.96.6.199]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 726E55A0845; Mon, 2 Dec 2019 23:46:35 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a98.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Mon, 02 Dec 2019 23:46:36 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Blushing-Macabre: 32952ebe0799281d_1575330395899_2985121216 X-MC-Loop-Signature: 1575330395898:3263344608 X-MC-Ingress-Time: 1575330395898 Original-Received: from pdx1-sub0-mail-a98.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a98.g.dreamhost.com (Postfix) with ESMTP id 18B0580183; Mon, 2 Dec 2019 15:46:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jurta.org; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=jurta.org; bh=IjwT8t1Wc3KXnkT0vIoLaNl74kw=; b=E 55vEOwCerAqYfysypM4Fvlwkm5DW9+Z6w8exb8lFER9PBfHta9ClAxbWykkKZEcn ahFBjB146mNaFRdMcNcU0/JdDg6WToW9aIwT82THorn8hmGRX7846UNwm2CzPYmJ tjcpyiKR21tNgx0dqjuB1CgA7MdDvtDHS+FbvPpp7A= Original-Received: from mail.jurta.org (m91-129-96-42.cust.tele2.ee [91.129.96.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a98.g.dreamhost.com (Postfix) with ESMTPSA id C264580173; Mon, 2 Dec 2019 15:46:26 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a98 In-Reply-To: <87o8wrisdd.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 02 Dec 2019 00:38:22 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:172791 Archived-At: >> BTW, do we have a mechanism for sorting by command frequency? > > One possibility is to use the minibuffer history to sort by the number > of occurrences of each history element, but this method doesn't work > when history-delete-duplicates is customized to non-nil, so there are > no duplicates in the history. > > Although I noticed that icomplete.el often proposes the most > relevant elements first, but I never investigated how it does this, > maybe by frequency? Another place worth looking at https://github.com/nonsequitur/smex It seems using ido to sort commands by frequency?