diff options
| author | Stefan Monnier | 2025-10-14 11:58:08 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2025-10-14 11:58:08 -0400 |
| commit | 8c19b71660e44c31b57c741a7d748ce1e80fb513 (patch) | |
| tree | 9584cd9fbadd4e66da4e2e9312b1f9cc03dcd950 | |
| parent | 171c7fd6df861ab71f6cc8faedb8ff68bfac4bae (diff) | |
| download | emacs-8c19b71660e44c31b57c741a7d748ce1e80fb513.tar.gz emacs-8c19b71660e44c31b57c741a7d748ce1e80fb513.zip | |
(rx): Remove the `rx--pcase-expand` middle man
* lisp/emacs-lisp/rx.el (rx): Remove the `rx--pcase-expand` middle man,
now that `loaddefs-gen.el` expands the `pcase-defmacro` for us.
| -rw-r--r-- | lisp/emacs-lisp/rx.el | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el index 58f95c7d89a..229f1dbb57b 100644 --- a/lisp/emacs-lisp/rx.el +++ b/lisp/emacs-lisp/rx.el | |||
| @@ -1685,12 +1685,6 @@ following constructs: | |||
| 1685 | REF can be a number, as usual, or a name | 1685 | REF can be a number, as usual, or a name |
| 1686 | introduced by a previous (let REF ...) | 1686 | introduced by a previous (let REF ...) |
| 1687 | construct." | 1687 | construct." |
| 1688 | (rx--pcase-expand regexps)) | ||
| 1689 | |||
| 1690 | ;; Autoloaded because it's referred to by the pcase rx macro above, | ||
| 1691 | ;; whose body ends up in loaddefs.el. | ||
| 1692 | ;;;###autoload | ||
| 1693 | (defun rx--pcase-expand (regexps) | ||
| 1694 | (let* ((rx--pcase-vars nil) | 1688 | (let* ((rx--pcase-vars nil) |
| 1695 | (regexp (rx--to-expr (rx--pcase-transform (cons 'seq regexps))))) | 1689 | (regexp (rx--to-expr (rx--pcase-transform (cons 'seq regexps))))) |
| 1696 | `(and (pred stringp) | 1690 | `(and (pred stringp) |
| @@ -1726,7 +1720,7 @@ following constructs: | |||
| 1726 | (reverse rx--pcase-vars)))))))))) | 1720 | (reverse rx--pcase-vars)))))))))) |
| 1727 | 1721 | ||
| 1728 | ;; Obsolete internal symbol, used in old versions of the `flycheck' package. | 1722 | ;; Obsolete internal symbol, used in old versions of the `flycheck' package. |
| 1729 | (define-obsolete-function-alias 'rx-submatch-n 'rx-to-string "27.1") | 1723 | (define-obsolete-function-alias 'rx-submatch-n #'rx-to-string "27.1") |
| 1730 | 1724 | ||
| 1731 | (provide 'rx) | 1725 | (provide 'rx) |
| 1732 | 1726 | ||