diff options
author | Philip Kaludercic <philipk@posteo.net> | 2022-04-17 01:11:06 +0200 |
---|---|---|
committer | Philip Kaludercic <philipk@posteo.net> | 2022-04-17 14:04:44 +0200 |
commit | b5f70c239e87e5f38fd70181ef75cd28a43a8b41 (patch) | |
tree | 60b32666643ef40e8826cc4c16487328b7048560 /etc | |
parent | 5be9a9cacfaae1959c4b95c45c146044a181ad20 (diff) | |
download | emacs-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/NEWS | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |