Eshel Yaron [Tue, 31 Oct 2023 18:15:41 +0000 (19:15 +0100)]
Use a dedicated keymap for when the preview active
* completion-preview.el (completion-preview-hide): New function.
(completion-preview-active-mode-map): New keymap.
(completion-preview-active-mode): New minor mode.
(completion-preview--post-command)
(completion-preview-mode)
(completion-preview-show): Adjust.
(completion-preview-insert-or-complete): Remove.
(completion-preview-insert): New command.