From 9fd613dc97f9ecb3a31f1db8d5627b06930cf738 Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Tue, 30 Apr 2024 09:19:31 +0200 Subject: [PATCH] * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Fix type declaration. (cherry picked from commit 1087d55d2710f610edc5195175e2260aebaa4589) --- lisp/emacs-lisp/regexp-opt.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.5