From: Andrea Corallo Date: Tue, 30 Apr 2024 07:19:31 +0000 (+0200) Subject: * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Fix type declaration. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9fd613dc97f9ecb3a31f1db8d5627b06930cf738;p=emacs.git * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Fix type declaration. (cherry picked from commit 1087d55d2710f610edc5195175e2260aebaa4589) --- diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el index 71a2d59c829..82a854a18dd 100644 --- a/lisp/emacs-lisp/regexp-opt.el +++ b/lisp/emacs-lisp/regexp-opt.el @@ -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.