diff options
author | Eli Zaretskii <eliz@gnu.org> | 2023-04-10 12:30:23 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-04-10 12:30:23 +0300 |
commit | 2445100d7d6dd698d561e554a35fe2c9f87edc9f (patch) | |
tree | 3c4ccdad3f1b9f7ab4084f9482960a9ff4ebfdc0 /lisp/subr.el | |
parent | d4d0da96f0b474ccab64349c12d5a7638b81bbdb (diff) | |
download | emacs-2445100d7d6dd698d561e554a35fe2c9f87edc9f.tar.gz |
; Improve documentation of 'match-buffers'
* doc/lispref/buffers.texi (Buffer List):
* lisp/subr.el (match-buffers): Fix documentation of
'buffer-match-p' and 'match-buffers'.
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 46dcd97d829..d4428aef765 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -7128,12 +7128,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) |