emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 7add330: Mark string predicates side-effect-free


From: Mattias Engdegård
Subject: master 7add330: Mark string predicates side-effect-free
Date: Wed, 10 Mar 2021 08:11:20 -0500 (EST)

branch: master
commit 7add3309035394340b9d75d12c7e5412a3c96690
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    Mark string predicates side-effect-free
    
    * 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 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el
index b332581..db8d825 100644
--- a/lisp/emacs-lisp/byte-opt.el
+++ b/lisp/emacs-lisp/byte-opt.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]