all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "João Távora" <joaotavora@gmail.com>
Cc: Augusto Stoffel <arstoffel@gmail.com>, 48073@debbugs.gnu.org
Subject: bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally?
Date: Tue, 27 Apr 2021 16:37:58 -0400	[thread overview]
Message-ID: <jwvk0oneaaj.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CALDnm502VBA0b0H1iGfoiPvkucF0gmrcaCwKB7ZPC4DGNSN6+A@mail.gmail.com> ("João Távora"'s message of "Tue, 27 Apr 2021 20:31:43 +0100")

>> Binding `completion-styles' buffer locally can lead to problems on
>> alternative completion UIs, say if the minibuffer is involved (this used
>> to happen with Consult's compeltion in region until recently).

Indeed; another reason it's problematic is that it's a user-config, so
changing it programatically will sooner or later interfere in
undesirable ways.

>> 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






  reply	other threads:[~2021-04-27 20:37 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-27 19:20 bug#48073: 27.2; [Eglot] Don't bind `completion-styles' buffer locally? Augusto Stoffel
2021-04-27 19:31 ` João Távora
2021-04-27 20:37   ` Stefan Monnier [this message]
2021-04-27 21:10     ` João Távora
2021-04-27 22:37       ` Stefan Monnier
2021-04-27 22:42         ` João Távora
2021-04-27 23:13           ` Stefan Monnier
2021-04-28  7:00             ` Augusto Stoffel
2021-04-28 12:03               ` João Távora
2021-04-27 21:01 ` bug#48073: [External] : " Drew Adams
2021-04-27 21:53   ` João Távora
2021-04-27 22:06     ` Drew Adams
2021-04-27 22:10       ` João Távora
2021-04-27 22:12         ` João Távora
2021-04-28 16:10         ` Drew Adams
2021-04-28 16:13           ` João Távora

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvk0oneaaj.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=48073@debbugs.gnu.org \
    --cc=arstoffel@gmail.com \
    --cc=joaotavora@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.