Function: semantic-complete-analyze-and-replace
semantic-complete-analyze-and-replace is an autoloaded, interactive
and byte-compiled function defined in complete.el.gz.
Signature
(semantic-complete-analyze-and-replace)
Documentation
Perform prompt completion to do in buffer completion.
semantic-analyze-possible-completions is used to determine the
possible values.
The minibuffer is used to perform the completion.
The result is inserted as a replacement of the text that was there.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/complete.el.gz
;;;###autoload
(defun semantic-complete-analyze-and-replace ()
"Perform prompt completion to do in buffer completion.
`semantic-analyze-possible-completions' is used to determine the
possible values.
The minibuffer is used to perform the completion.
The result is inserted as a replacement of the text that was there."
(interactive)
(let* ((c (semantic-analyze-current-context (point)))
(tag (save-excursion (semantic-complete-read-tag-analyzer "" c))))
;; Take tag, and replace context bound with its name.
(goto-char (car (oref c bounds)))
(delete-region (point) (cdr (oref c bounds)))
(insert (semantic-tag-name tag))
(message "%S" (semantic-format-tag-summarize tag))))