Function: semantic-ctxt-current-class-list-emacs-lisp-mode

semantic-ctxt-current-class-list-emacs-lisp-mode is a byte-compiled function defined in el.el.gz.

Signature

(semantic-ctxt-current-class-list-emacs-lisp-mode &optional POINT)

Documentation

Return a list of tag classes allowed at POINT.

Emacs Lisp knows much more about the class of the tag needed to perform completion than some languages. We distinctly know if we are to be a function name, variable name, or any type of symbol. We could identify fields and such to, but that is for some other day. Override semantic-ctxt-current-class-list in emacs-lisp-mode buffers.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/bovine/el.el.gz
(define-mode-local-override semantic-ctxt-current-class-list emacs-lisp-mode
  (&optional point)
  "Return a list of tag classes allowed at POINT.
Emacs Lisp knows much more about the class of the tag needed to perform
completion than some languages.  We distinctly know if we are to be a
function name, variable name, or any type of symbol.  We could identify
fields and such to, but that is for some other day."
  (save-excursion
    (if point (goto-char point))
    (setq point (point))
    (condition-case nil
	(let ((count 0))
	  (up-list -1)
	  (forward-char 1)
	  (while (< (point) point)
	    (setq count (1+ count))
	    (forward-sexp 1))
	  (if (= count 1)
	      '(function)
	    '(variable))
	  )
      (error '(variable)))
    ))