Function: elisp--expect-function-p
elisp--expect-function-p is a byte-compiled function defined in
elisp-mode.el.gz.
Signature
(elisp--expect-function-p POS)
Documentation
Return non-nil if the symbol at point is expected to be a function.
This function has :around advice: elisp--expect-function-p@llama.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/elisp-mode.el.gz
(defun elisp--expect-function-p (pos)
"Return non-nil if the symbol at point is expected to be a function."
(or
(and (eq (char-before pos) ?')
(eq (char-before (1- pos)) ?#))
(save-excursion
(let ((parent (nth 1 (syntax-ppss pos))))
(when parent
(goto-char parent)
(and
(looking-at (concat "(\\(cl-\\)?"
(regexp-opt '("declare-function"
"function" "defadvice"
"callf" "callf2"
"defsetf"))
"[ \t\r\n]+"))
(eq (match-end 0) pos)))))))