From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Completions and history Date: Tue, 12 Apr 2022 18:53:44 +0200 Message-ID: <20220412165344.he5bxd5poymex2yt@Ergus> References: <20220411112901.kv3lsyvx6yxwjbph.ref@Ergus> <20220411112901.kv3lsyvx6yxwjbph@Ergus> <86sfqjzhgl.fsf@mail.linkov.net> <20220411174031.2yuh2je5fl3lej7i@Ergus> <86v8vetgst.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11577"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 12 18:54:47 2022 Return-path: Envelope-to: ged-emacs-devel@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 1neJmx-0002ta-Gk for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Apr 2022 18:54:47 +0200 Original-Received: from localhost ([::1]:60386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neJmw-0005dp-6E for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Apr 2022 12:54:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neJm9-0004xQ-Cg for emacs-devel@gnu.org; Tue, 12 Apr 2022 12:53:57 -0400 Original-Received: from sonic309-14.consmr.mail.bf2.yahoo.com ([74.6.129.124]:40961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1neJm6-000235-HY for emacs-devel@gnu.org; Tue, 12 Apr 2022 12:53:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1649782432; bh=OTy/n6x4ZdRcDfJ2OXzcknPOxDwERs1hya7nOkNlxP8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=X2jjsl852rS29QChRbFMi7ZSlLzeVO1QxiE9rlnJa3BCPdJ7jgS9UGraRitq9EZ3Uhl/a9WjXH8JDK2HzFQCwQp2wNl9OHnsRBAhPuzOBWanSg8/Y+a67w1v3P1zlJPXXTD5FJLc6MYm/B4OK2E1hH2hirtQ5K/b7S0nLtfDciD5d9XroSc7KzD/pYUYifCj/oiakavSLz/7JTFH4BkLwSDm39s5FDA0+09joeB2wBjvXIjFua3UFCIzUSKYhzEISGJdyjRMHwSNV9AiASzYnngXxxvLsVP1VyVdCSdswMdROqOef66rYb93ZOTdKaZLcLrg7cavZD15piU8O9f4/w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649782432; bh=2kDn/2A3APEmjKwc7roZ4RoHSXOk9+6ko/6Nh7qZnxI=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=Lo5J7xRehbRUzaATYX3VNgYrB6tIIr5kUWNhs5QunUwA+xNBwiLikDPXjcjZi1XXSsVMWQE1Eu4qrnCxq2ZFV1u3oVrOr7FG5LqKPvUeMg+7l7xT+CzSN0TFIJx/ZX/Cqq1jXNz8OoduiYNelocYcPMVLDqSHRZ5RccImmbrGqhdOkX0R+oYQ1jf2NxWMI0iHr00kWPNdxik9vAoE8F25HUoew/rxTaOF+cvxsOqk2jKn1XlEchatmcSF4WN7h1Mho0w+zXngEDcijBQBwKb0qc+yttQr79EzM7ML1W0GDIo0bZ8sgzRBuYVKsHMnqrXA5XBJVgstc3BUz26UJ9IMg== X-YMail-OSG: NDLPrWAVM1nGARfMrQ7ZlO3QlBmFlN26M.Q30ir80DxFDfhm6wiqSsfszw5kbYk rLHMydRdgrFX7mqXce7jIyPiGOpocbYwv1x.goboMrx3845fK32avl_KDYNVyE9U2a2VEjsr6x7c rbQyMxephu8mnyQJD5_k5aA_rtve1xaqge5uyqZvR1.st9_bZ.I4Gaekhckpi81HA1TAUQwxOOqP ILyAvqd285zxEjDq3crjBn2ksApjUNaVoNkFMl_GnjDX1Qen7SlBfnXrOSEk4ScBhjhF.w5SU16L 6adSaR1t5F0MrfRi_7DLgZmRt_oRyQQ2mD3MbogJQ_bqVry7T7sqeQWPkpZ36hadUpFyMKiWN2w. w8XC0fUmRN1ox5DQKopVTOfSXpi1lgNVwAA0HUIlFdbFHLmKBign_8kjMsoLZc97CcR7i1c3xCO_ qiOhjFn3sD22pElGgdvfmyHlgXHFYutK83_O5WlBiNFNwkiiJXSCVb4wzIp2Gy6Ay0PkoBykJFyz YfR17UFWVQ6AkW2CU2E2v0P1115dkvEzXbjw9cuwVsC5l3YJF8inwvbU5551XFbnsi0vwks4.DJM qtl1cEcNcVswei5Gni6IFGLDWYnBrcEuezjH5k1ePSuCXJL.WltqoLsTjMsDgoMer82nNYbpLiY4 vi7rV9l9L7vWqELZqvRqjY0nl3J5KyZ8r9FjQXx53Q_ReP3rMBoyFOBAMVaiO9Cdpnd7QiIJTy7A bqB4pa9C92ekPT0qwhr8_82tfWm9v_Qdk7Th5YJ0PBjuZFNdHpZH0aMaBpBhm4KqVr4sLXRhxexT N3kn0cJ8uIvpBOXh3oMad774_eIpZnnkBlOdwqw6W6 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.bf2.yahoo.com with HTTP; Tue, 12 Apr 2022 16:53:52 +0000 Original-Received: by kubenode511.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 20796e80aa83143eadcb9e9005aa216e; Tue, 12 Apr 2022 16:53:49 +0000 (UTC) Content-Disposition: inline In-Reply-To: <86v8vetgst.fsf@mail.linkov.net> X-Mailer: WebService/1.1.20001 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.129.124; envelope-from=spacibba@aol.com; helo=sonic309-14.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288315 Archived-At: On Tue, Apr 12, 2022 at 07:20:02PM +0300, Juri Linkov wrote: >>>> I suppose that this has been discussed before... so is there a reason >>>> why this has not been implemented? Should I open a feature request or is >>>> someone already opened? >>> >>> Indeed, this has been discussed recently in >>> https://lists.gnu.org/archive/html/emacs-devel/2021-12/msg00802.html >>> but no feature request was opened, since C-TAB is already taken by >>> file-cache-minibuffer-complete. >> >> At least could we have documented how to enable this and then let the >> user set it? Ivy users will find it comfortable in C-r to substitute the >> Current isearch-backward, other may prefer something else. The default >> binding may be agreed latter. > >One problem is that completions are sorted alphabetically that >makes no sense for history items which are sorted chronologically. >So the first thing to do would be to add sorting keys in Completions >that will allow switching the order between alphabetical and unsorted >(history items are in chronological order, so unsorted should keep it) >that will change the value of 'completions-sort'. > I have no idea about that, but it makes sense as you explain it. >Another question: should duplicate history items be retained >in the Completions window when history-delete-duplicates is nil? In principle yes... unless you add another custom for that... But the first is the important part.. to have the history list in order...