From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#61532: 30.0.50; [PATCH]: Make completions without sortText fall to back of the list Date: Tue, 21 Feb 2023 15:08:05 +0100 Message-ID: <87r0ujf6wq.fsf@gmail.com> References: <87ttzn6kxb.fsf@thornhill.no> <875yby62j9.fsf@thornhill.no> <348D7924-284D-4D14-882E-02C8CAD7A925@thornhill.no> <87wn4bfmsr.fsf@gmail.com> 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="5271"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61532@debbugs.gnu.org, Theodor Thornhill , Stefan Monnier 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 Feb 21 15:09:29 2023 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 1pUTKi-00017q-FQ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Feb 2023 15:09:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUTKK-0004lJ-Fr; Tue, 21 Feb 2023 09:09:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUTKJ-0004kv-G0 for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 09:09:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUTKJ-0006I7-7M for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 09:09:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUTKI-0000Vz-I3 for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 09:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Feb 2023 14:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61532 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 61532-submit@debbugs.gnu.org id=B61532.16769884981900 (code B ref 61532); Tue, 21 Feb 2023 14:09:02 +0000 Original-Received: (at 61532) by debbugs.gnu.org; 21 Feb 2023 14:08:18 +0000 Original-Received: from localhost ([127.0.0.1]:55085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUTJa-0000UZ-0p for submit@debbugs.gnu.org; Tue, 21 Feb 2023 09:08:18 -0500 Original-Received: from mail-ed1-f51.google.com ([209.85.208.51]:40603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUTJW-0000UN-Uh for 61532@debbugs.gnu.org; Tue, 21 Feb 2023 09:08:16 -0500 Original-Received: by mail-ed1-f51.google.com with SMTP id g1so17436927edz.7 for <61532@debbugs.gnu.org>; Tue, 21 Feb 2023 06:08:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=8ajVDL34Yg1nO+d1GVYmphqT0GXEm/cyeKFHga0mUrA=; b=EQgZ9hr4ZFbFs8R/N3sEDCDVVYA55ueqayD1uoWGGjKY2OQTt8a7fvp5UZw67+zYup D9XNmfO2HTE0TZR/YbIhdkkM/yVvKlK9B4TWRYRpy3JPhB0lABScxTO7MlYZe7TAGPR7 CNpRwDlxbek5RzkGhjT0HsDri18K39+j8MYas0fp5hF3x6i8CzxeEZm8pV84SoM7LPBo CblT7TQp6t5s7vdKwfacfWsVN5T9x8OjXMkGXYMJMDYU/GbGFH3IzqQ88OD/Ss1WgyIv iX9s7dSQd8v38GLPYiCs6Qfr/dZge+n2KkRBqqPtZBosSBUoXkT93M7aeijUjLTh5OoO UpDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8ajVDL34Yg1nO+d1GVYmphqT0GXEm/cyeKFHga0mUrA=; b=XsdvzTWz8a73dMsaGRpdSpkyWkjavJf1CkJbpkdd80rF9FGsxrDyqwgEgG0d7S4yZM AqFsFK+epa7GHkT89hZGo8KTcwlYhG9BKCKpJpua4IZOU11ku65adQRsUSBKCvM2OTpG aOWFj6uQUisUwvd9Xvh2MmbE/0Mi3oLRoFbX8hriYBzIxM18u3IUJLHLs07re8YrRHFw uMTIaUDMZt/nfoBgSFNQa8or2wAwFfhLcEsJYWsrUoJIQ2Zbv+aNYHK1akLGc8dOVVc7 iRZJBjoEpms89mhQInsuGueb6wwvsRFwPO+7eJSXlCLVFCsmPPqib4AaEN6jfeLc7h3S vDmg== X-Gm-Message-State: AO0yUKXk5B6PMfAM+/D63Fqi9A3kH/ksVBph87aO+86VEym32Z3ogdQX vuxophOiUjqsS8VbbX3XoEQaYRv+KkM= X-Google-Smtp-Source: AK7set+9xweNWhJotweF2vELrHwMiQ+PNivMsre5e9QpaaCY7QN1CxAwEVndAhJh+jYfTnSJ4ezWPA== X-Received: by 2002:a17:906:2993:b0:881:23a:aba5 with SMTP id x19-20020a170906299300b00881023aaba5mr11217552eje.11.1676988488387; Tue, 21 Feb 2023 06:08:08 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::6fd0]) by smtp.gmail.com with ESMTPSA id lx25-20020a170906af1900b008d68d018153sm2291182ejb.23.2023.02.21.06.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 06:08:07 -0800 (PST) In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Tue, 21 Feb 2023 12:47:55 +0000") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256271 Archived-At: On Tue, 21 Feb 2023 at 12:47, Jo=C3=A3o T=C3=A1vora wrote: > On Tue, Feb 21, 2023 at 8:24 AM Augusto Stoffel wro= te: >> >> On Sun, 19 Feb 2023 at 18:19, Jo=C3=A3o T=C3=A1vora wrote: >> >> > The 'flex' completion style isn't really doing (or at shouldn't be doi= ng) >> > what it does normally. Its purpose in Eglot is only to allow for flex-= style >> > fontification of the pattern to happen. Nothing more, and that includes >> > no sorting. >> >> What happens with the =E2=80=9Cglorified TAGS=E2=80=9D kind of servers t= hat do no >> filtering on their side? Apparently those exists, according to the >> Github discussion I linked in the other message. > > I think these servers do some kind of filtering. As "glorified TAGS" > servers they might not be aware of the local context but I presume > they would still _not_ provide the 'fooey' completion if point is > after the characters 'bar'. As to whether they also provide 'bias-rate' > in that case (a so-called flex-match) or just 'barbaz' (a prefix match), > it's completely up to them. > > Regardless, there is nothing flex can or should do here, except -- > as I mentioned -- guessing how the pattern should be painted on > the completions. I think (based on pure guess) that the glorified TAGS do exactly the opposite (which is also far more useful): if this is context to enter a {color,function,animal}, then return all known colors, function or animals respectively (no filtering). Just checking, because you seem to say the opposite: does Eglot work correctly in that situation?