diff options
author | Eli Zaretskii <eliz@gnu.org> | 2023-04-15 12:44:48 -0400 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-04-15 12:44:48 -0400 |
commit | 709d55804798254b9b431ceac2e65d255fe031d5 (patch) | |
tree | 8f02e888c025ba5adf68e65f44a9281800184eb8 /lisp/subr.el | |
parent | 0fe7fef54bb93fe02bf7313cfe65c4b6b455a785 (diff) | |
parent | c62afb10cf0bbeae6a540f4e05b7a23536636cd0 (diff) | |
download | emacs-709d55804798254b9b431ceac2e65d255fe031d5.tar.gz |
Merge from origin/emacs-29
c62afb10cf0 Fix wallpaper-tests on MS-Windows
f2d212c6966 Fix a couple of eglot-tests
338b3718b6c Fix visiting RPM files
b4afee03193 Fix ff-quiet-mode doc
2445100d7d6 ; Improve documentation of 'match-buffers'
d4d0da96f0b ; Update make-tarball.txt for Emacs 29.
9b0bf694da4 ; Fix ldefs-boot.el.
0cb86a348c7 ; Update ChangeLog.4.
# Conflicts:
# ChangeLog.4
Diffstat (limited to 'lisp/subr.el')
-rw-r--r-- | lisp/subr.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index a7a67c570b6..427014cedc3 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -7173,12 +7173,13 @@ CONDITION is either: (funcall match (list condition)))) (defun match-buffers (condition &optional buffers arg) - "Return a list of buffers that match CONDITION. -See `buffer-match-p' for details on CONDITION. By default all -buffers are checked, this can be restricted by passing an -optional argument BUFFERS, set to a list of buffers to check. -ARG is passed to `buffer-match', for predicate conditions in -CONDITION." + "Return a list of buffers that match CONDITION, or nil if none match. +See `buffer-match-p' for various supported CONDITIONs. +By default all buffers are checked, but the optional +argument BUFFERS can restrict that: its value should be +an explicit list of buffers to check. +Optional argument ARG is passed to `buffer-match-p', for +predicate conditions in CONDITION." (let (bufs) (dolist (buf (or buffers (buffer-list))) (when (buffer-match-p condition (get-buffer buf) arg) |