]> git.eshelyaron.com Git - completion-preview.git/commit
Use a trivial completion table instead of a bespoke function
authorEshel Yaron <me@eshelyaron.com>
Wed, 1 Nov 2023 21:32:36 +0000 (22:32 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 1 Nov 2023 21:32:36 +0000 (22:32 +0100)
commit72f8c30ab3b4a9d6428bee957a81741204bbab37
tree1091515b57f11c2582b4036ddec258d2837d84ec
parentac9710bf90011d0afb35aac46ca84094229bb409
Use a trivial completion table instead of a bespoke function

Completion at point functions are encouraged to return well formed
completion table with metadata instead of a completion function.

* completion-preview.el (completion-preview-show): Simplify.
(completion-preview-insert-function):
(completion-preview--insert) Remove.
(completion-preview-insert): New function.
(completion-preview-active-mode): Adapt.
completion-preview.el