]> git.eshelyaron.com Git - emacs.git/commit
completion-preview.el: Provide an API.
authorEshel Yaron <me@eshelyaron.com>
Tue, 11 Mar 2025 10:16:49 +0000 (11:16 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Mar 2025 06:41:12 +0000 (07:41 +0100)
commit6ba4bec19699ad56838ce7ae91db4b418c48681f
treec2dee846b0061b43ee6e61a5abb614de1248198e
parent10387fb76ff53597c8f3c109561010df2bf6f74a
completion-preview.el: Provide an API.

Add new functions for summoning and dismissing the
completion preview programmatically.  This lets Lisp code
leverage the completion preview UI for different use cases.

* lisp/completion-preview.el (completion-preview-show): New
function.
(completion-preview-hide): Rename to
'completion-preview--hide', use old name for new public API
function.
(completion-preview--hide): New name, see above.
(completion-preview-active-mode)
(completion-preview--update): Use new functions.
lisp/completion-preview.el