Function: function-put
function-put is a byte-compiled function defined in byte-run.el.gz.
Signature
(function-put FUNCTION PROP VALUE)
Documentation
Set FUNCTION's property PROP to VALUE.
The namespace for PROP is shared with symbols. So far, FUNCTION can only be a symbol, not a lambda expression.
Probably introduced at or before Emacs version 25.1.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/byte-run.el.gz
(defalias 'function-put
;; We don't want people to just use `put' because we can't conveniently
;; hook into `put' to remap old properties to new ones. But for now, there's
;; no such remapping, so we just call `put'.
#'(lambda (function prop value)
"Set FUNCTION's property PROP to VALUE.
The namespace for PROP is shared with symbols.
So far, FUNCTION can only be a symbol, not a lambda expression."
(put (bare-symbol function) prop value)))