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: complexity in minibuffer Date: Wed, 2 Jun 2021 18:29:45 +0300 Message-ID: <45be3e2f-82f6-087c-bfd8-5926a395d198@yandex.ru> References: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18929"; 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: Daniel Mendler , Juri Linkov , "emacs-devel@gnu.org" To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 02 17:31: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 1loSq3-0004m3-Ef for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Jun 2021 17:31:23 +0200 Original-Received: from localhost ([::1]:60548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loSq2-0005AL-HM for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Jun 2021 11:31:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loSoa-0003aT-9P for emacs-devel@gnu.org; Wed, 02 Jun 2021 11:29:52 -0400 Original-Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:38904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loSoY-0006Be-Eb for emacs-devel@gnu.org; Wed, 02 Jun 2021 11:29:51 -0400 Original-Received: by mail-wr1-x430.google.com with SMTP id j14so2744516wrq.5 for ; Wed, 02 Jun 2021 08:29:49 -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=qjApZxYMD8mxPF9HBoxJV3upq+nUKCSRXIYBU8RzR+w=; b=JjEKLS3RP0w8o8hFz5uPuGHhgiW4akxWsTGTDWjGmD6UQCsgrnDiP7HI+0AZOsFi4f J75e3Pwt1I2uM9bi+69wgPoV3CKd1EG1l5cwVK5Pew2enou0esA8gwMoyLI0sYH/Itxm cCNlCc7371BETk71eAukiLtPqesPuaSiqjAJlqfsES1pBfFGLs7KpUBrB9lZneURPjqw wq36UsPkRRNJRG/7vnvLF9HqPITsSBRvpNozV+vnCmdUx4H3SfDbx4KMEdaMFencn/vP ivYxQvH2NORqGnMGcgkRc/uIwc87VYJoUVwLvNDlurlIWKOle6QA6NfBrZR3gc2RPKhd l6sg== 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=qjApZxYMD8mxPF9HBoxJV3upq+nUKCSRXIYBU8RzR+w=; b=Dnobu7gYicx7x14nu/rHcVlim6gYnNgS///XhbUqXqR/pzkG+ichUl+0deYN8o7pus awX5OecGB+Oqr77e67Et7kNzjlToBrBtyKyYbfVOa3quJ4nHBUSQuxD07qZSOsyr1ayi wOebKkCrnsE4JQLyb7Ql/Dary2Ng5hjl4ZrJj4/xpsDh/1jL6pNUHMDNE7Cs91JfVnl/ Xd0cI4rPb4rou/22uHwjUeDpj96TaXtkysjeB/kyTqpwCIUoeWnj1BNng5Ze5u7m7oRs WUiL+ybvFyrXzWULEu74zuW5zjjNUe2QWEaP+4uGG/Xjh06WLJRU3md5UGcsxCDzjiGh b4tw== X-Gm-Message-State: AOAM531nWl8noDbdmR1tA67/jAXlDasTa8VCX0LEiWoI2EeHxPVXf8iF E0fj+YHp1udeZKjo3E45mWo= X-Google-Smtp-Source: ABdhPJzqG7gPIKl3gqUZkMrw2KEZ6TvryTq26aKtPwYmwVD50u5WS+raoaSM77p7/+60AUb6j+QajA== X-Received: by 2002:a5d:504d:: with SMTP id h13mr27759121wrt.133.1622647788060; Wed, 02 Jun 2021 08:29:48 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id p20sm2999917wmq.10.2021.06.02.08.29.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Jun 2021 08:29:47 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=raaahh@gmail.com; helo=mail-wr1-x430.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_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.613, 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:270304 Archived-At: On 02.06.2021 18:20, João Távora wrote: > By that time, you have already traversed the completion list many times. > What's the problem with having the completions themselves contain > all that's needed to render them? In any of those "many times", did you already know which completions will be displayed, and which will not? Some transformations will be more costly than others (even if the current examples are pretty fast), so we shouldn't call them unless we know a given completion will be displayed.