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: complexity in minibuffer Date: Thu, 3 Jun 2021 10:04:34 +0100 Message-ID: References: <22880197-6d05-c821-2c58-328ed3cfc02e@daniel-mendler.de> <87eedruui3.fsf@gmail.com> <8dd915fe-fe67-2a45-67ff-8aaa3e9b9aca@daniel-mendler.de> <878s3zuq47.fsf@gmail.com> <09f2a253-84ba-5cfd-552e-0b89109864a5@daniel-mendler.de> <875yyxaoxp.fsf@gmail.com> <871r9laj6a.fsf@gmail.com> <1b73a130-204c-76fb-2b60-02b814aee0f0@daniel-mendler.de> <87r1hl8xom.fsf@gmail.com> <878s3t8tzw.fsf@gmail.com> <3c68bd00-70ca-fa18-f9b8-cd03029f9294@daniel-mendler.de> <8735u18lsd.fsf@gmail.com> <8e33bbfe-0015-b85c-b57c-ba448f2e6215@yandex.ru> <3d519805-f602-fa52-ec69-0506bb6cb568@yandex.ru> <87czt3ga8g.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="1959"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Daniel Mendler , "emacs-devel@gnu.org" , Stefan Monnier , Dmitry Gutov To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 03 11:11:02 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 1lojNW-0000Kb-5d for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Jun 2021 11:11:02 +0200 Original-Received: from localhost ([::1]:54826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lojNV-0000ou-4l for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Jun 2021 05:11:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lojHV-0006vT-3O for emacs-devel@gnu.org; Thu, 03 Jun 2021 05:04:50 -0400 Original-Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:41935) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lojHT-0000xT-Gv for emacs-devel@gnu.org; Thu, 03 Jun 2021 05:04:48 -0400 Original-Received: by mail-pl1-x62d.google.com with SMTP id e8so1711122plh.8 for ; Thu, 03 Jun 2021 02:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hujiuz8jJOcERjY9oaiWy494GUowrkVNM8uU5OEHneE=; b=ko2IfpGmBEVMv4UXyGd6EWrzZNJM1W5i+cSyG4NqRkKs1sud7CCSCOAlfBhBuva/Yd V23oqQUt6ZsZgA8P19mdcVUWKqYOMk8fEzXbEHJPnzkeAQ3cP7EGNNfyqpBea42/SUAO opadqXh/gOxyeytMrzVYbRZ0tl9HfvzrxNrBabNYPsWwZO93tYuJITKGm9cfvWGdUMBm Wn3lQaT7rYUlBE6krc6041xrzcuLS2f67pI6sfkSCd6iR5HKGKHaxC8kJMxVap/y9aXm Yk8jAh3EAemHD5Q4nqYPlxuaMSlFjpBBDuqbIHcJVzUuN2tYCl52f+DJSLC02/5tWJc8 ldrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hujiuz8jJOcERjY9oaiWy494GUowrkVNM8uU5OEHneE=; b=XpibErcMHQyIzXOXHjyroG2tW/0BWA6yKjdRUZBcNdmx1j2K6hEjvjPU+QEVydRKnI qnsdrdZQqkue5m0o0y2Dh145IOsP+tAk4bwqkYJ9q4JTMUdHmdxB8WmAHZ/TvueJ0ouL lGIKJqLA/w1346GcAni1r+eV06fw31Kfdkul5QncA7CRKyxa8H5pLe6I+lyAGh56XYKs gAqkB6coRjBS/SV6tJMvQAHV0ZV49dFJ6nlMC/Q3Wlm4CTbKOXY2JSSw8V22ti21LnE2 nBbJJ+e4kEwsWIT/jk0BoNTfGt7bfIMOb8GaZeWnMEs6w3N4k0n3nOPp961g3TI4ehue 73qA== X-Gm-Message-State: AOAM532SMQMXsEEAfl/CzArH5o8T3aJf999YF7ea3lT1KYEAVOtPpEKQ x+IDVsl7KS5ngwbFWpx3LELaSQdfPLsSmZfwblA= X-Google-Smtp-Source: ABdhPJyDrorc/NuZKEBfnkHuh7E+M333sWL3PNejjvvmfsQn9aV8Q4OaaSQKw0QNMfWxnG7n/NTNtIckU2Drd02iwks= X-Received: by 2002:a17:902:e542:b029:10c:7879:3f60 with SMTP id n2-20020a170902e542b029010c78793f60mr5466292plf.52.1622711086009; Thu, 03 Jun 2021 02:04:46 -0700 (PDT) In-Reply-To: <87czt3ga8g.fsf@mail.linkov.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=joaotavora@gmail.com; helo=mail-pl1-x62d.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:270341 Archived-At: On Wed, Jun 2, 2021 at 11:56 PM Juri Linkov wrote: > > I only added the third element to the list of '(candidate prefix suffix)'= . OK Thanks. Indeed I didn't dig down. So the problem was there before. > So either turning it into a struct, or adding text properties would be fi= ne. > But there is no room to extend annotation-function since as can be seen > in your branch annotation-function with text properties would return such > self-referencing ugliness: > > (propertize annotation 'suffix annotation) It's not pretty, but not harmful either. But you can ignore it since it's pretty much settled we're going past annotation-function anyway. > Or do you intend resolution-function to do the same but return > a candidate string with text properties? Do you mean the difference between having resolution-function(cand field) return the value for field or or attach the value for field to cand. Both can work, but I think I prefer the first. Jo=C3=A3o --=20 Jo=C3=A3o T=C3=A1vora