summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2024-04-29 12:35:55 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2024-04-29 14:29:53 +0200
commit3be382311fa03b9ec9c571b5e5737ff2d51bc2d3 (patch)
tree41d40c44fdf4a446e9707cc97138914c214cccb5 /lisp/emacs-lisp
parentf906ce5543818f2cba08dd2c7b94e4ba566ce64c (diff)
downloademacs-3be382311fa03b9ec9c571b5e5737ff2d51bc2d3.tar.gz
emacs-3be382311fa03b9ec9c571b5e5737ff2d51bc2d3.tar.bz2
emacs-3be382311fa03b9ec9c571b5e5737ff2d51bc2d3.zip
Declare the variable `rx-constituents` obsolete.
It has been effectively obsolete since Emacs 27, when the modern extension mechanism was introduced. * lisp/emacs-lisp/rx.el (rx-constituents): Make obsolete. * test/lisp/emacs-lisp/rx-tests.el (rx-constituents): Suppress warning. * etc/NEWS: Announce.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/rx.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el
index 246e41cff0b..7113d5a6241 100644
--- a/lisp/emacs-lisp/rx.el
+++ b/lisp/emacs-lisp/rx.el
@@ -149,6 +149,13 @@ If DEF is a list on the form (FUN MIN-ARGS MAX-ARGS PRED), then
If PRED is non-nil, it is a predicate that all actual arguments must
satisfy.")
+(make-obsolete-variable
+ 'rx-constituents
+ "use `rx-let', `rx-let-eval', or `rx-define' instead."
+ ;; Effectively obsolete since Emacs 27 but only formally declared
+ ;; obsolete in Emacs 30.
+ "30.1")
+
(defvar rx--local-definitions nil
"Alist of dynamic local rx definitions.
Each entry is: