Function: semantic-complete-inline-exit
semantic-complete-inline-exit is an interactive and byte-compiled
function defined in complete.el.gz.
Signature
(semantic-complete-inline-exit)
Documentation
Exit inline completion mode.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/complete.el.gz
(defun semantic-complete-inline-exit ()
"Exit inline completion mode."
(interactive)
;; Remove this hook FIRST!
(remove-hook 'pre-command-hook #'semantic-complete-pre-command-hook)
(condition-case nil
(progn
(when semantic-completion-collector-engine
(semantic-collector-cleanup semantic-completion-collector-engine))
(when semantic-completion-display-engine
(semantic-displayer-cleanup semantic-completion-display-engine))
(when semantic-complete-inline-overlay
(let ((wc (overlay-get semantic-complete-inline-overlay
'window-config-start))
(buf (overlay-buffer semantic-complete-inline-overlay))
)
(delete-overlay semantic-complete-inline-overlay)
(setq semantic-complete-inline-overlay nil)
;; DONT restore the window configuration if we just
;; switched windows!
(when (eq buf (current-buffer))
(set-window-configuration wc))
))
(setq semantic-completion-collector-engine nil
semantic-completion-display-engine nil))
(error nil))
;; Remove this hook LAST!!!
;; This will force us back through this function if there was
;; some sort of error above.
(remove-hook 'post-command-hook #'semantic-complete-post-command-hook)
;;(message "Exiting inline completion.")
)