define-obsolete-function-alias

define-obsolete-function-alias is a Lisp macro in `byte-run.el'.

(define-obsolete-function-alias OBSOLETE-NAME CURRENT-NAME WHEN &optional DOCSTRING)

Set OBSOLETE-NAME's function definition to CURRENT-NAME and mark it obsolete.

(define-obsolete-function-alias 'old-fun 'new-fun "22.1" "old-fun's doc.")

is equivalent to the following two lines of code:

(defalias 'old-fun 'new-fun "old-fun's doc.")
(make-obsolete 'old-fun 'new-fun "22.1")

See the docstrings of `defalias' and `make-obsolete' for more details.