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 05:37:37 +0200 Message-ID: <831qzbg5j2.fsf@gnu.org> References: <20220309001013.gxyh2uasbuxiz6ww.ref@Ergus> <20220309001013.gxyh2uasbuxiz6ww@Ergus> <20220309014619.bptamkv47xdiyhzp@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1286"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spacibba@aol.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 09 04:38:32 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 1nRn9j-0000FE-TT for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Mar 2022 04:38:32 +0100 Original-Received: from localhost ([::1]:39004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRn9i-0005Hj-Os for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Mar 2022 22:38:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRn8x-0004cA-Or for emacs-devel@gnu.org; Tue, 08 Mar 2022 22:37:43 -0500 Original-Received: from [2001:470:142:3::e] (port=56270 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 1nRn8x-0000NW-36; Tue, 08 Mar 2022 22:37:43 -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=5nBIxFBXEDpSuruweAC02/z9eZ2wo8yAMTvt+pC7lqw=; b=eMcpznlT3gc9 sVUCfUp2RZebQ9Bk0+XT4X8a5teOFTWuCouohrOTJVTqJjmEGPVBtvE6pWvspnGZEiQsZgyVUpCBU xIJXIbaFRYuh9v6eV3y3hbaM7cYEpFFp5n2m3VYxXYcN0RrTyZiNGqi/3pFzFmxDheEmcZVlM/eaV uINc+F9qi+ldyus5AJusviCG/EDL9lWsdUevz7Eqj9ky+pE4sNkHyGkZWc6DaybAUDSQsa7tVISA9 iJKISqHAzWnjsnH17Em230AFnuUIW/tpxU70OOaQEOQVnnxBpoJK7I8Ri3wKXqas4WxspIMTEzlgb Aw+Pu9edN4nqtnFGH5e2Ng==; Original-Received: from [87.69.77.57] (port=4527 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 1nRn8w-00013S-El; Tue, 08 Mar 2022 22:37:42 -0500 In-Reply-To: (message from Stefan Monnier on Tue, 08 Mar 2022 22:05:52 -0500) 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:286943 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org > Date: Tue, 08 Mar 2022 22:05:52 -0500 > > >>> Was all this behavior intended or how do you propose to solve this? > >>I think this can be changed. > >>Patches welcome. > > I am struggling how to preserve the old behavior indeed, because what I > > find a bit confusing is actually the default behavior. > > I think we should first consider *not* preserving the behavior. > I.e. as suggested by the comment, rather than hide the completions, we > should update them (if they're displayed). But please don't keep updating the completions buffer if TAB arrives at a complete (but not necessarily unique) candidate. That would be an annoyance.