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#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally? Date: Tue, 27 Apr 2021 22:10:44 +0100 Message-ID: References: <871rav4jri.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c96c0305c0fab2ce" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7923"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Augusto Stoffel , 48073@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 27 23:12: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 1lbV06-0001wn-Ce for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 23:12:10 +0200 Original-Received: from localhost ([::1]:36718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbV05-0004V7-2R for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 17:12:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbUzy-0004Up-Tm for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 17:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39513) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbUzy-0002NS-MH for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 17:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lbUzy-0008A1-HE for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 17:12: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: Tue, 27 Apr 2021 21:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48073 X-GNU-PR-Package: emacs Original-Received: via spool by 48073-submit@debbugs.gnu.org id=B48073.161955786431300 (code B ref 48073); Tue, 27 Apr 2021 21:12:02 +0000 Original-Received: (at 48073) by debbugs.gnu.org; 27 Apr 2021 21:11:04 +0000 Original-Received: from localhost ([127.0.0.1]:51059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbUz2-00088m-7E for submit@debbugs.gnu.org; Tue, 27 Apr 2021 17:11:04 -0400 Original-Received: from mail-io1-f41.google.com ([209.85.166.41]:34343) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbUz1-00088H-22 for 48073@debbugs.gnu.org; Tue, 27 Apr 2021 17:11:03 -0400 Original-Received: by mail-io1-f41.google.com with SMTP id l21so17793890iob.1 for <48073@debbugs.gnu.org>; Tue, 27 Apr 2021 14:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dNndD5ynri+HBcE52reh7KIcM0BW84VpR/Q2/MKg/Ck=; b=i1kMeckKCuTlxpqJFoHXPW+LRpU/1I3mDUiCc2sLpzN/fJrwAdS0W59efLxOj5Ny/g FMMYdTkMSxlM1v4Wf0HsRWsz1S5XFPue0g2g+pfROKL9h91CERrfWGM/8VSjBYimbskt zjoIVfYMp10pRVyX8oJ2AbM8QZqBgszg5HuOAvyyYoajjcBxKqIcTgpJkzdP1nXZ6uVc 2QiY0ntqJtMBty8vWHEop7oexi6YJjd9xrm67Ci3KfjU6mk9pW7SD4anh4Po4nGjGj3c wQFLix+lHKx/3XB4wD63QndUAzHXRO/ovaw4o8ilf9sucO76Obr2hp/biil9HaIoxHvJ CXZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dNndD5ynri+HBcE52reh7KIcM0BW84VpR/Q2/MKg/Ck=; b=Pri2xdE/Fwy41Q31TbwJEgHfOkYOFKu+PRSjqg0eS0SONvQ9TWmYtxeZZRVemMpkX6 b8/ssJ7Xafank8PKuDpoUdFI/PUGRBuCxZtzlK2JkmOXK6Vf0QHMOnXGUZsQ0N7mZUGY GYVJDBa49jmkJdy2HbHt/iQU72vhmowO8PRKeuwR3/1jNYXVx+ACX+e/3z5NKmu+zvI5 ulKlxRu+a0UuKvSb1t2kHv0+6Q3niNVD+0dPFmSmMvUTo55vIDxShteq35T2bIbiW69F AJuuKDrlp3ak5mwLnK/U0Zc6XkGqqYnFnRhTXJfZJYRm+rE68koR1US/h42I9nkJCuNC C1jw== X-Gm-Message-State: AOAM530D3bKlLUKtWuQ+KbHjempXtoFFemHOdgtNHsAaURuIT6Hym3Md ZsSLd1g3i7/1eR/eujRwVs2pPGoTBVOV0CNQ5aY= X-Google-Smtp-Source: ABdhPJzw5Rf3rWBnqbJ2A7WWgsm1Pq2sW3tLBTsBYNypZQcJkxL9+Q/D6lkXGqO4rp6qljWn6L1UMk01kok+XTK8nRs= X-Received: by 2002:a5e:8815:: with SMTP id l21mr17962760ioj.138.1619557857454; Tue, 27 Apr 2021 14:10:57 -0700 (PDT) In-Reply-To: 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:205059 Archived-At: --000000000000c96c0305c0fab2ce Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 27, 2021 at 9:38 PM Stefan Monnier wrote: > > > >> It seems that a more appropriate way to override the completion style > >> would be to include a category in the completion table metadata, and add > >> a corresponding entry to `completion-category-defaults', which can be > >> done globally. > > That's right. The advantage being also that the user can additionally > override that default style with `completion-category-overrides'. > > > Stefan Thanks. But can you confirm my hypothesis that it is possible to make its completion table function in the `flex` style automatically, by - having Eglot add an entry to completion-category-defaults or completion-category-overrides (which one?) - having Eglot point to that entry in its completion table? I.e. I'm only getting rid of the buffer-local hack if there's a viable alternative (I think there is, but some confirmation would be ideal). Jo=C3=A3o --000000000000c96c0305c0fab2ce Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Apr 27, 2021 at 9:38 PM Stefan Monnier <monnier@iro.umontreal.ca> wrote= :
>
>
> >> It seems that a more appropriate way to = override the completion style
> >> would be to include a catego= ry in the completion table metadata, and add
> >> a correspondi= ng entry to `completion-category-defaults', which can be
> >&g= t; done globally.
>
> That's right.=C2=A0 The advantage bei= ng also that the user can additionally
> override that default style = with `completion-category-overrides'.
>
>
> =C2=A0 = =C2=A0 =C2=A0 =C2=A0 Stefan


Thanks. But can you confirm my hypot= hesis that it is possible to make
its completion table function in the `= flex` style automatically, by

- having Eglot add an entry to complet= ion-category-defaults or
=C2=A0 completion-category-overrides (which one= ?)

- having Eglot point to that entry in its completion table?
I.e. I'm only getting rid of the buffer-local hack if there'= s a viable
alternative (I think there is, but some confirmat= ion would be ideal).

Jo=C3=A3o

--000000000000c96c0305c0fab2ce--