Function: semantic-varalias-obsolete
semantic-varalias-obsolete is a byte-compiled function defined in
fw.el.gz.
This function is obsolete since 28.1; use
define-obsolete-variable-alias instead.
Signature
(semantic-varalias-obsolete OLDVARALIAS NEWVAR WHEN)
Documentation
Make OLDVARALIAS an alias for variable NEWVAR.
Mark OLDVARALIAS as obsolete, such that the byte compiler will throw a warning when it encounters this symbol.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/fw.el.gz
(defun semantic-varalias-obsolete (oldvaralias newvar when)
"Make OLDVARALIAS an alias for variable NEWVAR.
Mark OLDVARALIAS as obsolete, such that the byte compiler
will throw a warning when it encounters this symbol."
(declare (obsolete define-obsolete-variable-alias "28.1"))
(make-obsolete-variable oldvaralias newvar when)
(condition-case nil
(defvaralias oldvaralias newvar)
(error
;; Only throw this warning when byte compiling things.
(when (macroexp-compiling-p)
(byte-compile-warn
"variable `%s' obsoletes, but isn't alias of `%s'"
newvar oldvaralias)
))))