From: Philip Kaludercic Date: Sun, 17 Apr 2022 12:03:33 +0000 (+0200) Subject: ; * subr.el (buffer-match-p): Ensure that (and) is always satisfied X-Git-Tag: emacs-29.0.90~1931^2~463 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2a848209df79b717b4a309ec6e1b21d021519b16;p=emacs.git ; * subr.el (buffer-match-p): Ensure that (and) is always satisfied --- diff --git a/lisp/subr.el b/lisp/subr.el index d0b73db019f..9623ea63b55 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -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)))