Make it possible to mark generalized variables as obsolete
* doc/lispref/variables.texi (Adding Generalized Variables): Document it. * lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete): Alter the interface so that it can also be used by generalized variable warnings. (byte-compile-function-warn): Adjust caller. (byte-compile-check-variable): Adjust caller. * lisp/emacs-lisp/gv.el (gv-get): Warn about obsolete generalized variables (bug#49730). (make-obsolete-generalized-variable): New function.
This commit is contained in:
parent
958924a812
commit
6ddcf67052
5 changed files with 48 additions and 13 deletions
|
@ -568,7 +568,6 @@ ACCESS-TYPE if non-nil should specify the kind of access that will trigger
|
|||
(purecopy (list current-name access-type when)))
|
||||
obsolete-name)
|
||||
|
||||
|
||||
(defmacro define-obsolete-variable-alias ( obsolete-name current-name when
|
||||
&optional docstring)
|
||||
"Make OBSOLETE-NAME a variable alias for CURRENT-NAME and mark it obsolete.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue