]> git.eshelyaron.com Git - emacs.git/commitdiff
; * subr.el (buffer-match-p): Ensure that (and) is always satisfied
authorPhilip Kaludercic <philipk@posteo.net>
Sun, 17 Apr 2022 12:03:33 +0000 (14:03 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Sun, 17 Apr 2022 12:04:46 +0000 (14:04 +0200)
lisp/subr.el

index d0b73db019f897673fb8400fd4e109c6b481341f..9623ea63b55656641236e11a1c4cbd053e92f2f5 100644 (file)
@@ -6690,7 +6690,7 @@ CONDITION is either:
                       (funcall match (cdr condition)))
                      ((eq (car-safe condition) 'and)
                       (catch 'fail
-                        (dolist (c conditions)
+                        (dolist (c (cdr conditions))
                           (unless (funcall match c)
                             (throw 'fail nil)))
                         t)))