Function: semantic-analyze-nolongprefix-completion-at-point-function

semantic-analyze-nolongprefix-completion-at-point-function is a byte-compiled function defined in analyze.el.gz.

Signature

(semantic-analyze-nolongprefix-completion-at-point-function)

Documentation

Return possible analysis completions at point.

The completions provided are via semantic-analyze-possible-completions, but with the no-tc and no-longprefix option passed in, which means constraints resulting in a long multi-symbol dereference are ignored. This function can be used by completion-at-point-functions.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/analyze.el.gz
(defun semantic-analyze-nolongprefix-completion-at-point-function ()
  "Return possible analysis completions at point.
The completions provided are via `semantic-analyze-possible-completions',
but with the `no-tc' and `no-longprefix' option passed in, which means
constraints resulting in a long multi-symbol dereference are ignored.
This function can be used by `completion-at-point-functions'."
  (when (semantic-active-p)
    (let* ((ctxt (semantic-analyze-current-context))
           (possible (semantic-analyze-possible-completions
                      ctxt 'no-tc 'no-longprefix)))

      (when possible
        (list (car (oref ctxt bounds))
              (cdr (oref ctxt bounds))
              possible))
      )))