]> git.eshelyaron.com Git - emacs.git/commitdiff
Boolean constant detection additions
authorMattias Engdegård <mattiase@acm.org>
Sun, 25 Sep 2022 15:47:39 +0000 (17:47 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 25 Sep 2022 16:05:13 +0000 (18:05 +0200)
* lisp/emacs-lisp/byte-opt.el (byte-opt--bool-value-form):
`set` is boolean identity in its second argument.
(byte-compile-trueconstp): `set-marker` is always true.

lisp/emacs-lisp/byte-opt.el

index 4ef9cb0a1e4aca1310ef7738e73b93c342e16411..ed6b7b08a49b50c6b675e894419feb4b19c6f9a7 100644 (file)
@@ -737,7 +737,7 @@ for speeding up processing.")
                                 reverse nreverse sort))
                   (setq form (nth 1 form))
                   t)
-                 ((memq head '(mapc setq setcar setcdr puthash))
+                 ((memq head '(mapc setq setcar setcdr puthash set))
                   (setq form (nth 2 form))
                   t)
                  ((memq head '(aset put function-put))
@@ -793,6 +793,7 @@ for speeding up processing.")
                            sxhash sxhash-equal sxhash-eq sxhash-eql
                            sxhash-equal-including-properties
                            make-marker copy-marker point-marker mark-marker
+                           set-marker
                            kbd key-description
                            always))
                   t)