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 15:16:17 +0200 Message-ID: <83tuc7e066.fsf@gnu.org> References: <20220309001013.gxyh2uasbuxiz6ww.ref@Ergus> <20220309001013.gxyh2uasbuxiz6ww@Ergus> <20220309014619.bptamkv47xdiyhzp@Ergus> <831qzbg5j2.fsf@gnu.org> <20220309101159.4k3uma2ztvldlqiz@Ergus> <20220309114654.zq3h3u47btmt7q2u@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2169"; 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 14:17:26 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 1nRwBy-0000GC-A7 for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Mar 2022 14:17:26 +0100 Original-Received: from localhost ([::1]:55328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRwBw-0007m7-Pt for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Mar 2022 08:17:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRwAw-00075b-Dg for emacs-devel@gnu.org; Wed, 09 Mar 2022 08:16:22 -0500 Original-Received: from [2001:470:142:3::e] (port=35572 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 1nRwAw-0002Lw-2s; Wed, 09 Mar 2022 08:16:22 -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=Xzdo3Lw0RAx6EQvWvY01tTf9gJBkIO2MxcQrtOSmjac=; b=V9ZEy32XTD/7 1VsNyihNyNcVInhd9kbN0k7KY9LKBu51HPjXukhjHQcXpyOv/Krfr5m5YUgUKRVjdoQCudwPtDR99 G+IiNwJwbZAPgJ/bovZIfcWdOGmbdJijS4LVbX+nThdeeHHfswKL/kA0L3HxQXCKlAxGTuo+ofnqH Q7J8Imq3u4yzyzVSCsqFIn16tMsyVRJ2FPf+Ok5Xqm9xZtCz7xHVJRHBwLuI9lytrv16Dfyk5Done QETUFwPc6fgXGDPxGD06irTJTpgvxrgaVAqnlzMXOezlDHamd6bBW6CJE4YDSvnuzMfKI5crQuN7o Jzjd7KagYuXYUQIP6elLJQ==; Original-Received: from [87.69.77.57] (port=4074 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 1nRwAv-0002EA-EG; Wed, 09 Mar 2022 08:16:21 -0500 In-Reply-To: <20220309114654.zq3h3u47btmt7q2u@Ergus> (message from Ergus on Wed, 9 Mar 2022 12:46:54 +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:286951 Archived-At: > Date: Wed, 9 Mar 2022 12:46:54 +0100 > From: Ergus > Cc: Stefan Monnier , emacs-devel@gnu.org > > Look at the attached patch, it may need some small improve to solve the > case 4. but so far it gives a consistent behavior with any value of > completion-auto-help (and it is actually simpler than the current code) > > Alternatively we may add another custom, something like: > > completions-on-complete-action which may have 3 possible values: We don't need a new option, we can add a new value to the completion-auto-help. But yes, I think this behavior you propose _must_ be optional, most probably opt-in for starters. Not everyone will want it. See also completion-cycle-threshold: this new behavior should not tramp that option.