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 20:35:35 +0200 Message-ID: <20220407183535.qug4e2eaeicuje6c@Ergus> References: <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> <20220407173854.svouydgsy6hwytep@Ergus> <868rsg93dv.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="23137"; 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 20:36:58 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 1ncX05-0005oX-Ow for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Apr 2022 20:36:57 +0200 Original-Received: from localhost ([::1]:57286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncX04-0005dx-9K for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Apr 2022 14:36:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncWyx-0004x8-2R for emacs-devel@gnu.org; Thu, 07 Apr 2022 14:35:47 -0400 Original-Received: from sonic317-26.consmr.mail.bf2.yahoo.com ([74.6.129.81]:40132) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncWyv-0001x3-3S for emacs-devel@gnu.org; Thu, 07 Apr 2022 14:35:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1649356543; bh=MPz+o6yPW9o6suPaC5LY2Yzq1i2AX1WvFPLgX3qK0ak=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=Z1K8dcQHVIBkHKw0pvXTRM4ws/+rc2w+A+EzoQNDXoYOesHxtTZPXDo4GSg4QTVh3ummr+bl5nTylvHVNMo2KyURlgBqJ+JOj7MmQU2fLtQAOanhQBoKCkEGsR7Hc0DftX81Pokg6Shhcr0v0fNaSqVsvBeaqKiiSbg7Qu+XDvpty7k5PKWnNbPlhpglugCqIpKQ4Nvb4YBAuCKvLYbO6VvPHA8j1HyVmux/DuDj7OR1gbE10AP/s6BzgvRcw+HPVY6rpmyXT/D9bBshuqknVx5QRajs2gpnFs6IEDIpvcSdbaDOoHqBXaH2jxKVQz2kpwNHmj9UFb577ctCv3zl6A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649356543; bh=pwJDRrDDvBjMKlNf67FdiN5kP6ngbMVYchB1x5xgvAr=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=q2dsDC40iFDHrKcVqJ/v3jwCEZ4rJAyNHP2Lm3dfkOA4EzJWO6dvnJJ2uiDXao6hVHGMiiJZj8D/0j5DpFuiGpSkSAuJLFEyvUHcRmtitXuqVx/+xgbTSxAznu5QP85HKoVjNue/sTjR9duaJcuhq4/JnobuDQnasbfJx0zuHxnUVx2h+LtLw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.yahoo.com by sonic317.consmr.mail.bf2.yahoo.com with HTTP; Thu, 7 Apr 2022 18:35:43 +0000 Original-Received: by kubenode515.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 3640701630a8a47e423361ac836675b6; Thu, 07 Apr 2022 18:35:40 +0000 (UTC) Content-Disposition: inline In-Reply-To: <868rsg93dv.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.81; envelope-from=spacibba@aol.com; helo=sonic317-26.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:287901 Archived-At: On Thu, Apr 07, 2022 at 09:04:12PM +0300, Juri Linkov wrote: >>> 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 > >Actually, there is internal customization in zsh as well: > >1. zstyle ':completion:*' menu select interactive > - allows typing a letter that immediately > updates the list of completions. > Yes, but that may be complicated because completions calls a function that will try first to complete the common part and then update the completions. (Look what happens when you press a letter and tab immediately). There are few ways to go around that without braking half of the Universe. Look where I added the code for the completion-auto-help visible and always... there is where the magic happens. Maybe you will find a better way to manage what you want. >2. zstyle ':completion:*' menu select search > - shows the prompt "isearch:" where typing letters > searches them incrementally in the list of completions. > >> 2) it will be simpler to implement with >> icomplete and that family of completion engines. > >Agreed, this would be the best thing to do. > For that we have fido and similes... What we are trying to improve a bit is the default completion engine. Then the user will choose fido, ido or something external... it is up to him. >> 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? > >Does vertico show completions in the *Completions* window? I don't think so but I am not sure... Most of these tools stay in the minibuffer for completions... so they don't need to switch context.