From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#48545: 28.0.50; `icomplete-vertical-mode` does not support the `group-function` Date: Sat, 21 Aug 2021 01:24:47 +0100 Message-ID: <87lf4vr6eo.fsf@gmail.com> References: <10d162d5-2cd6-dd87-3289-a0187dfbf51f@daniel-mendler.de> <871r6sw9iz.fsf@gmail.com> <87a6lfnld0.fsf@gmail.com> <87eearulft.fsf@gmail.com> <871r6pr8bk.fsf@gmail.com> <54e4e409-5525-b796-9e9c-582735995cc1@yandex.ru> <87r1epp6h9.fsf@gmail.com> <266d8a54-90de-e904-f548-8ec29e52923c@yandex.ru> 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="33552"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Daniel Mendler , 48545@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 21 02:26:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mHEpu-0008X4-GP for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Aug 2021 02:26:10 +0200 Original-Received: from localhost ([::1]:39946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHEps-000619-KY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Aug 2021 20:26:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHEpm-00060z-Nb for bug-gnu-emacs@gnu.org; Fri, 20 Aug 2021 20:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHEpm-0005H1-Fw for bug-gnu-emacs@gnu.org; Fri, 20 Aug 2021 20:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHEpm-0005Y1-8u for bug-gnu-emacs@gnu.org; Fri, 20 Aug 2021 20:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Aug 2021 00:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48545 X-GNU-PR-Package: emacs Original-Received: via spool by 48545-submit@debbugs.gnu.org id=B48545.162950550321254 (code B ref 48545); Sat, 21 Aug 2021 00:26:02 +0000 Original-Received: (at 48545) by debbugs.gnu.org; 21 Aug 2021 00:25:03 +0000 Original-Received: from localhost ([127.0.0.1]:35692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHEoo-0005Wk-Ki for submit@debbugs.gnu.org; Fri, 20 Aug 2021 20:25:02 -0400 Original-Received: from mail-wr1-f48.google.com ([209.85.221.48]:44699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHEoj-0005W0-Tk for 48545@debbugs.gnu.org; Fri, 20 Aug 2021 20:25:01 -0400 Original-Received: by mail-wr1-f48.google.com with SMTP id x12so16428192wrr.11 for <48545@debbugs.gnu.org>; Fri, 20 Aug 2021 17:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=4SNt4MUIHswcqheP2otxNJL7AoJ4z9p4dj83UWSOVuk=; b=eGF55jL1lUF1uAb1Yyp1ZVn/Orks2dYzwrw9SN3gFBN8iUGlBCl900HjD6zAI32rHN lh2MFgj0y/z88OhT+iuPQbD38/L5QRpMaXQk8zHrKZnYhK/qH+oBPxRMBI3GI8CE4Tct VzevFKfPLWjDf3n1MhfVTRIuh7Wtx6XP7GsHkRVzyvSEkk3ZFG1t+WboAbfhKIUjZn7i kdPSnv9KpzgHQYa452NVbNMfIPb9K9JVeCxuGhhpu4H+1AFymANCMB7urZ2LQclH6BLr m9MxLP5eyBTqfR1kEUPRFgJ2t5QDIF3Aa4z+kLxAdQozRtEZ1msr7AcakWohaLRljXzN YYxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=4SNt4MUIHswcqheP2otxNJL7AoJ4z9p4dj83UWSOVuk=; b=nspVRd4qLrEzOMIXnLhVmERS6XxET7EzQagMQYnOKQeXr6hFAUFtd3SdX0OQBGYl8p OithFULruGAggtJS/Gh7RvDwJ5wM0T/21GZPlACAlDvz91bddDlIkLTMcOI5GP97D7EP b+sM77OeeSG0G/nP9L/cAv0rFQJq2SKaReIJ/BsgMNDSe8ShHluVWp5HLBfvozSSuOrI InkveP6ETE7rVu/hglwOWtFygUiLERI1qSpCFI706GxAcwkbX26xPY9mxozERW00Hwru HiwaQxChCDaEDD7Q5MLJtJCmyBXSSh7kaUz/4EC848WOL8MZt9QP44IVSoeTLu6AIB8d HxWg== X-Gm-Message-State: AOAM531N9Gz2IxvQWgsmIqKRnBjBDSMhdVxveCzY34T+0yRHLuy//db7 U/xpIuZ15sQlZgSUVSuG87qLErtXh/o= X-Google-Smtp-Source: ABdhPJwLorS8nDqthLPrbR/XVy1bJhCftqZobBvu636qbtELielkwPaHLnjhiYpucV3vCoofeKlg+w== X-Received: by 2002:adf:a29c:: with SMTP id s28mr1287171wra.318.1629505491775; Fri, 20 Aug 2021 17:24:51 -0700 (PDT) Original-Received: from krug (a94-133-228-229.cpe.netcabo.pt. [94.133.228.229]) by smtp.gmail.com with ESMTPSA id f17sm6283497wmq.17.2021.08.20.17.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Aug 2021 17:24:51 -0700 (PDT) In-Reply-To: (Dmitry Gutov's message of "Fri, 20 Aug 2021 02:51:15 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:212309 Archived-At: Dmitry Gutov writes: > On 20.08.2021 02:39, Jo=C3=A3o T=C3=A1vora wrote: > icomplete's grouping behavior should probably match the default UI's > behavior in that regard. Or, if people actually don't like it, see it > changed in both places. Because it was fairly easy to, i tested the default UI with grouping and C-x 8 RET. It seems that it doesn't use completion-all-sorted-completions, and hence doesn't do the normal alphabetical+length+recency sorting (let's call it a+l+r from now on) at all by default. It does do the re-grouping though. And it takes a long time, about 3-4 seconds (when one presses TAB at the prompt) to see the first page of the completions list. This is versus Icomplete which about a second (or even less if you skip the a+l+r). So whatever the default completion UI does, I don't think Icomplete should imitate it if it means the same slow behaviour. The default UI can do some sorting on top of regrouping if you set yet another variable completions-group-sort, but then it will be only alphabetical, not a+l+r. No idea why. However, I've also discovered that my previous assumption that C-x 8 RET returns naturally grouped chars is also wrong. They are _not_ naturally grouped. Jo=C3=A3o