From d2bd9958bd7cf7d0e8fd7e405173cd62e979d251 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 9 May 2019 10:32:25 -0400 Subject: [PATCH] * lisp/mail/footnote.el: Avoid regexp-opt-charset, which is not autoloaded. (footnote-hebrew-numeric-regex): Use rx-to-string instead. --- lisp/mail/footnote.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/mail/footnote.el b/lisp/mail/footnote.el index 327eda11dc5..a1bbf7369b2 100644 --- a/lisp/mail/footnote.el +++ b/lisp/mail/footnote.el @@ -348,7 +348,7 @@ Use Unicode characters for footnoting." (defconst footnote-hebrew-numeric-regex (let ((numchars (string-to-list (apply #'concat (apply #'append footnote-hebrew-numeric))))) - (concat (regexp-opt-charset (cons ?' numchars)) "+"))) + (rx-to-string `(1+ (in ?' ,@numchars))))) ;; (defconst footnote-hebrew-numeric-regex "\\([אבגדהוזחט]'\\)?\\(ת\\)?\\(ת\\)?\\([קרשת]\\)?\\([טיכלמנסעפצ]\\)?\\([אבגדהוזחט]\\)?") (defun footnote--hebrew-numeric (n) -- 2.39.5