From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] (icomplete-vertical-mode): Add support for affixations and, annotations Date: Tue, 25 May 2021 18:46:07 +0100 Message-ID: <87lf82g10g.fsf@gmail.com> 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> <43d1599e-2ba9-2efb-45c3-76c67d29a69d@daniel-mendler.de> <87tumrgqrb.fsf@gmail.com> <87tumq92pe.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9597"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Daniel Mendler , 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 19:47:18 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 1llb9C-0002H6-04 for ged-emacs-devel@m.gmane-mx.org; Tue, 25 May 2021 19:47:18 +0200 Original-Received: from localhost ([::1]:55830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llb9B-0008Gq-2w for ged-emacs-devel@m.gmane-mx.org; Tue, 25 May 2021 13:47:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llb89-0006f6-Qu for emacs-devel@gnu.org; Tue, 25 May 2021 13:46:13 -0400 Original-Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:33521) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llb86-0006ML-RV for emacs-devel@gnu.org; Tue, 25 May 2021 13:46:13 -0400 Original-Received: by mail-wr1-x432.google.com with SMTP id n2so33232341wrm.0 for ; Tue, 25 May 2021 10:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=svKZFHfD698RAO/RTBr+7vUsm1shJ0sDwOth7L3yf9o=; b=VjgA4uPAcbOJlYnRmaDP1lyahi+OucRDV9y7jT7zdHyvbmIKv002mYDFEXysqkX7r/ SiSsTbGBuDAs201IHUw7Rr9ZGEmNxJQtD4weTNvz94v+ciMXOdmzJ6bNTkilWJhgkOma 2QL1t9zA52aIQojBrt7FS6QcXUHTSKYQLzjhA+Cyz6O07W9U+Obrz0rjjXdu7sTyYU9F /gGuokX1TEW0Tx0Qlt/qZdEwzIIaHsFZ3JO/2lHw+9LbxzILeXO1MCeYBI6bAahBWBHV hgeWMGeC4Qs+KS5CWj5T3bXvdHYxcz0BDxEkrfl6MrrpBacT4O+OSP8salrFpFMqzt20 SLvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=svKZFHfD698RAO/RTBr+7vUsm1shJ0sDwOth7L3yf9o=; b=JaHmTq+/KyCNHeoP+WEVUA/07jbZ4F5Y5qi5hWR4XAUvNuSL9p9p0LRXEVg0JylnIn oLu7z79hHeUec/SsgidofYPKnNmbjlPuP55kmJUP6MyTv7IOmw/pWgsd3joMJA2zMHAV xAZW+Cvd66vXTmMBPYfFqE+qbjabpUwjYDIqLSapTzTOjsqF0vGQ+UgrMIVnozGj8kj2 ZNea89FBYa+BuVUdMY4rbYkeLMQ7M16FNbISEL9J7lKhTJDLIIdO6uBY8vUwanqFZD6D f4f8coH6Ce8T/yoodPju3st8LyLH25T65MbTOaW0BK+LW/b/GAA+ysD1UfIGn4UJdRnm qYCA== X-Gm-Message-State: AOAM533ykmEmqDeJBPV6fie00CfxygES19tIrXT30CgHYPDhVBD2M1lG O6yUr+hJP1ZtaK/VSR8p+Fw= X-Google-Smtp-Source: ABdhPJxV3UXzC87XUWo58ebz2NZqn5UKVN4pc2ulFvNb6kk1Fb7lA4JBaGxEwEAiAeaC+0mliH+NQA== X-Received: by 2002:a5d:6e03:: with SMTP id h3mr17002222wrz.138.1621964769274; Tue, 25 May 2021 10:46:09 -0700 (PDT) Original-Received: from krug (a79-169-51-55.cpe.netcabo.pt. [79.169.51.55]) by smtp.gmail.com with ESMTPSA id q27sm16897258wrz.79.2021.05.25.10.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 10:46:08 -0700 (PDT) In-Reply-To: <87tumq92pe.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 25 May 2021 19:59:25 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=joaotavora@gmail.com; helo=mail-wr1-x432.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:269876 Archived-At: Juri Linkov writes: > As I said a month ago, while affixation-function was an improvement over > annotation-function, it's still not perfect. I welcome a better API func= tion, > but OTOH adding prefix/suffix text properties on the annotation strings > is not an improvement. Sure it's not beautiful, but it's an improvement to annotation-function. If affixation-function were a function of a single completion, it would be fine. For a hint at a good design, look at the language server protocol. It returns a large list of completions, and then you can "resolve" a completion to get many more of its properties. So resolution-function is an option. > Following such pattern, affixation-function could return more fields > (e.g. when completions-format is customized to the value 'multi-column') > in the same format as tabulated-list (and an indication in which column > there are completion candidates) for the frontend to display in > columns. If you prefer to see it that way, I have no objection, though I prefer to think of backend and frontend simply (i.e. your C doesn't match anything here very accurately). Jo=C3=A3o