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: Sun, 10 Apr 2022 22:16:10 +0300 Organization: LINKOV.NET Message-ID: <86o818bvgl.fsf@mail.linkov.net> References: <86sfqm14g6.fsf@mail.linkov.net> <20220410010557.2l4zh5yasmanmk7z@Ergus> <865ynh9yp1.fsf@mail.linkov.net> <20220410104134.jw2qik6aa7judmur@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="24461"; 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 Sun Apr 10 21:19:44 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 1ndd68-0006CU-Bg for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 21:19:44 +0200 Original-Received: from localhost ([::1]:46170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndd66-0002WN-Sy for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 15:19:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndd5P-0001A8-T2 for emacs-devel@gnu.org; Sun, 10 Apr 2022 15:18:59 -0400 Original-Received: from relay10.mail.gandi.net ([2001:4b98:dc4:8::230]:47115) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndd5N-0000zS-Qh for emacs-devel@gnu.org; Sun, 10 Apr 2022 15:18:59 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id A17FA240003; Sun, 10 Apr 2022 19:18:52 +0000 (UTC) In-Reply-To: <20220410104134.jw2qik6aa7judmur@Ergus> (Ergus's message of "Sun, 10 Apr 2022 12:41:34 +0200") Received-SPF: pass client-ip=2001:4b98:dc4:8::230; envelope-from=juri@linkov.net; helo=relay10.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, 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:288156 Archived-At: > 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 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; 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. > 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.