From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally? Date: Tue, 27 Apr 2021 18:37:19 -0400 Message-ID: References: <871rav4jri.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21969"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Augusto Stoffel , 48073@debbugs.gnu.org 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 Wed Apr 28 00:38:11 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 1lbWLL-0005ch-BI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Apr 2021 00:38:11 +0200 Original-Received: from localhost ([::1]:54174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbWLK-0005Eg-Du for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 18:38:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbWLC-0005D4-GH for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 18:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39689) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbWLC-0004MI-7p for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 18:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lbWLC-0001p1-4M for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 18:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Apr 2021 22:38: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.16195630506963 (code B ref 48073); Tue, 27 Apr 2021 22:38:02 +0000 Original-Received: (at 48073) by debbugs.gnu.org; 27 Apr 2021 22:37:30 +0000 Original-Received: from localhost ([127.0.0.1]:51235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbWKf-0001oF-Py for submit@debbugs.gnu.org; Tue, 27 Apr 2021 18:37:29 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:55304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbWKd-0001o1-CE for 48073@debbugs.gnu.org; Tue, 27 Apr 2021 18:37:28 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D0ED2441379; Tue, 27 Apr 2021 18:37:21 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 68C5F441364; Tue, 27 Apr 2021 18:37:20 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1619563040; bh=1xLn3Mza8Q6U2BudKf8OnEwYDgorb/W2s31xIhu1/4U=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=kQe7IGgr7aB0tNnC8J5XRulWAjxornftcnCbS6KskrQJDa4P8Y56ezooTZRhYEaVX HrPmvNm7OLpFgIJ5S89nkXX33zxgVqELvvsvkf4vZ1El9W2Kun1cWY5XVdPZWbKyy9 wnPShoG8Fui08yd34fpGaxPizExk+4HMHzdohTQ0cj0TRGCJ+McHiGYrW9act7ae5H QK1rvN0zfs8Kw39xVPKukPWWsuprSCwCnudjU1Z0k+romGOnqamKzR5XitJmszPUVc uV7ew/s7DOQeHPovYcTQBvQHm8Fl4uS6u5Vwucom6SJs+RpBXK3wfZr1sb4IuK6TW4 36VgF0nn2O8Lw== Original-Received: from alfajor (unknown [157.52.10.47]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 328A41201C8; Tue, 27 Apr 2021 18:37:20 -0400 (EDT) In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Tue, 27 Apr 2021 22:10:44 +0100") 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:205066 Archived-At: >> >> 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, Yes. > - having Eglot add an entry to completion-category-defaults or > completion-category-overrides (which one?) `completion-category-overrides` is a user config. Don't touch it. > - having Eglot point to that entry in its completion table? There's no real notion of "point to", but it can use a completion-table whose `category` says `eglot` and then use a corresponding entry in `completion-category-defaults`, yes. And those rare users who don't like `flex` (or who want the new `mind-reader` completion style instead) can override it in their `completion-category-overrides`. Stefan