[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master f8ab343: Declare more string predicates as pure
From: |
Mattias Engdegård |
Subject: |
master f8ab343: Declare more string predicates as pure |
Date: |
Sun, 28 Feb 2021 14:19:15 -0500 (EST) |
branch: master
commit f8ab343eb93741209953e0d314b7c133bee91dda
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
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.
---
lisp/emacs-lisp/byte-opt.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el
index 9f0ba23..b51ba80 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master f8ab343: Declare more string predicates as pure,
Mattias Engdegård <=