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: Simplification of `affixation-function` Date: Sun, 25 Apr 2021 20:58:59 +0300 Message-ID: References: <87y2d777r2.fsf@mail.linkov.net> <35e2e508-cd0a-b921-af96-9c12da92faf3@yandex.ru> <126afe1f-8ac5-69fc-f6af-a586bc354d03@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="8371"; 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 Cc: emacs-devel@gnu.org To: Daniel Mendler , Stefan Monnier , Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 25 20:00:06 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 1laj38-00025c-1R for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Apr 2021 20:00:06 +0200 Original-Received: from localhost ([::1]:51038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laj37-0001z6-3t for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Apr 2021 14:00:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laj29-0001YV-2j for emacs-devel@gnu.org; Sun, 25 Apr 2021 13:59:05 -0400 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:51150) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1laj26-00065m-Vp for emacs-devel@gnu.org; Sun, 25 Apr 2021 13:59:04 -0400 Original-Received: by mail-wm1-x330.google.com with SMTP id n84so1541318wma.0 for ; Sun, 25 Apr 2021 10:59:02 -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=jmYmx5dzYN3KiHYFhFphXChEk1KCc6xRbjtwF7D4SFI=; b=JUnMDxEu3JjXugQGtZZAIQxLHsJT8wMSCrD2RqjgnVRPIpfl50dS8Ux1n2IkYnxGlU dOcmd9Jh1nhXcKJ78Y7kho5AilDHQROR0JDqthbz0/djVJHWsVbA8Nt2PZ6xUz2WT9hT ac5qoXF5MUyEU/dn9bGdSG3ENmV2nP/6TeorWzR5kHPy4k3MFvbtorVPpyPut9dU41aT 5dGVcVuwl4fLuTj1a3PpbQ6U5uIMecTZIegiICfLQL1CBh5WHdXs6SJee5DEzWLU3jxq 8ZtvMgTxXRISyaSx6C6WC69cnEJovuuMWc/ffWrTG7m9aOjLgQ4otjGDWdYbW+cAGXfP MezA== 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=jmYmx5dzYN3KiHYFhFphXChEk1KCc6xRbjtwF7D4SFI=; b=Lmt/1Tsub8t+Ztv4b33fD/6pfpAQeH2ZKZ/Lz2N6tYqcGDFbST2/4Ii2uvJEPEQeb4 z08vLrgZA6CVTBAIUgGeIYuLCMzzgAwl2D+yC8X79jUfPlVX8+WUz/KnE/OtODxkzQ7t tfrSZ66YeA5H6dM4V2dVk0ahsZh33pdbdX7Zy9yKk46b/lTWdwo3Mb1YuPZMtSkMceBW eo8xNzLFOvDE0kUSBhQ0SgSJbZeyvNP3YqElq4WfI5OitDnpdZ41DFtFcqt32W6Qbiza ayvLsdRPC4vTRCsvovE6RjAbHdJzKAgrZLUdYjZyu+DU6TdlyeRcm02lNppjd6aV8NMI vD5g== X-Gm-Message-State: AOAM531Kcbc0tn7r5A4sNjRZDypXdJu0xJeBQjcr7PKJK7VqouEr6BT/ zmBwC55kTy0ldannaWrN5OCLEDsO6EU= X-Google-Smtp-Source: ABdhPJyhIBqJEvZ6WwxokrOpH7Y0bQXJQz6L2cES72kOGAHXVHLaO3T8DmSSSBJRwKIiqzK4fg1s2Q== X-Received: by 2002:a05:600c:3548:: with SMTP id i8mr17018716wmq.110.1619373541482; Sun, 25 Apr 2021 10:59:01 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id l14sm13187720wmq.4.2021.04.25.10.59.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 25 Apr 2021 10:59:01 -0700 (PDT) In-Reply-To: <126afe1f-8ac5-69fc-f6af-a586bc354d03@daniel-mendler.de> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=raaahh@gmail.com; helo=mail-wm1-x330.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.249, 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:268404 Archived-At: On 25.04.2021 01:56, Daniel Mendler wrote: > I support affixation-functions in my small Corfu package, which shows > overlay popups like Company. However the result will not be good if the > affixation-functions return long suffix strings and are written with the > *Completions* buffer in mind. I guess my problem with it is, with the apparent end goal of flexibility, it ends up targeting only the default completion UI, and the more an alternative UI is different from it, the worse the result can look. And without semantic information, it fails to take advantage of the additional features the alternative UIs might provide.