diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-08-21 21:46:14 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-08-21 21:46:14 +0200 |
commit | 6ddcf67052545a0f77233f1a952dc90e296cda35 (patch) | |
tree | 68191dff374cc0c77974c382cb450b82aa2ad5a1 /etc | |
parent | 958924a8126cf532d44c4b446d13ed744438cc9b (diff) | |
download | emacs-6ddcf67052545a0f77233f1a952dc90e296cda35.tar.gz |
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 'etc')
-rw-r--r-- | etc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2589,6 +2589,11 @@ patcomp.el, pc-mode.el, pc-select.el, s-region.el, and sregex.el. * Lisp Changes in Emacs 29.1 +++ +** New function 'make-obsolete-generalized-variable'. +This can be used to mark setters used by 'setf' as obsolete, and the +byte-compiler will then warn about using them. + ++++ ** New functions 'pos-eol' and 'pos-bol'. These are like 'line-end-position' and 'line-beginning-position' (respectively), but ignore fields (and are more efficient). |