summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/byte-run.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-08-21 21:46:14 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-08-21 21:46:14 +0200
commit6ddcf67052545a0f77233f1a952dc90e296cda35 (patch)
tree68191dff374cc0c77974c382cb450b82aa2ad5a1 /lisp/emacs-lisp/byte-run.el
parent958924a8126cf532d44c4b446d13ed744438cc9b (diff)
downloademacs-6ddcf67052545a0f77233f1a952dc90e296cda35.tar.gz
emacs-6ddcf67052545a0f77233f1a952dc90e296cda35.tar.bz2
emacs-6ddcf67052545a0f77233f1a952dc90e296cda35.zip
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.
Diffstat (limited to 'lisp/emacs-lisp/byte-run.el')
-rw-r--r--lisp/emacs-lisp/byte-run.el1
1 files changed, 0 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 4a2860cd43d..9a56ba0f7ad 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -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.