From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Question about completion behavior Date: Wed, 09 Mar 2022 18:56:44 +0200 Message-ID: <83sfrrdpyr.fsf@gnu.org> References: <20220309001013.gxyh2uasbuxiz6ww.ref@Ergus> <20220309001013.gxyh2uasbuxiz6ww@Ergus> <20220309014619.bptamkv47xdiyhzp@Ergus> <831qzbg5j2.fsf@gnu.org> <20220309101159.4k3uma2ztvldlqiz@Ergus> <20220309114654.zq3h3u47btmt7q2u@Ergus> <83tuc7e066.fsf@gnu.org> <20220309143016.n2q3u25gat6plaxz@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37595"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 09 17:58:55 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 1nRzeH-0009cT-I7 for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Mar 2022 17:58:53 +0100 Original-Received: from localhost ([::1]:44578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRzeG-0004b1-6N for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Mar 2022 11:58:52 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRzcJ-0002vH-60 for emacs-devel@gnu.org; Wed, 09 Mar 2022 11:56:55 -0500 Original-Received: from [2001:470:142:3::e] (port=39704 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRzcI-0008WS-3e; Wed, 09 Mar 2022 11:56:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=957Re4ZEeukVPUlJYWV6Bf5vrA0yWYPF1wY8aprNYog=; b=fiBhq9FFAnq9 Ja1ExbUu1wVZfHlRAtKJGqWeVvUthFdjjAKd9jdXWZCNLscrNS/bNYhVyPBNF6SjavIPlUy6LlcuU 8PjJJWt6FGuKLBqrt+SBqwiEOOuTQWYuDv7iHMbaoUHKBV8AjqEx43nqi+TmXOJNZbS0YsKO7eMjo /A00NLQKdi1MQirp70ELInXNy17sqZG0xDcuftHBfkr4XhHfGlrHtCIwymzwYGJDXP4sV7EtychH6 AZyeZ+j7xoiGpcdy+Hiozyp6jepxou0iUXUNGH1BK9V4wguIg+aawaU4bGi59DvEruaR0bI3Q+3kw J59yeI5ZWMRCFzge0s5OiQ==; Original-Received: from [87.69.77.57] (port=2064 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRzcH-0004jv-ID; Wed, 09 Mar 2022 11:56:49 -0500 In-Reply-To: <20220309143016.n2q3u25gat6plaxz@Ergus> (message from Ergus on Wed, 9 Mar 2022 15:30:16 +0100) 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:286962 Archived-At: > Date: Wed, 9 Mar 2022 15:30:16 +0100 > From: Ergus > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > > The current behavior mixes the completion-auto-help==t with > completion-auto-help=='lazy when there is some completion and the > completions are already visible (hiding them). > > If we do: > > compi it should be completed, but if the completions list is > somehow visible, then after the tab it is not correct, so we currently > hide it, when we must just update it right? No. This is on purpose: with the current behavior, the user can type a few more characters to fit a single candidate, then hit RET and be done. Showing the completions buffer when it is not necessarily needed is a distraction when you type TAB not to see the candidates, but to have Emacs type stuff for you. > The fix in any case is extremely simple and I think that with a new vale > for completion-auto-help to 'always it will work, but may be even > complicated to explain in the documentation... Changes in this area must be optional, because Emacs has behaved like that for eons.