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: [External] : Re: Improvement proposals for `completing-read' Date: Thu, 8 Apr 2021 21:22:57 +0300 Message-ID: <6f399f31-663f-21c6-c563-77770048a017@yandex.ru> References: <0342c2d5-02dd-ad9e-5b8e-dfe52f6469c6@daniel-mendler.de> <264397e8-5a03-9eff-436c-639d76514775@daniel-mendler.de> <82c86e8f-06e7-a7ed-56c5-5f6766df591b@daniel-mendler.de> 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="20238"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 To: Drew Adams , Daniel Mendler , "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 08 20:24:01 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 1lUZJx-00058z-8h for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Apr 2021 20:24:01 +0200 Original-Received: from localhost ([::1]:41538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUZJw-0004fa-AP for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Apr 2021 14:24:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUZJ1-0003yH-Ux for emacs-devel@gnu.org; Thu, 08 Apr 2021 14:23:04 -0400 Original-Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:34641) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUZJ0-0004Kb-13 for emacs-devel@gnu.org; Thu, 08 Apr 2021 14:23:03 -0400 Original-Received: by mail-wr1-x42e.google.com with SMTP id b9so3152643wrs.1 for ; Thu, 08 Apr 2021 11:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=AZNsaG1mf/CYDhToPOFvGuY2JVos7xZ6/DqXG//iMn8=; b=ldYb8BLxuMhqozVKlcxwSl+j+IkXhgeqipaw5yRK0zRGpMm7n/hUmOaLxhfx1L7ywL +/L/72EWC4X19V4fE8qUMQmGzdLKBEQczPX50cRx9z6pCFXu4ELoEllVKjqkCi2cpdbz 2TrBSoT3qcofcXbERYUL9u4+gk1IIF/O29jvqG8ynwX7Nkb4SPjned9KayKkNOJgMqKj 9FxvhqYrYTPlTLh1XvnW6cv0vPI+dHn7/GamzN4siwQGbrOdHuBpBRUkpHsMige0TLFx tYG+t4+gHXkxzFPpE2oSzzNtVeQY/AXQ38IQO4uyBLhqd0AhgKF1G15x+NYojhMdvkUZ hn/Q== 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:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AZNsaG1mf/CYDhToPOFvGuY2JVos7xZ6/DqXG//iMn8=; b=DUBoD/d8pMXTpc8N4aIzYutjemwIHLcRb9voyaAsjocByPzeOQbF4GPpTtA2dW0mZo ruK2sfwf2P967zjYdRGuVoLqVmRiCaNLE+SQ4JRUPQYjL1kDM2I+MHX0YeoaIX8gXzGc EICz7cACuYhY1+FFzrfa9Kn5oxzUQ0d+nbO1QI19aTMmFuRsv7uOVCixB1kq94L9sTEL qJ9zjeSct4gRXkortWC8t0yZW8hy4C71BH7IEsEwsQe3QmY7gPsQuZ1XX9Wtguv7ym8F ZrFUmuWTkW5fqwO6Z+ygD1A8Z8I86VWjAtK+jgt8/Pr+ep46CNJobKQK+lwGDrkdoNm8 0/yw== X-Gm-Message-State: AOAM53021yJO4iaMPr7DtSh+N/M3vKtUGX6S3baO49bH9IngPFQGL04v BF4n9nnv2xdRg/qSnkmSgH8QKHbJixI= X-Google-Smtp-Source: ABdhPJyKRH7PxElNW0w/0TR2hRdBE6RFDsg7hLwdIXkC3MK2rRGbQ9zQxZaLBPBRlzJq0u5otQ3dYQ== X-Received: by 2002:a5d:5291:: with SMTP id c17mr13803331wrv.110.1617906179930; Thu, 08 Apr 2021 11:22:59 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id o2sm139763wry.4.2021.04.08.11.22.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Apr 2021 11:22:59 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=raaahh@gmail.com; helo=mail-wr1-x42e.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.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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:267648 Archived-At: On 08.04.2021 20:22, Drew Adams wrote: >> But using it only for >> disambiguation should be okay. Then one would only compute the >> annotation when doing the actual completion? > No, annotations should not be used as the, or even as > a, means of disambiguating candidates. That would be > an ugly and limiting hack. > > Annotations are user-visible. They have their own > use cases. Making them take on the role of > disambiguating candidates - and especially making > them be_the_ means of disambiguating - would be > misguided, IMO. That's exactly why they are a good means of disambiguating completions: completions with different annotations have something for the user to distinguish them with. I'm not sure about annotation auto-generation, though.