diff options
| author | Sean Whitton | 2025-05-01 20:55:56 +0800 |
|---|---|---|
| committer | Sean Whitton | 2025-05-01 20:56:36 +0800 |
| commit | 343f0c44f35c41b93c66f67da0ddeceb98bbdb93 (patch) | |
| tree | c6956895b0e97c3d99877ee0f9cf9eae7c27457f /doc | |
| parent | 7ae86074231159647d9bcb579dc5ea5a569acf0d (diff) | |
| download | emacs-343f0c44f35c41b93c66f67da0ddeceb98bbdb93.tar.gz emacs-343f0c44f35c41b93c66f67da0ddeceb98bbdb93.zip | |
New this-command buffer display action alist entry
* lisp/subr.el (buffer-match-p): New this-command cons cell
condition to implement new this-command buffer display action
alist entry (bug#78082).
* lisp/window.el (display-buffer):
* doc/lispref/windows.texi (Buffer Display Action Alists):
* etc/NEWS: Document the new buffer display action alist entry.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/windows.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index 3a8dffd1af1..82b670fd634 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -3914,6 +3914,14 @@ List, @code{buffer-match-p}}. Thus, if a Lisp program uses a particular | |||
| 3914 | @var{symbol} as the category when calling @code{display-buffer}, users | 3914 | @var{symbol} as the category when calling @code{display-buffer}, users |
| 3915 | can customize how these buffers will be displayed by including such an | 3915 | can customize how these buffers will be displayed by including such an |
| 3916 | entry in @code{display-buffer-alist}. | 3916 | entry in @code{display-buffer-alist}. |
| 3917 | |||
| 3918 | @vindex this-command@r{, a buffer display action alist entry} | ||
| 3919 | @item this-command | ||
| 3920 | The value is a symbol naming a command or a list of such symbols. It | ||
| 3921 | means the condition when that command, or any of those commands, are now | ||
| 3922 | being executed. You can use this in the condition part of | ||
| 3923 | @code{display-buffer-alist} entries to match buffers displayed during | ||
| 3924 | the execution of particular commands. | ||
| 3917 | @end table | 3925 | @end table |
| 3918 | 3926 | ||
| 3919 | By convention, the entries @code{window-height}, @code{window-width} | 3927 | By convention, the entries @code{window-height}, @code{window-width} |