Function: set-advertised-calling-convention

set-advertised-calling-convention is a byte-compiled function defined in byte-run.el.gz.

Signature

(set-advertised-calling-convention FUNCTION SIGNATURE WHEN)

Documentation

Set the advertised SIGNATURE of FUNCTION.

This will allow the byte-compiler to warn the programmer when she uses an obsolete calling convention. WHEN specifies since when the calling convention was modified.

Probably introduced at or before Emacs version 23.2.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/byte-run.el.gz
(defun set-advertised-calling-convention (function signature _when)
  "Set the advertised SIGNATURE of FUNCTION.
This will allow the byte-compiler to warn the programmer when she uses
an obsolete calling convention.  WHEN specifies since when the calling
convention was modified."
  (puthash (indirect-function function) signature
           advertised-signature-table))