mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-10 08:10:21 -08:00
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.
This commit is contained in:
parent
9d7fae5ab1
commit
2fa33eb6ee
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue