Function: semantic-ctxt-current-function-default

semantic-ctxt-current-function-default is a byte-compiled function defined in ctxt.el.gz.

Signature

(semantic-ctxt-current-function-default &optional POINT)

Documentation

Return the current function call the cursor is in at POINT.

The call will be identified for C like languages with the form
 NAME ( args ... )

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/ctxt.el.gz
(defun semantic-ctxt-current-function-default (&optional point)
  "Return the current function call the cursor is in at POINT.
The call will be identified for C like languages with the form
 NAME ( args ... )"
  (if point (goto-char point))
  (let ((case-fold-search semantic-case-fold))
    (with-syntax-table semantic-lex-syntax-table
      (save-excursion
	(semantic-up-context)
	(when (looking-at "(")
	  (semantic-ctxt-current-symbol))))
    ))