summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/regexp-opt.el
diff options
context:
space:
mode:
authorAndrea Corallo <acorallo@gnu.org>2024-05-14 09:24:05 +0200
committerAndrea Corallo <acorallo@gnu.org>2024-05-14 11:17:25 +0200
commit6e1bb713f61da3e09b811883ed889067a1cc939b (patch)
treed8cdafb52fa94d8e93f75290491f93fd2983e039 /lisp/emacs-lisp/regexp-opt.el
parent041aa3ffc65c1146bed43ecaa1b0df4e7486c963 (diff)
downloademacs-6e1bb713f61da3e09b811883ed889067a1cc939b.tar.gz
emacs-6e1bb713f61da3e09b811883ed889067a1cc939b.tar.bz2
emacs-6e1bb713f61da3e09b811883ed889067a1cc939b.zip
Change 'type' declaration to 'ftype'
* lisp/window.el (get-lru-window, get-largest-window) (one-window-p): Update function type declaration. * lisp/subr.el (ignore, error, zerop, fixnump, bignump, lsh) (last, eventp, mouse-movement-p, log10, memory-limit) (internal-pop-keymap): Likewise. * lisp/simple.el (count-lines, mark, string-empty-p): Likewise. * lisp/files.el (parse-colon-path): Likewise. * lisp/env.el (getenv): Likewise. * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Likewise. * lisp/emacs-lisp/lisp.el (buffer-end): Likewise. * lisp/emacs-lisp/comp.el (comp--final): Likewise. * lisp/custom.el (custom-variable-p): Likewise. * lisp/emacs-lisp/byte-run.el (defun-declarations-alist): Rename 'type' -> 'ftype'.
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
-rw-r--r--lisp/emacs-lisp/regexp-opt.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el
index f23343a34c6..d655855fab2 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 &optional t) string))
+ (declare (ftype (function (list &optional t) string))
(pure t) (side-effect-free t))
(save-match-data
;; Recurse on the sorted list.