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#61532: 30.0.50; [PATCH]: Make completions without sortText fall to back of the list Date: Tue, 21 Feb 2023 14:28:01 +0000 Message-ID: References: <87ttzn6kxb.fsf@thornhill.no> <875yby62j9.fsf@thornhill.no> <348D7924-284D-4D14-882E-02C8CAD7A925@thornhill.no> <87wn4bfmsr.fsf@gmail.com> <87r0ujf6wq.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="27314"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61532@debbugs.gnu.org, Theodor Thornhill , Stefan Monnier To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 21 15:29:14 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 1pUTdq-0006y0-37 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Feb 2023 15:29:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUTdg-0004UM-8Y; Tue, 21 Feb 2023 09:29: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 1pUTdf-0004SR-3V for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 09:29: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 1pUTde-0001ya-Pr for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 09:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUTde-00013r-EC for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2023 09:29:02 -0500 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: Tue, 21 Feb 2023 14:29: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.16769897014028 (code B ref 61532); Tue, 21 Feb 2023 14:29:02 +0000 Original-Received: (at 61532) by debbugs.gnu.org; 21 Feb 2023 14:28:21 +0000 Original-Received: from localhost ([127.0.0.1]:55111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUTcy-00012t-O2 for submit@debbugs.gnu.org; Tue, 21 Feb 2023 09:28:20 -0500 Original-Received: from mail-oi1-f175.google.com ([209.85.167.175]:46952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUTcw-00012e-Hr for 61532@debbugs.gnu.org; Tue, 21 Feb 2023 09:28:19 -0500 Original-Received: by mail-oi1-f175.google.com with SMTP id w7so4500379oik.13 for <61532@debbugs.gnu.org>; Tue, 21 Feb 2023 06:28:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cZCEYCQdXzasWTiepCWQKtcnErO9ow/5h51rQkMlP2A=; b=d7oyu8UMv09VNznJ/qfLTnZpO+zjnm48YVmp8oZDOCXPXVhG744dHS5KlBWeelMBwF 8KQAO55RRSsrjmCJnCPensJAQ7V558r6Z8mdTPBdYQecHT3ENjjMMswadQoOSI1Xn/zJ i0ee4kvKah+PjQUsnSJ1n85GL5Vlppckm2fhrQnzlNKVcI8otwd7mYNGE1NG1+D7+jmo ydaMjG36H5oqXjX51xX5EfOfiV3uxekeGb4/OKHKHqzQSZ28BNJIYhX4AScp7ZgGj4IL f0G+j/XrKk7MgHDC7Y/+n2N6S7N3yx8Jkazx8JjFAwtyLZsWgfFKTPKjFs/vvh35jiQg jWKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cZCEYCQdXzasWTiepCWQKtcnErO9ow/5h51rQkMlP2A=; b=wx0Ly4hGfM0Q9gJ8PMAQPW1GAq+pLr2LfYatyBOaTFG2pt9eX3z+xf1e0AdeCR92iV b7E5YUjFIbOr2oFYJl4Tyry2m6pvhtuz9ahhDJlSa1QUYpBFMy8TYEGCH3vXRVHldS/a GOy90Yge9zCCP7+NcTB52RuG7mwMyLAABGmokpbWhjDDHKJCvjxGMBKMEPuUhtfhiWYd iOo9AYtY7ruyXaJ73+qSDxAMXAVftZlvdnbf4WxCx7Np4mVymmWq9Do3npx1UGxeU5Yj ovilL4fjPNA+keZUxO5TSDpL96Q/ybzrHKI1hqdGm+uhxmcUqePNUC/dWOGFi2m421Mt oWFw== X-Gm-Message-State: AO0yUKViM4bRcosQa0KsVtBKQrIOCLB41IgCxdp+iV9KjwSndKv6KuHx O291MP3f9AJ4g5+46ZfQY+F65eDKbD5oYU6sPpw= X-Google-Smtp-Source: AK7set9LwTEiZ5s51Mho99f9DeaslRLbJM7jCfwdZqyd2eetiWUkBAo+yDdOBt7OjqxRfXzfUKzNg6SaR7uPcFxIIgk= X-Received: by 2002:a05:6808:128b:b0:37b:9a3:136f with SMTP id a11-20020a056808128b00b0037b09a3136fmr689254oiw.6.1676989692858; Tue, 21 Feb 2023 06:28:12 -0800 (PST) In-Reply-To: <87r0ujf6wq.fsf@gmail.com> 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:256274 Archived-At: On Tue, Feb 21, 2023 at 2:08 PM Augusto Stoffel wrote= : > > 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). We have different understanding of what "glorified TAGS" are. Indeed it's the first time I heard the expression and I was just going on a guess of what it might mean for you. Anyway, for me, TAGS is a global thing: it has no understanding of "context", just an understanding of the literal characters that immediately precede point. Such a server matches these characters to a global list and returns the result. I agree that using context is far better. This is what most servers I know do. They analyse the code and the contexts and provide working completions for those contexts. But I wouldn't call these servers "glorified TAGS. > Just checking, because you seem to say the opposite: does Eglot work > correctly in that situation? I guess it should... But speculation is not very useful. Show me a reproducible example where it doesn't and it'll be more useful. Jo=C3=A3o