]> git.eshelyaron.com Git - emacs.git/commit
Inherit text props in Completion Preview insertion commands
authorEshel Yaron <me@eshelyaron.com>
Sat, 29 Jun 2024 09:51:10 +0000 (11:51 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 29 Jun 2024 09:51:10 +0000 (11:51 +0200)
commit519f920b0e0a30e09f85b9914f9c1ed59b0eda8b
tree3d7dc7edf0196de9a3390ac8c1a979ace4031dc1
parentd9c8261cabeae932696bd117d5c7c87cf92beec5
Inherit text props in Completion Preview insertion commands

When completing with Completion Preview mode commands,
inherit text properties from surrounding text similarly to
other completion commands, such as 'completion-at-point'.

* lisp/completion-preview.el (completion-preview-insert)
(completion-preview-partial-insert)
(completion-preview-complete): Use 'insert-and-inherit'
instead of 'insert' to insert text for completion.
* test/lisp/completion-preview-tests.el
(completion-preview-insert-inherits-text-properties): New
test.
lisp/completion-preview.el
test/lisp/completion-preview-tests.el