From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Useful completion package in GNU ELPA Date: Tue, 22 Jun 2021 11:28:42 +0200 Message-ID: <87sg1a44t1.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21384"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.13; emacs 28.0.50 Cc: help-gnu-emacs@gnu.org, Jean Louis To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 22 11:41:48 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1lvcui-0005LT-Bw for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 22 Jun 2021 11:41:48 +0200 Original-Received: from localhost ([::1]:38584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvcuh-0000qG-CO for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 22 Jun 2021 05:41:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvcrw-0005Is-0K for help-gnu-emacs@gnu.org; Tue, 22 Jun 2021 05:38:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53430) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvcrv-0005nm-FJ; Tue, 22 Jun 2021 05:38:55 -0400 Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:52439) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvcru-0000eT-5U; Tue, 22 Jun 2021 05:38:55 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailauth.nyi.internal (Postfix) with ESMTP id 7F2A027C005A; Tue, 22 Jun 2021 05:38:52 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 22 Jun 2021 05:38:52 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeguddgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufffjgfkgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepve evieekteekveeigfefffeivdetgeduvdffueeuudevgedttdehvdfhueevfffhnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnhdomh gvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeehvdel kedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 22 Jun 2021 05:38:51 -0400 (EDT) In-reply-to: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131184 Archived-At: Christopher Dimech writes: Hi Christopher, > The way you say it sounds very good. I wonder how it works with > orderless and other completion styles such as partial-completion and > initials. Or does aggressive-completion have such capability? It is agnostic of the used completion-styles but works best for those where minibuffer-complete (or rather aggressive-completion-auto-complete-fn) can complete the current candidate further. That's the case for styles whose candidates usually have a common prefix which can then be completed. With orderless, because of the orderlessiness, that's less common, e.g., with input fo most styles would have as candidates foo-bar, foo-quux, foo-baz and aggressive-completion could complete to foo-. With orderless, baz-foo would also be a canditate so there is no common prefix which could be completed. (Maybe it could complete at least "foo" and then it's the users choice if she wants to complete at the front or at the end by moving point...). Similar arguments hold for the flex completion style. So all in all, I'd say aggressive-completion works very good for the styles basic, partial-completion, and substring and less good for more "open and flexible" styles. Bye, Tassilo