Function: make-obsolete-generalized-variable

make-obsolete-generalized-variable is a byte-compiled function defined in gv.el.gz.

Signature

(make-obsolete-generalized-variable OBSOLETE-NAME CURRENT-NAME WHEN)

Documentation

Make byte-compiler warn that generalized variable OBSOLETE-NAME is obsolete.

The warning will say that CURRENT-NAME should be used instead.

If CURRENT-NAME is a string, that is the use instead message.

WHEN should be a string indicating when the variable was first made obsolete, for example a date or a release number.

View in manual

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/gv.el.gz
(defun make-obsolete-generalized-variable (obsolete-name current-name when)
  "Make byte-compiler warn that generalized variable OBSOLETE-NAME is obsolete.
The warning will say that CURRENT-NAME should be used instead.

If CURRENT-NAME is a string, that is the `use instead' message.

WHEN should be a string indicating when the variable was first
made obsolete, for example a date or a release number."
  (put obsolete-name 'byte-obsolete-generalized-variable
       (list current-name when))
  obsolete-name)