From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] (icomplete-vertical-mode): Add support for affixations and, annotations Date: Tue, 25 May 2021 02:02:34 +0300 Message-ID: References: <87zgwlb4xc.fsf@gmail.com> <617d06ca-27bf-2ae8-26eb-1042123499d3@daniel-mendler.de> <87pmxhb1rs.fsf@gmail.com> <23510125-37b9-e87e-3590-5322f44772ce@daniel-mendler.de> <87y2c5nhsr.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37576"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 Cc: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , monnier@iro.umontreal.ca, "emacs-devel@gnu.org" To: Daniel Mendler , Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 25 01:03:19 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 1llJbS-0009eH-HN for ged-emacs-devel@m.gmane-mx.org; Tue, 25 May 2021 01:03:18 +0200 Original-Received: from localhost ([::1]:40952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llJbR-00023g-DY for ged-emacs-devel@m.gmane-mx.org; Mon, 24 May 2021 19:03:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llJar-0001Nv-Ct for emacs-devel@gnu.org; Mon, 24 May 2021 19:02:41 -0400 Original-Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:44786) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llJap-0001kp-9Z for emacs-devel@gnu.org; Mon, 24 May 2021 19:02:41 -0400 Original-Received: by mail-wr1-x432.google.com with SMTP id i17so30101800wrq.11 for ; Mon, 24 May 2021 16:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=g7qi0vk6hf9hMC78c+IjCYHIFTSnqo1N5lrIJm1Kq8A=; b=bNBuTDVG40beEd0k6nmd1tdrtt1Vjyrxad+4f4egZwI5wlQSIT8c//A4xUGYWmxAun g7tIfCjjxsPQVPzkFgbF/JMS0mS87t9yxwNXG26oJoLcEnSJ6dPwkE9EexoiQtG2/JQj XKBUjEtQuYDshGGgt08qwU8EslmLxmRKbT9kkxhTIYZMilACI7g+aG0WoL9LvAAP0wQ/ 087EGpkhlXR7J9v1zNUWNgVUwLnkD1wF90ZA9ZNK2fE+9pNjUXngZK9gDNen5BnZ+iS+ fYw4JKSZA0vvcIOQrYufPNG1U8x1etQMomZOfU06bp71qETvn+klwor4yTe6pSCiAnmC kV1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=g7qi0vk6hf9hMC78c+IjCYHIFTSnqo1N5lrIJm1Kq8A=; b=f9MITv4cSboUvQH2xPj4Wis7lnIT4LtfHmTjErj6NEUQYOVLUwhOlSnvCWc2Oo50HY gW0fz/9xIO/PtUFOdJjO8tysPH2CreaZRfK0eKiCltoDUYkb1h3G13laLyVHGwnuVrMz vqgoEUEg8/rCx0g3yZKEr1jfTTwZib2S4Ji7uwbLxLySXu9JTMBI/1f4l8YGUaE4TE/5 kKENiFu/zvvtnSn9Ka97tid5ftueGPMvZrW6mwCYyOEJDYSaPBEovEjcBnu24ilZLlA6 Rly5WS04eqLOT/aO4ePlwyfAlgzgY/dhceP7o2/nEnrIzOSBnlmRhB2wNQj+3Nr41zUs cPOw== X-Gm-Message-State: AOAM533RDfP30H/IpACw+my5fwd6IlpqfiSOxKSWe90VqKXaAYYyU8cy a+6Gv5b9LqkuLE2DrHBss3c= X-Google-Smtp-Source: ABdhPJzJ0lWseNBT7EUoch91toJ/6boYeidoXxGsChz2HNYM+9RxJd4I8UHnqOCs9njxOgZKdaWGQQ== X-Received: by 2002:adf:ee89:: with SMTP id b9mr23842004wro.139.1621897357245; Mon, 24 May 2021 16:02:37 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id m11sm8726368wmq.33.2021.05.24.16.02.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 May 2021 16:02:36 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=raaahh@gmail.com; helo=mail-wr1-x432.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:269820 Archived-At: On 24.05.2021 13:26, Daniel Mendler wrote: > Of course this should be > extensible, the data backend should be allowed to define arbitrary such > columns. And then the UI can render some of these semantic columns > specially (e.g. as Company is doing with company-kind). That works for me, though I would approach this from the other direction and define an xyz-function for each column. > But I am not in > favor of extending the `completing-read` API with these `company-*` > extensions. If such a semantic annotation extension is added, it should > be non-namespaced ideally since it is not tied to the Company backend. Yes, sure. Don't make them prefixed and document those attributes properly. This is orthogonal to all the other decisions. > As I argued above, I don't think such support should be added. I hope we > can find a better semantic annotation solution which encompasses > company-kind, prefixes, suffixes and arbitrary rich columnar data. The > question is how this should be done such that in the end the design does > not get too complicated. So far your columnar proposals (IIUC) have been quite different from what company-kind offers. And it more and more looks like something Company couldn't support. Which is fine by itself, I suppose, but it also moves c-a-p-f away from the idea of a frontend-agnostic API.