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: Mon, 02 Dec 2019 00:38:22 +0200 Organization: LINKOV.NET Message-ID: <87o8wrisdd.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="259837"; 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 Sun Dec 01 23:49:52 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 1ibY2J-0015Sj-J3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Dec 2019 23:49:52 +0100 Original-Received: from localhost ([::1]:56410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibY2I-0002mz-Dx for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Dec 2019 17:49:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33785) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibXze-0000wo-B2 for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 17:47:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibXzc-0005EE-WD for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 17:47:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59109) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ibXzZ-0005CO-Qc for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 17:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ibXzZ-00021Y-MQ for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 17:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Dec 2019 22:47:01 +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.15752403997749 (code B ref 12490); Sun, 01 Dec 2019 22:47:01 +0000 Original-Received: (at 12490) by debbugs.gnu.org; 1 Dec 2019 22:46:39 +0000 Original-Received: from localhost ([127.0.0.1]:36849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibXzD-00020u-He for submit@debbugs.gnu.org; Sun, 01 Dec 2019 17:46:39 -0500 Original-Received: from bonobo.birch.relay.mailchannels.net ([23.83.209.22]:25484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibXyt-00020S-VY for 12490@debbugs.gnu.org; Sun, 01 Dec 2019 17: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 BA66E600DDD; Sun, 1 Dec 2019 22:46:18 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a71.g.dreamhost.com (100-96-4-107.trex.outbound.svc.cluster.local [100.96.4.107]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 378A7600FF1; Sun, 1 Dec 2019 22:46:18 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a71.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); Sun, 01 Dec 2019 22:46:18 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Tank-Descriptive: 58ebf0c61f9b39f6_1575240378531_1882265293 X-MC-Loop-Signature: 1575240378531:3487267148 X-MC-Ingress-Time: 1575240378531 Original-Received: from pdx1-sub0-mail-a71.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a71.g.dreamhost.com (Postfix) with ESMTP id D4EFB96832; Sun, 1 Dec 2019 14:46:12 -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=aNN9B8/TrAndg20qFq4y5N2jB+A=; b=L FdYSL6N4qdxP4PhLk2cztajEeWsNn29Lr52fw0Ig/kOrxmb7AYppaCUgDs9xKqqt XW8X3nhcgfC+EROs5MUpHOCZmrw+xSit7z62RtxVqabg3a+UzpCBxRwgGNYVzl0B sUgcMUf/ku30WBhAImmDOewDVrquG2BaRTIgbjd6xY= 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-a71.g.dreamhost.com (Postfix) with ESMTPSA id BB533968B7; Sun, 1 Dec 2019 14:46:08 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a71 In-Reply-To: (Stefan Kangas's message of "Sun, 1 Dec 2019 08:36:59 +0100") 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:172738 Archived-At: >> The problem why this patch is not installed is the need to decide >> in what order to sort these commands. The patch sorts alphabetically, >> but maybe better to sort by command usage frequency, or somesuch. > > One possibility would be to install it and improve the ordering later. I agree. > 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?