From: Mattias EngdegÄrd Date: Sun, 28 Feb 2021 18:02:15 +0000 (+0100) Subject: Declare more string predicates as pure X-Git-Tag: emacs-28.0.90~3493 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f8ab343eb93741209953e0d314b7c133bee91dda;p=emacs.git Declare more string predicates as pure * lisp/emacs-lisp/byte-opt.el (pure-fns): Treat string>, string-greaterp, string-empty-p, string-blank-p, string-prefix-p and string-suffix-p as pure functions in the compiler. --- diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el index 9f0ba232a4b..b51ba801552 100644 --- a/lisp/emacs-lisp/byte-opt.el +++ b/lisp/emacs-lisp/byte-opt.el @@ -1413,7 +1413,8 @@ Same format as `byte-optimize--lexvars', with shared structure and contents.") copysign isnan ldexp float logb floor ceiling round truncate ffloor fceiling fround ftruncate - string= string-equal string< string-lessp + string= string-equal string< string-lessp string> string-greaterp + string-empty-p string-blank-p string-prefix-p string-suffix-p string-search consp atom listp nlistp proper-list-p sequencep arrayp vectorp stringp bool-vector-p hash-table-p