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: zsh-like zcomplete-mode based on icomplete-mode Date: Sun, 10 Apr 2022 12:41:34 +0200 Message-ID: <20220410104134.jw2qik6aa7judmur@Ergus> References: <86sfqm14g6.fsf@mail.linkov.net> <20220410010557.2l4zh5yasmanmk7z@Ergus> <865ynh9yp1.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="12905"; 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 Sun Apr 10 12:44:04 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 1ndV36-0003FJ-5z for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 12:44:04 +0200 Original-Received: from localhost ([::1]:54940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndV34-0007kO-U6 for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 06:44:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndV0v-0006ny-Ms for emacs-devel@gnu.org; Sun, 10 Apr 2022 06:41:53 -0400 Original-Received: from sonic301-2.consmr.mail.bf2.yahoo.com ([74.6.129.41]:38137) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndV0s-0000ED-4I for emacs-devel@gnu.org; Sun, 10 Apr 2022 06:41:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1649587303; bh=babpcFCIg2kQGphLQNRZj8w7RHbB5B/7X/hg4xp1YFI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=ffZy2TGBRHJY3RKmyOfYnL9owqRIcOijNBuu1uXkNR/oH+ok8cQktg8bgXP9dGY5ZftawXkqg3Z9W0BouKEe/77sWz08WBSqvL47Dh9fS3xcfTMYQDi8Z4OLXyy4wsmJsy/loW0phb2fPcHbHmg1KT3bw1yazaHzf1RDvNS4oug5XYqVpakuW0S8RxeeFJARE8H0LDCJPrflEshGNr7ph0RHBrCbuyCzixC0h5aPwJRBGfMjs4OBvtbLe56KNGypO4amna6SUgStzUBX/t8Sa5h2nHyKlwugdXGWnvBlX6b53TcXduRXg+wBILq1pJOasyzPb7KORGnpA8YGJVMoPw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649587303; bh=peHc0VNLA6IHmk7xv0bm0M85cayEeDXW3nmqyftkN2x=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=pGNhnuIQauS8eB0mSpSH2F34cHrzWUYdu5C+Q1aWto4DeuUcfcbAMCPhj/MnZt4hdlNT3SHNbaKQ5ywVdVgIdfVyyKpBHLdV7UtK9E8l4q24gLKgfPc+sN9pXnag7M4H6sAyv4fK4FUS6I8R+z8XOhaklZYaOnql77z/ErB2wdjMHHVYUb4jwtxCMSUeKtxikUfsukZlwg2/CZoLrOm8e2LImvrZzj7cX8B8H9zuywwWFIIs2PTmOj/xmJMlON2OaNUwVQu+rI+0sKssyHOR0WLjRPpumMQ5KEr4pIpvBlmMfsmxTOg7AknSwlJviCyHRuXaUW0jzz8CDD1Uu9fCxQ== X-YMail-OSG: bxq6pZEVM1mBBCJ9kdwqQ2uulXoYTu4sRxMYSgxLvkc8gj_ZRG29f6AvwiPBVoX D_2P5Bc29MV_UXy6scrnZumqv5jY98QTnL9NRWNeRkvWBV7Pr2IQPLRj_2qbG8j1FuvpNnJ39Bbq su3Sv0gkbMmJnMZItObK242jbBxNGoWdzHdD5hjIRi8POSAYdTjx6WjufoHcMJ_UmdpkSaZHN2ez IpKmBjXcV8qEWrvku5Od33JqQtItaqzj1Kwwwbxar0L6drzMeYQC9q6ror6JGb4cK6gOwBJIfD8O 1xqdfkhOB4uS0jfHxyi_RTGDOmAm9lS.Fw50k73yAJatWo1QOMlh6YHsc7odHsFD6KCEpA8wXFys _cY8cr9VvMHwuNNYCyyodbVfhOGlgBSrT.xnvPaR.QSe_.YeFE2tkORZQ41i9Zxb0rSjc3s_f0yI AdpfzH8CmkTaZzYiJgJFXUSwYrjfocm5TVRaysaQsyYLVrrJvcFRT5GmSSckbra8w5OjtCnk5L.8 RJHhzmzR.sTutV8p2REK_a26BU0sk7h9dZl2tndCpal.OZxG23ZS_gRR.9xo0fJPC9dLhGQTK_Fv euNMacD5Ac_swbrieDq6S27eoYxJk96fIk8Jov8Cy58neyPfEJ8blqt8cAWwHa.sFgZH3TVb5W5g 2534kCRnHc.cZQ0x3391INR1QjnyTu4yCSfoYyAMI_wOJ.yrRC4eUpv9EwQDk2XPf0vtzjsMk4o_ n08wkxk3wEOdb8BnmiwEt1LUJm7HUVQCWS7pPek74PjFGUF0gogAIJv1tVzusR9uKcbL7bOS_ZUF DvpB8v9c03TFBR_rHLg9HuukK2cujbnU9mMyCrSyvN X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.bf2.yahoo.com with HTTP; Sun, 10 Apr 2022 10:41:43 +0000 Original-Received: by kubenode510.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 0bde9b9241ddf4d07408252764feb5f2; Sun, 10 Apr 2022 10:41:37 +0000 (UTC) Content-Disposition: inline In-Reply-To: <865ynh9yp1.fsf@mail.linkov.net> X-Mailer: WebService/1.1.20048 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.129.41; envelope-from=spacibba@aol.com; helo=sonic301-2.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:288125 Archived-At: On Sun, Apr 10, 2022 at 10:38:58AM +0300, Juri Linkov wrote: >>>Here is the first version of the mode with the behavior like in zsh, >>>but that is based on icomplete-mode. So many customizable variables >>>and commands were copied from icomplete-mode, but instead of displaying >>>completions as an overlay in the minibuffer, in zcomplete-mode >>>completions are displayed in the standard *Completions* window. >>>All other icomplete features are preserved in zcomplete, such as >>>typing in the minibuffer continuously updates a list of possible >>>completions that match the typed string: >> >> After the first completion I get this: >> >> minibuffer-next-completion: Wrong type argument: number-or-marker-p, nil >> >> And it stops working... >> >> SO I need something special? > >I pushed a fix to master, please try again. > Ok, now it works better... But this is not zsh completion anymore ;) The dynamic table auto-refresh is nice for people who like icomplete/ido but it is a different use case and after a while it starts becoming annoying for quick uses... but this is a personal preference probably. On the other hand I cannot use the up and down arrows anymore for search in the history with commands like previous-complete-history-element There is a detail when completion-format is one-column and it is when using zcomplete-previous-line-completion, some candidates are not highlighted... when we go to the last candidate and return... It seems like the cursor goes at the end of the candidate where the face-cursor is not set. I will continue testing.