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.bugs Subject: bug#45260: 28.0.50; Maybe flex should only sort when there is no sorting metadata? Date: Tue, 28 Sep 2021 02:40:07 +0300 Message-ID: References: <86a6uehpod.fsf@matem.unam.mx> <87v944wdxu.fsf@gmail.com> <847fabdb-8b06-dd0f-b2ad-6c71d2f5c3cd@yandex.ru> <87v944uiv5.fsf@gmail.com> 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="19267"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cc: 45260@debbugs.gnu.org, Omar =?UTF-8?Q?Antol=C3=ADn?= Camarena To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 28 01:44:21 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 1mV0IH-0004rJ-AZ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Sep 2021 01:44:21 +0200 Original-Received: from localhost ([::1]:57974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mV0IG-00020w-AZ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 19:44:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mV0F8-0007VA-1g for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 19:41:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59853) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mV0F3-0005VJ-UN for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 19:41:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mV0F3-0004N9-Rf for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 19:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Sep 2021 23:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45260 X-GNU-PR-Package: emacs Original-Received: via spool by 45260-submit@debbugs.gnu.org id=B45260.163278601716746 (code B ref 45260); Mon, 27 Sep 2021 23:41:01 +0000 Original-Received: (at 45260) by debbugs.gnu.org; 27 Sep 2021 23:40:17 +0000 Original-Received: from localhost ([127.0.0.1]:43166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mV0EK-0004M2-Tr for submit@debbugs.gnu.org; Mon, 27 Sep 2021 19:40:17 -0400 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:42862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mV0EJ-0004Lm-UG for 45260@debbugs.gnu.org; Mon, 27 Sep 2021 19:40:16 -0400 Original-Received: by mail-wr1-f45.google.com with SMTP id v17so11329330wrv.9 for <45260@debbugs.gnu.org>; Mon, 27 Sep 2021 16:40:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=z2AB7XKL4/fX4dRVw1J3P+ZNjrvOZDT+d5krJR0xnkI=; b=fUXXxemexV2kcO3Xt6BQgVX94HpGLQ/dfTvm9Zrq30jSaTFL5nQfvNW8dA3g9WQelv aARmrQ6Z11FDF29oUSUeJk9Ys85vANy7jTGg5PMUJYDTfiA0v2IPSbCzNsWMkaZpaIjq nzF0EAW/lwU5gz9Koq7tCYbqHXLHRfFygsSjSv/brYD37FUUThMIfMwCbwFyMCUHSVIA lh/MThyPX5OZ/xzbdbe0FMsrDkdOuvCI1PPefycIoDMpOkfs92Lj0oDJ3Aeer/pdFYiM 8mmRpkbb2zYlEGXvnW9v1uxtw9+MLaBn7zDJjuk3WyosDKOjCmOkuQ+ykNqCy4u13ILL +zjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=z2AB7XKL4/fX4dRVw1J3P+ZNjrvOZDT+d5krJR0xnkI=; b=dk9sIfvpJMLCULgwxNbfMFSoPKWkfEfTQCmRjKnY0VRJItlef+wFYqPqSud1S5Xbia BCh/agZ2amFTr1SAqc8M52FxN2BsDY1eZzVizI5c8h8iRJFjeFF7IO2nQJm827Z9R3i3 YY6fRFstYogKk0FUEc5LnbWMDh3mIwFHw7ZpTxm3mg7xO6qsMtNiTDZND49l22XGnD+9 BwxQK8Ql2WqsaDYXQVbNgPMRUN3FRU/pNZzTvyXHRNhGG2ZzqYN5U+QoNivakaIoHEUC aYS91mHZJYk3KW9NE+eiRX9yBVDNpdYbMQKp86Q5lyP5+R53zocDt1m0RXkQQkygsScO HzfQ== X-Gm-Message-State: AOAM531PHfaCAuae4OzI1b2DR+85nt69NLo5lfTABgEnyRjNOk9RhUic z1UrTNFB+MDV5/Llf5AXjSk= X-Google-Smtp-Source: ABdhPJyrKg3Tu7gmtvFgeXoaVO70y3IwvmgfA72/Yr+eLYr5G48mGQHoWZHp52uPOiyEFIOZ8e2kKw== X-Received: by 2002:adf:dd8e:: with SMTP id x14mr3008073wrl.260.1632786010073; Mon, 27 Sep 2021 16:40:10 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id g1sm1360488wmk.2.2021.09.27.16.40.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Sep 2021 16:40:09 -0700 (PDT) In-Reply-To: Content-Language: en-US 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:215717 Archived-At: On 28.09.2021 02:25, João Távora wrote: > On Tue, Sep 28, 2021 at 12:12 AM Dmitry Gutov wrote: > >> Please go ahead and fix your own code in any way you like. >> >> Here's an example of user confusion that the current behavior invokes: >> >> https://github.com/company-mode/company-mode/discussions/1223#discussioncomment-1387929 > > That's a very large discussion with lots of company-mode-specific details. > Can you post an example of Emacs -Q where Emacs does something that > would you would not like it to do? That's a bare minimum for discussion > to resume here. It's an example of a user trying to write a completion table (to be consumed by company-capf, as they usually are) with sorting logic and tripping over the flex style overriding it. > If you just wish to haphazardly shoot some issue reference to vaguely > blame my work for your company-mode troubles or frustration, I think > that's a very petty thing to do. If not, please collaborate. The problem is more or less understood: flex overriding the sorting logic even if it's defined in the table. There is no point in me retelling the discussion. It is itself a piece of evidence for the problem existing. Maybe not categorical evidence, but evidence nevertheless. You should read it (the last few messages will suffice). > I think I explained that flex has certain semantics regarding sorting. > Yes, those are the semantics that I like when I created it. > I think I've also explained that if you don't like those semantics you > can utilize functions to create a new completion style with semantics > that you like. I even offered to help you do that. But then again, > I have no idea what you are bringing up in that link. flex is popular enough. People use it. I end up having to diagnose people's problems. Having many similar-but-slightly-different styles available is unlikely to reduce my support burdens.