]> git.eshelyaron.com Git - emacs.git/commitdiff
Mark string predicates side-effect-free
authorMattias Engdegård <mattiase@acm.org>
Wed, 10 Mar 2021 13:08:41 +0000 (14:08 +0100)
committerMattias Engdegård <mattiase@acm.org>
Wed, 10 Mar 2021 13:08:41 +0000 (14:08 +0100)
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Add string>,
string-greaterp, string-empty-p, string-prefix-p, string-suffix-p
and string-blank-p, all recently marked pure.

lisp/emacs-lisp/byte-opt.el

index b3325816c5c973bdcc92ffae86d8528b23b0ebba..db8d825cfec7962c1e2ef0d29fee6fd8f0666be0 100644 (file)
@@ -1327,6 +1327,8 @@ Same format as `byte-optimize--lexvars', with shared structure and contents.")
         radians-to-degrees rassq rassoc read-from-string regexp-opt
          regexp-quote region-beginning region-end reverse round
         sin sqrt string string< string= string-equal string-lessp
+         string> string-greaterp string-empty-p
+         string-prefix-p string-suffix-p string-blank-p
          string-search string-to-char
         string-to-number string-to-syntax substring
         sxhash sxhash-equal sxhash-eq sxhash-eql