all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Mendler via "Emacs development discussions." <emacs-devel@gnu.org>
To: sbaugh@catern.com
Cc: emacs-devel@gnu.org, Dmitry Gutov <dmitry@gutov.dev>
Subject: Re: Eglot cannot work with default completion-in-region?
Date: Sun, 28 Jan 2024 11:23:33 +0100	[thread overview]
Message-ID: <87bk9592oq.fsf@daniel-mendler.de> (raw)
In-Reply-To: <87ttmy7pog.fsf@catern.com> (sbaugh@catern.com's message of "Sat,  27 Jan 2024 15:37:35 +0000")

sbaugh@catern.com writes:

[96 lines...]

> I would also find this useful elsewhere too - the fact that
> exit-function strips the properties is quite annoying, and the ability
> to transform the completion (possibly preserving text properties when
> inserted) would be handy.

FWIW both Company and Corfu preserve text properties when calling the
exit function as long as the completion candidate is unique or was
selected explicitly in the popup menu.

Duplicate candidates (with respect to equal) are kept in the
Corfu/Company popup menus. Duplicates are also kept in the Completions
buffer as long as their prefix or suffix annotations are distinct, but
unfortunately the distinction is lost, text properties are stripped, as
soon as a candidate is selected.

Daniel



  reply	other threads:[~2024-01-28 10:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-26 20:38 Eglot cannot work with default completion-in-region? Spencer Baugh
2024-01-27 14:45 ` João Távora
2024-01-27 15:37   ` sbaugh
2024-01-28 10:23     ` Daniel Mendler via Emacs development discussions. [this message]
2024-01-28 14:09     ` João Távora
2024-01-29 21:14       ` Spencer Baugh
2024-01-29 22:21         ` João Távora
2024-01-29 22:51           ` JD Smith
2024-01-30  0:32             ` 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=87bk9592oq.fsf@daniel-mendler.de \
    --to=emacs-devel@gnu.org \
    --cc=dmitry@gutov.dev \
    --cc=mail@daniel-mendler.de \
    --cc=sbaugh@catern.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.