emacs-diffs
[Top][All Lists]
Advanced

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

master b55b2f1c31 2/2: Boolean constant detection additions


From: Mattias Engdegård
Subject: master b55b2f1c31 2/2: Boolean constant detection additions
Date: Sun, 25 Sep 2022 12:06:07 -0400 (EDT)

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

    Boolean constant detection additions
    
    * 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 | 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 4ef9cb0a1e..ed6b7b08a4 100644
--- a/lisp/emacs-lisp/byte-opt.el
+++ b/lisp/emacs-lisp/byte-opt.el
@@ -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)



reply via email to

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