; * lisp/emacs-lisp/byte-opt.el (byte-optimize-eq): Fix last change.

This commit is contained in:
Mattias Engdegård 2021-07-20 19:32:11 +02:00
parent 46d7d44894
commit f9d7440814

View file

@ -970,10 +970,9 @@ See Info node `(elisp) Integer Basics'."
form)))
(defun byte-optimize-eq (form)
(byte-optimize-binary-predicate
(pcase (cdr form)
((or `(,x nil) `(nil ,x)) `(not ,x))
(_ form))))
(pcase (cdr form)
((or `(,x nil) `(nil ,x)) `(not ,x))
(_ (byte-optimize-binary-predicate form))))
(defun byte-optimize-member (form)
;; Replace `member' or `memql' with `memq' if the first arg is a symbol,