From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Mendler Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] (icomplete-vertical-mode): Add support for affixations and, annotations Date: Tue, 25 May 2021 04:53:19 +0200 Message-ID: <43d1599e-2ba9-2efb-45c3-76c67d29a69d@daniel-mendler.de> 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> <87h7irss50.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30014"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , Dmitry Gutov , monnier@iro.umontreal.ca, "emacs-devel@gnu.org" To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 25 04:54:23 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 1llND5-0007aA-O7 for ged-emacs-devel@m.gmane-mx.org; Tue, 25 May 2021 04:54:23 +0200 Original-Received: from localhost ([::1]:58060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llND3-0003WN-Kq for ged-emacs-devel@m.gmane-mx.org; Mon, 24 May 2021 22:54:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llNCR-0002qW-VH for emacs-devel@gnu.org; Mon, 24 May 2021 22:53:44 -0400 Original-Received: from server.qxqx.de ([2a01:4f8:121:346::180]:41581 helo=mail.qxqx.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llNCP-0008MW-Pn for emacs-devel@gnu.org; Mon, 24 May 2021 22:53:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qxqx.de; s=mail1392553390; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ce3yQROnkoqDbug8JaYFgsJqyboiDE6VJY3aeflre4A=; b=FQL5HqjMRAktKFsa5DhpZnZY4i 5DW6y/IoUEgClgaAQZEFzC5mfW97P9Nbv7aNF4CW9QZG+rC+WUZSgBI4l1dOsqdgqNoWjXgob76Cg hyAAs0p/Wo9AiyWpfX1nogHV+nV6PPMdbFXEOY9C019ETasLqAFIFcI892fv0rbH0loM=; In-Reply-To: <87h7irss50.fsf@mail.linkov.net> Content-Language: en-US Received-SPF: pass client-ip=2a01:4f8:121:346::180; envelope-from=mail@daniel-mendler.de; helo=mail.qxqx.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:269829 Archived-At: On 5/25/21 12:07 AM, Juri Linkov wrote: > The next step would be to allow the option 'completions-format' > to accept an arbitrary frontend rendering function. Then a new > possible value could be added such as: > > 4. completion--insert-multi-column > > So when affixation-function will return a list of multiple columns, > e.g. for buffers the same list of columns as used by list-buffers: > '("C" "R" "M" "Buffer" "Size" "Mode" "File") from the backend, > the new frontend rendering function completion--insert-multi-column > will accept such a list of all columns, set it to the buffer-local > variable 'tabulated-list-entries', and call 'tabulated-list-print' > to render it in the output buffer *Completions*. It would be great, if the backend can specify arbitrary custom columns, maybe with some hints (desired width, if it is a prefix/suffix, etc). Then we can define some "semantic names" as standard, which should be understood by the frontend, as Dmitry proposed. But this can happen as a second step. What kind of `affixation-function` are you proposing, one that returns a plist? Would such a design be acceptable for João too? Daniel