From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.devel Subject: Re: Stepping Back: A Wealth Of Completion systems Re: [ELPA] New package: vertico Date: Sat, 10 Apr 2021 13:40:55 +0000 Message-ID: <5cf18ab57c6d89b4715f@heytings.org> References: <9c9af088-580f-9fb1-4d79-237a74ce605c@inventati.org> <874kgkxxs0.fsf@posteo.net> <78741fe6-2612-d7c9-2bc4-0b68ea7fa51a@yandex.ru> <76a4d0e2-117b-165d-d56e-5bc2f504b50c@yandex.ru> <87blapln0r.fsf@posteo.net> <37bd2e96-ce04-eb6d-24da-fdd7ea427e61@yandex.ru> <87im4wx2ct.fsf@posteo.net> <83ft0080hi.fsf@gnu.org> <16784f40-b959-9a84-65d4-93b71d1bebec@yandex.ru> <5cf18ab57cc86eb2148a@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22696"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Dmitry Gutov , philipk@posteo.net, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 10 15:41:46 2021 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 1lVDrt-0005oD-2n for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Apr 2021 15:41:45 +0200 Original-Received: from localhost ([::1]:47458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVDrs-0006UR-5G for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Apr 2021 09:41:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVDrB-0005sc-TG for emacs-devel@gnu.org; Sat, 10 Apr 2021 09:41:01 -0400 Original-Received: from heytings.org ([95.142.160.155]:36792) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVDr9-0002el-SG; Sat, 10 Apr 2021 09:41:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1618062056; bh=Dyt7sNjwngxGwS4xZ2JD7nvCFwQOIxVsDM+t/rJiJxw=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=AZR8Aa52sEDkny1tgBVx5HV6t3FYSdQ9Vs9YiEZBzQI/p+VCkTmiSMG6t+G2Ws3Ji 9YpfGnF1Pdj2xnz46EiqLkIdaOXTk+cgyoSZAfEKZUvIHGX1yWfuYKwOFnZ/wGMYf3 l13tkScQfxB948eUDKto8JL1v2pHCPVPqn/j7SbivP9Jy7d5MT0GJeCEpxoU2I89eo nIgKSKzGs14yyWtSR+/fXpXAdqXtYgBn1iemJ6172u4x5JbkI77P6CyHHqAKjfimuw oqqsJACgE7xVIPmgNXtCdG5+f63wfOaAgyRNwX/USPmxPeHSFPlGJdsof7UOO3zMo1 4cLArgGhQEU3g== In-Reply-To: Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:267820 Archived-At: >>> I think it would be desirable to change the default UI just enough so >>> that a code like Xref can make `completing-read` display the >>> completions eagerly. >> >> I did not follow all the details of the earlier discussion, and I'm not >> sure I understand what you mean, but is this not already possible? IIUC >> Icomplete for example does this when icomplete-show-matches-on-no-input >> is non-nil, and RET selects the first entry. > > Icomplete is a completion UI, so of course it can do what it wishes. The > question is how can Xref tell the completion UI (whichever the user has > chosen to use) that it's a good idea to do it. > IIUC, a variable "completing-read-show-matches-on-no-input" that would be setq-local'd by Xref and read by completion UI's would do the job. Or am I missing something?