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 23:45:39 +0200 Message-ID: <20220410214539.e5dg462wpc7tfo76@Ergus> References: <86sfqm14g6.fsf@mail.linkov.net> <20220410010557.2l4zh5yasmanmk7z@Ergus> <865ynh9yp1.fsf@mail.linkov.net> <20220410104134.jw2qik6aa7judmur@Ergus> <86o818bvgl.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="31230"; 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 23:46:57 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 1ndfOa-0007u2-Vp for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 23:46:57 +0200 Original-Received: from localhost ([::1]:35286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndfOZ-0008Cc-Fa for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 17:46:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndfNb-0007Vn-UO for emacs-devel@gnu.org; Sun, 10 Apr 2022 17:45:57 -0400 Original-Received: from sonic301-3.consmr.mail.bf2.yahoo.com ([74.6.129.42]:39422) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndfNY-0004aq-Pe for emacs-devel@gnu.org; Sun, 10 Apr 2022 17:45:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1649627150; bh=6U81Jlri/XsAIGf42rErQXWrcJ3DH+cTOJu/0EcdhEE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=Dcecw3yWvi2iKDZ5xwADOcBuhKsMMj6yJL3AsP8nqu50jTEJTYpMhsNQP8Tls0Of2GyBCrWJrN5iWpnipFazhh6DdMvFlHoCoMhkVSdF8WI1flQs2f0cr2LUq+uWeGsbh9coYRDXlR48Yn1tSXXN+vdvikDqFPBqvGBmHCN+rCNWakgvWY9+OJjHtaF69cMYsq7jb6dtZr9bnHAhPi0ySMtKvek4AaQUNokm+ZAFbH4f9XQwgxKFC5xL5WzqcDmgOTRNB+u7QIL2H89tPmmbgMDo+Cg9YlhK0Ev8+qHgQKecVBLldS67QMfljrgvOp62V191LvKMyAK64MkEaN69vw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649627150; bh=KfjtIwEFBUgXwcG/019Z+8G9hBuMNNz3IFOgAFQ4R71=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=HHKRkPZaQlBu3XOnvjZeLzhsTJC2tHaxVuy1dcSriOtg1C+btcvOphKPSyTO/QwRrbZ0Ku2IwdoiQ6Op1VFN2Oi/V+ja7Fg2gnXmZkqq81VZpzbk5qEizNtgHUyISgvsme8rrAwFFrkARuUU9YcSd//YbSPWq3znaALSFeC1PZ2mtxgQ3b0N2BsyLQffOJp1rSmJAkKNSmmYv22L/dSoio6z4QtIzkYFNWK0bStvGLkkqJnGfDvYCzv3SH6uKq1+ve2WL3nUVPjAvpzQqT8J7OVrrpoacxHDZKYanC3xP8SklcRKVfik1ZfrDJtJp+RUx4d8CghxJbZrqwSKLgP1qA== X-YMail-OSG: zyfipq0VM1nDVewy9wDfFfO0UbL5NTGebPAQINyYYSmXRmEFCcd1AXble1fEDW5 Xi7pVpSzHGzXLeeYrhHg.6HkmdIfpBHlE9ulN2SALtV6S5EOmOs6pG36kHms.MNS8kUaolcjDL4c ljdwBDqLHcg_fqDII_VdxPMwbGL2NaOdbJuREQFsGJtAcD8pgKqTrP.sNLWvDjs5_q0GYxWrB8Cs tFYBbYOGzih7W3CGCxzxd46sjVMFNbI0gT3yozhYpr3czYwmBZrmKPAuvP5sZIFnVberzj1wgKqn 4n.E._Xn9zoaKpcwt_7SIHsdI19JejrBS0yKTGTGqMCU9J46jG7mIFz2jzQhdIUbu55hmm27tmif ZCVA9.ge3mnFgkpyxQLSWr0jRH1AwuavHLTFFF_5KfqAzugPWXdluoiYop9GUCsvFqPklk734a8x d5lfuHwAaFmR85u1P.2aITo8SE7ht459nPbG5kMw8.OjDFVKYcTmovTsms4gJt5Sstn9B42Y3x4l _4LUEc14nbI0uFFKqMLK.Vf9hJRYd9J7lzmmq6y6xwFMaE.tZBx4p6C0kFEy9YYI_60VJjLi4I9i jDWxS8L9AXRaEhi689ohmPyPhPgBWdtr.AH7s4zMrb6hHCgFP2WHDoCcs_bT7PouF3z9vC_YLDLu F1kGzav5uBIYf8qk.fTCi.djbCK1_W4s1oEIKJX_ndr76_u_NrVw_P9FzouocS33NdpjZwngDxzb a_V9VoE1mJWIfMgs6JiRY5ExJbWJ5IKm8MNzg7FvNisrym_BAPEpVfpxICYcnx0pWdyrpNvAoXa8 5DZN0yslPSFCtaiKDvMm3lLeYJSwr7WP3tiIsLX3Sg 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 21:45:50 +0000 Original-Received: by kubenode515.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 9d6d9ca3f1028d29330728c2305ca553; Sun, 10 Apr 2022 21:45:44 +0000 (UTC) Content-Disposition: inline In-Reply-To: <86o818bvgl.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.42; envelope-from=spacibba@aol.com; helo=sonic301-3.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:288158 Archived-At: On Sun, Apr 10, 2022 at 10:16:10PM +0300, Juri Linkov wrote: >> 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. > >zsh does the same when configured with > > zstyle ':completion:*' menu select interactive > Yes we already mention that, but such behavior is not the default, wo when we say zsh behavior, that's not usually what a zsh user expects. >So we should have a variable to enable/disable interactive auto-refresh. > >> 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 > >Another variable could provide at least 3 choices: > >1. never enable arrows, then use only special keys like > in icomplete-mode C-./C-, but this is not quite convenient; > This will be like not having the zcomplete-mode enabled right? >2. always enable arrows like in icomplete-vertical-mode, > but this disables history navigation; > >3. enable arrows only when the Completions window is displayed, > this assumes that auto-refresh is disabled, otherwise > the Completions window is displayed almost always. > This is in my opinion the only real zsh like behavior. If completions are not visible, it does not make sense to enable arrow navigation. >> 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. > >This looks like bug#54374. No, this only happens with the minibuffer navigation... with normal navigation in completions there is not issue for me.