]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/subr.el (list-of-strings-p): Declare pure and error-free
authorMattias Engdegård <mattiase@acm.org>
Fri, 16 Sep 2022 16:51:10 +0000 (18:51 +0200)
committerMattias Engdegård <mattiase@acm.org>
Fri, 16 Sep 2022 16:51:10 +0000 (18:51 +0200)
lisp/subr.el

index caea2b9f933c476032e314074878c0080f6b5d79..d7cdc28abbad9b379b81aa17a8a461c48a85b733 100644 (file)
@@ -4028,6 +4028,7 @@ Otherwise, return nil."
 
 (defun list-of-strings-p (object)
   "Return t if OBJECT is nil or a list of strings."
+  (declare (pure t) (side-effect-free error-free))
   (while (and (consp object) (stringp (car object)))
     (setq object (cdr object)))
   (null object))