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: [PATCH] `completing-read`: Add `group-function` support to completion metadata (REVISED PATCH) Date: Thu, 29 Apr 2021 20:09:41 +0300 Message-ID: <9de0a112-9e68-d645-451e-084a3c7c6725@yandex.ru> References: <0bbdeece-90d5-160c-07ec-2ad8edbf9872@daniel-mendler.de> <87czudm7bv.fsf@mail.linkov.net> 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="8831"; 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: Gregory Heytings , Stefan Monnier , "emacs-devel@gnu.org" To: Juri Linkov , Daniel Mendler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 29 19:13:48 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 1lcAEV-0002CK-W0 for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Apr 2021 19:13:47 +0200 Original-Received: from localhost ([::1]:40908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcAEU-0000l9-WF for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Apr 2021 13:13:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcAAf-0007Vn-EF for emacs-devel@gnu.org; Thu, 29 Apr 2021 13:09:49 -0400 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:55200) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcAAc-0007qi-Hg for emacs-devel@gnu.org; Thu, 29 Apr 2021 13:09:48 -0400 Original-Received: by mail-wm1-x32c.google.com with SMTP id k128so36294134wmk.4 for ; Thu, 29 Apr 2021 10:09:46 -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=LBVAokXInim68542Z5zOLpHRly+P01x2KSSzQOdapwA=; b=USMACls1HuQPjvuU51xBilt/Gu8+r7pTB3/65TXiqe/LswhV41NfJEQdbuolJITfMf i9ub7TIBo1EtZE6gzQCdodbZvilGtOlvtMQ5n6YIIRI5R0BPVk3dd9td4px5djNQ75Ok WnVA5hkqr65lows8tYp/svlhBlX8t7EVi0JFZS2dHSkLGsm+fpEG1TJNG8xuiG4ofh7U 7tATlkU7qK2Jiz0TBmFCWtOMimAWe0PP3Z7WN4HI8iXIuTXdMJKyEIsIDQEPdNabxG41 BhFIBd6yEc/kPLRjnfDV5T0Rr7XqCcyncy8JxoC+opvwPVPM1A+B3CRwhUtOypjXo1BC S8sA== 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=LBVAokXInim68542Z5zOLpHRly+P01x2KSSzQOdapwA=; b=qTQ+EoQwWpjNir8Tgv/LiDL/UsUE3Hl/WVXD/fd3IWfqOO6GcggBvrHU3mXfuR+qH0 EWfZquJ3Y2eVKY601gfVX6tDWfrQ9mCzBcImo3bAvff5+QPSaLIGoqNIHlJPARJ1zPIL e6jp18IlAeKZ+dKkDOZMcpXaERCyUbZOlUI0ehk28RzSH4e2KT2JmP/TarSWa6YjUsVy KALo9oGOyPynVWpmdy1xkjA4M/MR8dEHx6nttuYLH40UbBhKbV/vnzPkRL+4YuRrwJPp 2tacsvLJZLz7yu8OX6I43hTZcH7ya4E5CRWCZdA0CfgRc+vXQt28NzEBy0U5Vu+eiy8Z jBkA== X-Gm-Message-State: AOAM530bfoD+13vGcl+fVIPxfzt8bXOnSv2WLesX5xlTV+tQ44G3/PAT D+iYlXd9q6B7ml1aqPAYNPc= X-Google-Smtp-Source: ABdhPJxEDDeOE/pn102WdT2Li8+btwR2oWhnO3RPzHS9C+DDt/h2zYT8AkSm1Ztd2ewsw8yj1jtRiw== X-Received: by 2002:a1c:5945:: with SMTP id n66mr1180294wmb.139.1619716185034; Thu, 29 Apr 2021 10:09:45 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id s18sm2254910wro.95.2021.04.29.10.09.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Apr 2021 10:09:43 -0700 (PDT) In-Reply-To: <87czudm7bv.fsf@mail.linkov.net> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=raaahh@gmail.com; helo=mail-wm1-x32c.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:268622 Archived-At: On 29.04.2021 19:20, Juri Linkov wrote: > OTOH, it highlighted the shortcomings of amalgamating both > grouping and transforming in the same function: > mule--ucs-names-group doesn't need to provide transformation, > because the same affixation-function is used for both > grouping and non-grouping completions. If affixation-function didn't return a three-element list (and instead only returned some focused information pertaining to a single value), you wouldn't have this problem.