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: [PATCH] Re: Other details about completion. Date: Thu, 7 Apr 2022 19:38:54 +0200 Message-ID: <20220407173854.svouydgsy6hwytep@Ergus> References: <20220405232013.5y5jnr4ykzqgxqla@Ergus> <86a6cyiqlt.fsf@mail.linkov.net> <20220406132108.evlofp5l3krsl5h7@Ergus> <86sfqqduon.fsf@mail.linkov.net> <20220406174532.chsgqkzd2gphyuh3@Ergus> <86h776cbxa.fsf@mail.linkov.net> <024631F1-7D64-4784-BEF4-9B34ABFFC234@aol.com> <86tub5pbcr.fsf@mail.linkov.net> <20220407091649.gg2kzu3bqk326zr7@Ergus> <86tub4al82.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="27527"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philip Kaludercic , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 07 19:42:54 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 1ncW9j-0006us-9G for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Apr 2022 19:42:51 +0200 Original-Received: from localhost ([::1]:34850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncW9f-0004Ix-VR for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Apr 2022 13:42:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncW69-0003PO-Qs for emacs-devel@gnu.org; Thu, 07 Apr 2022 13:39:10 -0400 Original-Received: from sonic310-14.consmr.mail.bf2.yahoo.com ([74.6.135.124]:43777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncW66-0000Zi-R8 for emacs-devel@gnu.org; Thu, 07 Apr 2022 13:39:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1649353144; bh=uGK8p/uaBjylwt+rSbE6N6YzfIzUN5WGtcNPgiffSa8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=tE00pI5DbJZCNtGMBtqMZpFaca+J4qbZ6gtY6OhJANnRmmlHq1GOkAW105Qo7BPi7x4Fx6xv4v2cFT20QjccjVEXSSKuam4QG0RVGULoO6hf/6tomUCe3fmogGM/IMVN/p5HF4fp0lk80jMD0EShTgoGlqnafNKHiUt3mrrE7g+W8vPqcmHQZANjZuxXoIk05Mcjk1AnJPe4N5lQZlCEBpsZ+Qh7jnqogsrI+/Qtd5A7uiaVSoWEQMffTjtEn6gnnsKBEq42+HoH7aRvwye2nTY9wP0hNvZREfmevhNQ7eCLO1Dbvy83lcj7UESl8iEDryn4H34XNQUX30/nDoYdJA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649353144; bh=DFwbzIiyUWSInhBC4BzClJYY2cHWLvP9aOJ7v15mnFI=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=sUZ17viHJFWT9FsqCtyMys4X5HdyTNkwPdSi7UZ9GkLPuOwbVFej4V+AnA+Wc2DpB3vmlVOv+DedwzeA0VvsWhXR93ijHPIWyXcHY8JZ2+fd42gYQCArCVCM6fQ8SNUB/LqSs40xaRsDczbWYh9dztqb0Fjh7lyegFUlVia91QMLKhY4eSQLtael7qKe6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ate.mail.ne1.yahoo.com by sonic310.consmr.mail.bf2.yahoo.com with HTTP; Thu, 7 Apr 2022 17:39:04 +0000 Original-Received: by kubenode511.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 2276ce39b0d6ddefd69e3dd23d0873fd; Thu, 07 Apr 2022 17:38:59 +0000 (UTC) Content-Disposition: inline In-Reply-To: <86tub4al82.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.135.124; envelope-from=spacibba@aol.com; helo=sonic310-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:287896 Archived-At: On Thu, Apr 07, 2022 at 07:53:33PM +0300, Juri Linkov wrote: >>> icomplete is based on post-command-hook, so zcomplete would need it too. >> >> Sorry, not agree here. If zcomplete intention is to emulate the zsh >> behavior then it is not needed to use post-command-hook. Completions are >> shown on demand ... post-command-hook is for a behavior more like >> browsers... We already have helm, ivy, icomplete, vertico, selectrum, >> ido, fido (with the vertical variants too) and all the others... I don't >> think we need more of that and reinvent the well once again. >> >> Simple in better than complicated ;) > >Earlier you suggested to add a new minor mode, but now you say >that a minor mode is complicated. Isn't this a contradiction? ;) > You said it was and I didn't want to argue on that... Remember lisp is a sort of magician... so I always assume there are quick solutions but I tend to reinvent the well myself. For example... That menu-item+filter solution you proposed for me is black magic and I couldn't even find what a menu-item. >And the same find-as-you-type autocompletion like in browsers >is supported by zsh as well: >https://github.com/marlonrichert/zsh-autocomplete > Yes, I know it. I tried it when I had zsh some time ago... But 1) it is an external thing not in zsh 2) it will be simpler to implement with icomplete and that family of completion engines. Also the zle engine is much more robust and simple than what we have in emacs now because it only needs to support their use case; and written from the scratch for them. In emacs there is already vertico to do more or less what you want and it ended up being a bit more complex that what we want in vanilla but with more or less 800 lines... If we want vertico, then just add vertico to vanilla, lets not re-implement it right?