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:59:58 +0200 Message-ID: <20220412165958.2jzxtqxvx7jxmndy@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="21629"; 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 19:12:40 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 1neK4E-0005SF-Fz for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Apr 2022 19:12:38 +0200 Original-Received: from localhost ([::1]:55628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neK4D-0005Qa-77 for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Apr 2022 13:12:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neJsH-0001Kp-7O for emacs-devel@gnu.org; Tue, 12 Apr 2022 13:00:24 -0400 Original-Received: from sonic315-13.consmr.mail.bf2.yahoo.com ([74.6.134.123]:45375) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1neJsC-0003OI-6p for emacs-devel@gnu.org; Tue, 12 Apr 2022 13:00:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1649782810; bh=b9y9MeOSyM4QXSbm2LgO0zQ+rk5PEM6YLLpb9Di3mpI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=mQfzxglMz6gZqgjeoNYC6VeipRTCAJdUQocTxjGL+8ewSgzvOIjyoKKjFaUMI0bSz5EFH79VBhCgp/3TzXZ/gcMuQTGXaLLc+GEEN4BROyjRlT39omwTr4Sdwyp6wCnbWi2Cv6tSf2/P29K77+/t3MevDyJfVcyrmOypff0wLl3VohgemtUf7gETrqEKOlERnFbldPmkx1qiGyzl0zF4swkaShd2iFBOlho5YcVRFV1jjxlsQOGc1e0KJYxaZnFy8fRPz6at60rOqAZ3rkE4KLbq3Q+rNJOLd/tMZDclBevc444T8NsT/zuVKe2kY51Ac7JSsy/KRQGDIOx3ukEKKw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649782810; bh=uxdklD6AyhaB+iM4rE9KJjvVRNx1IBcgIhuT+MyXbBc=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=Jd1/kxndnJW95FTbR/RRoWmVnIK/cUslrOjHsQ4FDy2IOYAZHPCtOXAVDon/mWqrvzaFjrQImWJN7DE3HBWaVMLeN+UJkhUqhxVJij93j3SAMyjRUtIdBIMycwvfLX/dB8OvJeW55YiF4F1ICakYI/2Guvx9W8CD/6hvCEYuci6QYvPFvt4S4eEyAwa7FJUjOMxHIIvzaB60AtTWmXbSKarlw9IPPh/L1rdxqKt9zcSiQUIF7BN4n0/azFmqy+HbaFsqmwJhEdMZOENLtY/yziOPLynkK9Kli+Pk0QGBWOX/wXqGsF9A3M/iMIXBM2iaJlEUb32/LDVrLWDf0RTFsA== X-YMail-OSG: UOOY_d8VM1lZVsHyeCTt2lEHCX4mGzvTZyww3dT_uA34QQu6_ix0ykTFzkVzCUO FXar.m3RDaMpP3h8WcgtjDovIemTYhNvSKSbOhQ5vmTSvAF.Vh0X71twM.Ju14H_NOuNsqDOXxD1 3xeF6Tn9h2p93ci951sjuv169MuZ3.caHnh3QmJVrDhyzZ0yKzIy5KCwC0IekIyHg4ZL1GnMuxCm w.D3K5wOqqswwpn_iFI9SWbsShDy43BGPC3XPhkVN0zmRQ9bNSqKAshXbLaRRRv_zQgOlfwRBuFR n8eV4I1KiO_.JOFslPw_rfObprPXpVVoLzzfntG4oKZxMs7ZKH0GrrYbQeLeZjz9Fb6wMpXo8txJ YOfNBkAs0Y_1pVen79gmbJWhT2JMoZOaCjfvL11y9Cwg9T0jRWQwHS3wpyg0TUJILRhW7VeBPf5g yAAkOq1ccvvG0sD4AGIhl2BRTqW11ha5ruQ9x7SO9d20waTuOt9Z6GpdIbrqPy.Xq28GXo40Ilc9 3sZC8W9_LTfI_qTvRu90W18QGX9m_HEZyjGo5D9XOuzfPNSYiSz.9kONDkG1YqmXjoyar4goPXB0 8xeIpCzOJLEW356iiRXb887POyjRP729je1a6kXUhg.TH1gPw0OUXIC.iq0ppwjRoP428noK3EnP u4RSCYjVHYE4Fs7GPCxpjtSKiIfHW3lJ0.5FdrXtvCdRuPJg2AxYGSZAiDqmAqbVhgtGbZ95xX5v Ap6abQBBdRiWVYcmKvTBMfJEvjw_uLEaUlOhc4F5Jljxmcm4piDuhNCfcs0KNFlRp7rLPD5z9iNw 0vYw9cbnehvI8NQRbrUT5aI5bXMcX63hRb4S2gtgBz X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Tue, 12 Apr 2022 17:00:10 +0000 Original-Received: by kubenode512.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID f7470c9fe395a6f4375dde4527343485; Tue, 12 Apr 2022 17:00:03 +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.134.123; envelope-from=spacibba@aol.com; helo=sonic315-13.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:288317 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'. > A comment about this... completion-at-point-functions accept a list with a format (START END COLLECTION . PROPS) The PROPS can be any :completion-extra-properties plus predicate and exclusive.. maybe the way to do this is to add a property :sort or similar... Then on the other side we use that property to select the sorting method... Does it makes sense? >Another question: should duplicate history items be retained >in the Completions window when history-delete-duplicates is nil? >