Function: function-alias-p
function-alias-p is a byte-compiled function defined in subr.el.gz.
Signature
(function-alias-p FUNC)
Documentation
Return nil if FUNC is not a function alias.
If FUNC is a function alias, return the function alias chain.
Probably introduced at or before Emacs version 29.1.
Source Code
;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun function-alias-p (func &optional _noerror)
"Return nil if FUNC is not a function alias.
If FUNC is a function alias, return the function alias chain."
(declare (advertised-calling-convention (func) "30.1")
(side-effect-free error-free))
(let ((chain nil))
(while (and (symbolp func)
(setq func (symbol-function func))
(symbolp func))
(push func chain))
(nreverse chain)))