]> git.eshelyaron.com Git - emacs.git/commitdiff
Declare `key-valid-p` and `readablep` as error-free
authorMattias Engdegård <mattiase@acm.org>
Sun, 31 Jul 2022 13:45:16 +0000 (15:45 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 31 Jul 2022 16:29:02 +0000 (18:29 +0200)
* lisp/keymap.el (key-valid-p):
* lisp/subr.el (readablep): These functions are effect-free; declare
them correspondingly.  Note that readablep is not pure since its
return value depends on ambient state.

lisp/keymap.el
lisp/subr.el

index ad7d4fbbba1113d2f0707e0a346410fda91c535d..376a30f1065834fd69095ed35104e11361473f67 100644 (file)
@@ -313,7 +313,7 @@ Modifiers have to be specified in this order:
 which is
 
    Alt-Control-Hyper-Meta-Shift-super"
-  (declare (pure t) (side-effect-free t))
+  (declare (pure t) (side-effect-free error-free))
   (let ((case-fold-search nil))
     (and
      (stringp keys)
index 1a16d781174c035428f8cc9442d446279f9f2695..ff82d0d1d8ddda36ffae1ad3a6c41b60de70612b 100644 (file)
@@ -6820,7 +6820,7 @@ This means that OBJECT can be printed out and then read back
 again by the Lisp reader.  This function returns nil if OBJECT is
 unreadable, and the printed representation (from `prin1') of
 OBJECT if it is readable."
-  (declare (side-effect-free t))
+  (declare (side-effect-free error-free))
   (catch 'unreadable
     (let ((print-unreadable-function
            (lambda (_object _escape)