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: Stepping Back: A Wealth Of Completion systems Re: [ELPA] New package: vertico Date: Sun, 11 Apr 2021 21:23:00 +0300 Message-ID: <83wnt83cl7.fsf@gnu.org> References: <9c9af088-580f-9fb1-4d79-237a74ce605c@inventati.org> <874kgkxxs0.fsf@posteo.net> <87blamp5hy.fsf@posteo.net> <2ce73f33-8675-211a-9eb7-ea63de1a161e@yandex.ru> <871rbh6pd4.fsf@posteo.net> <83a6q53pxh.fsf@gnu.org> <87o8ek6bp1.fsf@posteo.net> <83zgy43gr7.fsf@gnu.org> <87k0p867qc.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23083"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, dgutov@yandex.ru To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 11 20:24:01 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 1lVeka-0005s7-Nl for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Apr 2021 20:24:00 +0200 Original-Received: from localhost ([::1]:54102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVekZ-0003qO-Qq for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Apr 2021 14:23:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVejt-0003R4-Sk for emacs-devel@gnu.org; Sun, 11 Apr 2021 14:23:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37874) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVejt-0002Ir-LL; Sun, 11 Apr 2021 14:23:17 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4959 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lVejt-0003dP-3W; Sun, 11 Apr 2021 14:23:17 -0400 In-Reply-To: <87k0p867qc.fsf@posteo.net> (message from Philip Kaludercic on Sun, 11 Apr 2021 19:39:39 +0200) 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:267909 Archived-At: > From: Philip Kaludercic > Cc: dgutov@yandex.ru, emacs-devel@gnu.org > Date: Sun, 11 Apr 2021 19:39:39 +0200 > > >> But why should that mean that both interfaces should be identical? It > >> seems cleaner to instead have a sr->cr translation layer, as to prevent > >> unnecessary dependencies between the two interfaces? > > > > I don't understand what you mean by "translation layer". > > completing-read has it's existing interface, and let's say that > selecting-read would not try to copy this interface 1:1. Instead a third > function could attempt to "translate" completing-read calls into > selecting-read calls, reducing the complexity of selecting-read. That's possible if necessary, but is not the best solution. It is better not to need any translation at all, I hope you will agree.