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 /doc | |
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 'doc')
-rw-r--r-- | doc/lispref/buffers.texi | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/doc/lispref/buffers.texi b/doc/lispref/buffers.texi index b56006e5aa9..86c47ae7310 100644 --- a/doc/lispref/buffers.texi +++ b/doc/lispref/buffers.texi @@ -959,9 +959,9 @@ infinite recursion. @defun buffer-match-p condition buffer-or-name &optional arg This function checks if a buffer designated by @code{buffer-or-name} -satisfies a @code{condition}. Optional third argument @var{arg} is -passed to the predicate function in @var{condition}. A condition can -be one of the following: +satisfies the specified @code{condition}. Optional third argument +@var{arg} is passed to the predicate function in @var{condition}. A +valid @var{condition} can be one of the following: @itemize @bullet{} @item A string, interpreted as a regular expression. The buffer @@ -990,21 +990,23 @@ Satisfied if @emph{all} the conditions in @var{conds} satisfy Satisfied if the buffer's major mode derives from @var{expr}. @item major-mode Satisfied if the buffer's major mode is equal to @var{expr}. Prefer -using @code{derived-mode} instead when both can work. +using @code{derived-mode} instead, when both can work. @end table @item t Satisfied by any buffer. A convenient alternative to @code{""} (empty -string), @code{(and)} (empty conjunction) or @code{always}. +string) or @code{(and)} (empty conjunction). @end itemize @end defun @defun match-buffers condition &optional buffer-list arg -This function returns a list of all buffers that satisfy a -@code{condition}, as defined for @code{buffer-match-p}. By default -all buffers are considered, but this can be restricted via the second -optional @code{buffer-list} argument. Optional third argument -@var{arg} will be used by @var{condition} in the same way as -@code{buffer-match-p} does. +This function returns a list of all buffers that satisfy the +@code{condition}. If no buffers match, the function returns +@code{nil}. The argument @var{condition} is as defined in +@code{buffer-match-p} above. By default, all the buffers are +considered, but this can be restricted via the optional argument +@code{buffer-list}, which should be a list of buffers to consider. +Optional third argument @var{arg} will be passed to @var{condition} in +the same way as @code{buffer-match-p} does. @end defun @node Creating Buffers |