Function: semantic-complete-inline-tag-engine

semantic-complete-inline-tag-engine is a byte-compiled function defined in complete.el.gz.

Signature

(semantic-complete-inline-tag-engine COLLECTOR DISPLAYER BUFFER START END)

Documentation

Perform completion based on semantic tags in a buffer.

Argument COLLECTOR is an object which can be used to calculate a list of possible hits. See semantic-completion-collector-engine for details on COLLECTOR. Argument DISPLAYER is an object used to display a list of possible completions for a given prefix. See semantic-completion-display-engine for details on DISPLAYER. BUFFER is the buffer in which completion will take place. START is a location for the start of the full symbol. If the symbol being completed is "foo.ba", then START is on the "f" character. END is at the end of the current symbol being completed.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/complete.el.gz
(defun semantic-complete-inline-tag-engine
  (collector displayer buffer start end)
  "Perform completion based on semantic tags in a buffer.
Argument COLLECTOR is an object which can be used to calculate
a list of possible hits.  See `semantic-completion-collector-engine'
for details on COLLECTOR.
Argument DISPLAYER is an object used to display a list of possible
completions for a given prefix.  See `semantic-completion-display-engine'
for details on DISPLAYER.
BUFFER is the buffer in which completion will take place.
START is a location for the start of the full symbol.
If the symbol being completed is \"foo.ba\", then START
is on the \"f\" character.
END is at the end of the current symbol being completed."
  ;; Set us up for doing completion
  (setq semantic-completion-collector-engine collector
	semantic-completion-display-engine displayer)
  ;; Create an overlay
  (setq semantic-complete-inline-overlay
	(make-overlay start end buffer nil t))
  (overlay-put semantic-complete-inline-overlay
	       'face
	       'semantic-complete-inline-face)
  (overlay-put semantic-complete-inline-overlay
	       'window-config-start
	       (current-window-configuration))
  ;; Save the original start.  We need to exit completion if START
  ;; moves.
  (overlay-put semantic-complete-inline-overlay
	       'semantic-original-start start)
  ;; Install our command hooks
  (add-hook 'pre-command-hook #'semantic-complete-pre-command-hook)
  (add-hook 'post-command-hook #'semantic-complete-post-command-hook)
  ;; Go!
  (semantic-complete-inline-force-display)
  )