]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/regexp-opt.el (regexp-opt): Fix type declaration.
authorAndrea Corallo <acorallo@gnu.org>
Tue, 30 Apr 2024 07:19:31 +0000 (09:19 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:29:22 +0000 (18:29 +0200)
(cherry picked from commit 1087d55d2710f610edc5195175e2260aebaa4589)

lisp/emacs-lisp/regexp-opt.el

index 71a2d59c829040161129afd98a5be6d9e8123c7d..82a854a18dd4e4a0b406f63b3d2a5d8d96fe656e 100644 (file)
@@ -130,7 +130,7 @@ usually more efficient than that of a simplified version:
      (concat (car parens)
              (mapconcat \\='regexp-quote strings \"\\\\|\")
              (cdr parens))))"
-  (declare (type (function (list) string))
+  (declare (type (function (list &optional t) string))
            (pure t) (side-effect-free t))
   (save-match-data
     ;; Recurse on the sorted list.