[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master e8d198a00a 4/5: Fix rx.el byte-compile warning in loaddefs.el
From: |
Lars Ingebrigtsen |
Subject: |
master e8d198a00a 4/5: Fix rx.el byte-compile warning in loaddefs.el |
Date: |
Sun, 31 Jul 2022 05:30:08 -0400 (EDT) |
branch: master
commit e8d198a00a87df7b047cf8eeebad197584d35717
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Fix rx.el byte-compile warning in loaddefs.el
* lisp/emacs-lisp/rx.el (rx--to-expr, rx--pcase-transform):
Autoload to avoid warning when byte-compiling loaddefs.el.
---
lisp/emacs-lisp/rx.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el
index 18eb168a70..a2cf23f271 100644
--- a/lisp/emacs-lisp/rx.el
+++ b/lisp/emacs-lisp/rx.el
@@ -1150,6 +1150,8 @@ For extending the `rx' notation in FORM, use `rx-define'
or `rx-let-eval'."
(rx--atomic-regexp item))))
(apply #'concat exprs)))
+;; Autoloaded because it's referred to by form in loaddefs.el.
+;;;###autoload
(defun rx--to-expr (form)
"Translate the rx-expression FORM to a Lisp expression yielding a regexp."
(let* ((rx--delayed-evaluation t)
@@ -1405,6 +1407,8 @@ For more details, see Info node `(elisp) Extending Rx'.
;; becomes a problem, we can handle those forms in the ordinary parser,
;; using a dynamic variable for activating the augmented forms.
+;; Autoloaded because it's referred to by form in loaddefs.el.
+;;;###autoload
(defun rx--pcase-transform (rx)
"Transform RX, an rx-expression augmented with `let' and named `backref',
into a plain rx-expression, collecting names into `rx--pcase-vars'."