]> git.eshelyaron.com Git - emacs.git/commitdiff
Declare more string predicates as pure
authorMattias Engdegård <mattiase@acm.org>
Sun, 28 Feb 2021 18:02:15 +0000 (19:02 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sun, 28 Feb 2021 19:18:43 +0000 (20:18 +0100)
* 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.

lisp/emacs-lisp/byte-opt.el

index 9f0ba232a4ba6d31646cacd4520dd972816aa3a6..b51ba801552d6d341d216da05fe4dabe939a325d 100644 (file)
@@ -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