From 2fa33eb6ee20e48a4c6488bb0d55b3c1c9a1f721 Mon Sep 17 00:00:00 2001 From: Mattias EngdegÄrd Date: Sun, 29 Sep 2019 16:59:58 +0200 Subject: Add `rx-submatch-n' for compatibility (bug#37517) It was an internal symbol in the old `rx' implementation, used in old versions of the `flycheck' package. * lisp/emacs-lisp/rx.el (rx-submatch-n): Alias of `rx-to-string'. * test/lisp/emacs-lisp/rx-tests.el (rx-compat): Test it. --- lisp/emacs-lisp/rx.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lisp/emacs-lisp') diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el index a192ed1ad27..45fec796cc3 100644 --- a/lisp/emacs-lisp/rx.el +++ b/lisp/emacs-lisp/rx.el @@ -1254,6 +1254,9 @@ following constructs: `(app (match-string ,i) ,name)) (reverse rx--pcase-vars)))))) +;; Obsolete internal symbol, used in old versions of the `flycheck' package. +(define-obsolete-function-alias 'rx-submatch-n 'rx-to-string "27.1") + (provide 'rx) ;;; rx.el ends here -- cgit v1.2.3