From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: zsh-like zcomplete-mode based on icomplete-mode Date: Mon, 11 Apr 2022 19:53:45 +0300 Organization: LINKOV.NET Message-ID: <8635ij1rza.fsf@mail.linkov.net> References: <86sfqm14g6.fsf@mail.linkov.net> <20220410010557.2l4zh5yasmanmk7z@Ergus> <865ynh9yp1.fsf@mail.linkov.net> <20220410104134.jw2qik6aa7judmur@Ergus> <86o818bvgl.fsf@mail.linkov.net> <20220410214539.e5dg462wpc7tfo76@Ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23954"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 11 18:55:14 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 1ndxJq-00067u-0m for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Apr 2022 18:55:14 +0200 Original-Received: from localhost ([::1]:41640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndxJp-0003TI-4I for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Apr 2022 12:55:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndxJ9-0001o8-Cr for emacs-devel@gnu.org; Mon, 11 Apr 2022 12:54:31 -0400 Original-Received: from relay1-d.mail.gandi.net ([2001:4b98:dc4:8::221]:35525) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndxJ6-0003o2-Eo for emacs-devel@gnu.org; Mon, 11 Apr 2022 12:54:30 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id F21A5240002; Mon, 11 Apr 2022 16:54:23 +0000 (UTC) In-Reply-To: <20220410214539.e5dg462wpc7tfo76@Ergus> (Ergus's message of "Sun, 10 Apr 2022 23:45:39 +0200") Received-SPF: pass client-ip=2001:4b98:dc4:8::221; envelope-from=juri@linkov.net; helo=relay1-d.mail.gandi.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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:288226 Archived-At: >> 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? Right, when it's not enabled, then M-up and M-down will do the same. BTW, now I added a new custom 'minibuffer-completion-auto-choose' instead of two sets of commands for the default use. >> 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. Agreed. However, there is a technical problem: when :filter returns nil, then in the minibuffer falls back to the global binding `previous-line' instead of the minibuffer history command. This needs debugging. >>> 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. Strange, I don't see this problem.