]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/mail/footnote.el: Avoid regexp-opt-charset, which is not autoloaded.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 9 May 2019 14:32:25 +0000 (10:32 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 9 May 2019 14:32:25 +0000 (10:32 -0400)
(footnote-hebrew-numeric-regex): Use rx-to-string instead.

lisp/mail/footnote.el

index 327eda11dc54b22b18a1251794b1063ff4053d70..a1bbf7369b2c8b26b62f36c1684f48ffd7b3a899 100644 (file)
@@ -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)