Fix a subtle bug in +mapc-some-buffers
This commit is contained in:
parent
f0febf6814
commit
f6512b78a2
|
@ -107,8 +107,7 @@ on buffers derived from one of the modes in PREDICATE."
|
|||
(let ((pred (or predicate t)))
|
||||
(dolist (buf (buffer-list))
|
||||
(with-current-buffer buf
|
||||
(when (cond ((or (eq (car-safe pred) 'closure)
|
||||
(fboundp pred))
|
||||
(when (cond ((functionp pred)
|
||||
(funcall pred))
|
||||
((listp pred)
|
||||
(apply #'derived-mode-p pred))
|
||||
|
|
Loading…
Reference in New Issue