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: Question about completion behavior Date: Thu, 10 Mar 2022 20:50:43 +0200 Organization: LINKOV.NET Message-ID: <86ee39r69o.fsf@mail.linkov.net> References: <831qzbg5j2.fsf@gnu.org> <20220309101159.4k3uma2ztvldlqiz@Ergus> <20220309114654.zq3h3u47btmt7q2u@Ergus> <83tuc7e066.fsf@gnu.org> <87y21ji6ht.fsf@yahoo.com> <87lexiiqnk.fsf@yahoo.com> <20220310102157.wmmn7bkkdbux7aug@Ergus> <8735jqhxdr.fsf@yahoo.com> <20220310140331.xa53sex6wywkr56l@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="23361"; 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: Po Lu , Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 10 19:53:25 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 1nSNuf-0005qi-0X for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Mar 2022 19:53:25 +0100 Original-Received: from localhost ([::1]:56554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSNue-0002ex-1w for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Mar 2022 13:53:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSNtb-0001Is-5m for emacs-devel@gnu.org; Thu, 10 Mar 2022 13:52:19 -0500 Original-Received: from [2001:4b98:dc4:8::229] (port=58721 helo=relay9-d.mail.gandi.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSNtY-00013V-KX; Thu, 10 Mar 2022 13:52:18 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id BE587FF803; Thu, 10 Mar 2022 18:52:08 +0000 (UTC) In-Reply-To: <20220310140331.xa53sex6wywkr56l@Ergus> (Ergus's message of "Thu, 10 Mar 2022 15:03:31 +0100") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:4b98:dc4:8::229 (failed) Received-SPF: pass client-ip=2001:4b98:dc4:8::229; envelope-from=juri@linkov.net; helo=relay9-d.mail.gandi.net X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:287000 Archived-At: > I just added a new branch feature/completions-customs. Thank you. I hope these small steps that add new options will gradually place the default completion UI on a par with modern completion packages. One question - please explain what values of completion-auto-help nil/t/lazy/visible/always now do in these cases that you posted earlier: 1. no unique (shows or update completions) 2. unique common (complete-common and UPDATE completions) 3. unique candidate (complete and hides completion) 4. unique common but completion is a valid entry (complete-common and hides completion) > The changes there are minimal and finished in my opinion. Whenever any > of the maintainers decide they can correct, fix, or merge into > master. (there is a small issue with the reference in the manual, so > please fix it, but I don't have any more time) I fixed these and some other issues in the branch. > The changes include the max-height for completion window, a > completions-highlight-mode and the new values for completion-auto-help. Why not highlight the completions by default? Unlike other changes, highlighting doesn't change the previous behavior. > I didn't include the zcomplete-mode because I am not sure how to name it > and didn't receive any feedback except from Juri. In total it is 53 > lines and provides an interaction similar to zsh (as explained before) > which may be very suitable for new users. I'm still unsure about this mode. It's unclear what is the answer to the main question: should it select the completion buffer or not? I'll soon post a patch to allows navigation in the completion buffer without selecting it, i.e. from the minibuffer. This will handle the problem of self-inserting keys that will continue working in the minibuffer. When this will prove to be insufficient, then we could add new mode to auto-select the completions buffer. But then why don't just use the recently added completion-auto-select? > Apart from that I am wondering if it makes sense to add an option to > propertise/configure the Initial line in the Completions buffer (there > is one to remove the help, but not the other) Do you mean completion-show-help whose nil doesn't remove text "Possible completions are:"? > (for example to remove it or add properties like intangible, a face etc) > could we also add a sort of counter there to indicate the total number > of candidates? Good idea.