Function: mh-make-obsolete-variable
mh-make-obsolete-variable is a macro defined in mh-compat.el.gz.
Signature
(mh-make-obsolete-variable OBSOLETE-NAME CURRENT-NAME &optional WHEN ACCESS-TYPE)
Documentation
Make the byte-compiler warn that OBSOLETE-NAME is obsolete.
See documentation for make-obsolete-variable for a description
of the arguments OBSOLETE-NAME, CURRENT-NAME, and perhaps WHEN
and ACCESS-TYPE. This macro is used by XEmacs that lacks WHEN and
ACCESS-TYPE arguments and by Emacs versions that lack ACCESS-TYPE,
introduced in Emacs 24.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-compat.el.gz
(defmacro mh-make-obsolete-variable (obsolete-name current-name &optional when access-type)
"Make the byte-compiler warn that OBSOLETE-NAME is obsolete.
See documentation for `make-obsolete-variable' for a description
of the arguments OBSOLETE-NAME, CURRENT-NAME, and perhaps WHEN
and ACCESS-TYPE. This macro is used by XEmacs that lacks WHEN and
ACCESS-TYPE arguments and by Emacs versions that lack ACCESS-TYPE,
introduced in Emacs 24."
(if (featurep 'xemacs)
`(make-obsolete-variable ,obsolete-name ,current-name)
(if (< emacs-major-version 24)
`(make-obsolete-variable ,obsolete-name ,current-name ,when)
`(make-obsolete-variable ,obsolete-name ,current-name ,when ,access-type))))