Function: completion-preview--post-command
completion-preview--post-command is a byte-compiled function defined
in completion-preview.el.gz.
Signature
(completion-preview--post-command)
Documentation
Create, update or delete completion preview post last command.
Source Code
;; Defined in /usr/src/emacs/lisp/completion-preview.el.gz
(defun completion-preview--post-command ()
"Create, update or delete completion preview post last command."
(let ((internal-p (or completion-preview--inhibit-update-p
(memq this-command
completion-preview--internal-commands))))
(setq completion-preview--inhibit-update-p nil)
(when (timerp completion-preview--timer)
(cancel-timer completion-preview--timer)
(setq completion-preview--timer nil))
(cond
(internal-p
;; `this-command' took care of updating the preview. Do nothing.
)
((and (completion-preview-require-certain-commands)
(completion-preview-require-minimum-symbol-length))
;; All conditions met. Show or update the preview.
(completion-preview--show))
(completion-preview-active-mode
;; The preview is shown, but it shouldn't be. Hide it.
(completion-preview-active-mode -1)))))