summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorPhilip Kaludercic <philipk@posteo.net>2022-04-17 01:11:06 +0200
committerPhilip Kaludercic <philipk@posteo.net>2022-04-17 14:04:44 +0200
commitb5f70c239e87e5f38fd70181ef75cd28a43a8b41 (patch)
tree60b32666643ef40e8826cc4c16487328b7048560 /etc
parent5be9a9cacfaae1959c4b95c45c146044a181ad20 (diff)
downloademacs-b5f70c239e87e5f38fd70181ef75cd28a43a8b41.tar.gz
emacs-b5f70c239e87e5f38fd70181ef75cd28a43a8b41.tar.bz2
emacs-b5f70c239e87e5f38fd70181ef75cd28a43a8b41.zip
Further improve buffer-match-p related documentation
* doc/lispref/buffers.texi (Buffer List): Add entries for * buffer-match-p and match-buffers * etc/NEWS: Give examples for buffer-match-p conditions * lisp/window.el (display-buffer-assq-regexp): Mention what happens when no entry in the alist satisfies a condition.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 0245ec8c689..071fdd7aee9 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1548,7 +1548,11 @@ This hook is run before 'x-popup-menu' is about to display a
deck-of-cards menu on screen.
** New function 'buffer-match-p'
-Check if a buffer matches a condition, specified using a DSL.
+Check if a buffer satisfies some condition. Some examples for
+conditions can be regular expressions that match a buffer name, a
+cons-cell like (major-mode . shell-mode) that matches any buffer where
+major-mode is shell-mode or a combined with a condition like (and
+"\\`\\*.+\\*\\'" (major-mode . special-mode)).
** New function 'match-buffers'
Use 'buffer-match-p' to gather a list of buffers that match a