diff options
| author | Lars Ingebrigtsen | 2021-01-07 16:35:48 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-01-07 16:35:48 +0100 |
| commit | 40a0f8a3a2ac790bb398c321e7eb6928da330511 (patch) | |
| tree | f3afec5a6136ff483ca3c6e7e1427b2c2757eb6d /etc | |
| parent | 0e6b74d2047452bb1fc3285921465132aeda0cb7 (diff) | |
| download | emacs-40a0f8a3a2ac790bb398c321e7eb6928da330511.tar.gz emacs-40a0f8a3a2ac790bb398c321e7eb6928da330511.zip | |
Add a display-buffer window selection function that's more like XEmacs
* doc/lispref/windows.texi (Buffer Display Action Functions):
Document it.
* lisp/window.el (display-buffer--action-function-custom-type): Add.
(display-buffer): Mention it.
(display-buffer-use-least-recent-window): New function (bug#45688).
* src/window.c (Fwindow_bump_use_time): New function.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -373,6 +373,15 @@ disabled entirely. | |||
| 373 | 373 | ||
| 374 | ** Windows | 374 | ** Windows |
| 375 | 375 | ||
| 376 | +++ | ||
| 377 | *** New 'display-buffer' function 'display-buffer-use-least-recent-window' | ||
| 378 | This is like 'display-buffer-use-some-window', but won't reuse the | ||
| 379 | current window, and when called repeatedly will try not to reuse a | ||
| 380 | previously selected window. | ||
| 381 | |||
| 382 | *** New function 'window-bump-use-time'. | ||
| 383 | This updates the use time of a window. | ||
| 384 | |||
| 376 | *** The key prefix 'C-x 4 1' displays next command buffer in the same window. | 385 | *** The key prefix 'C-x 4 1' displays next command buffer in the same window. |
| 377 | It's bound to the command 'same-window-prefix' that requests the buffer | 386 | It's bound to the command 'same-window-prefix' that requests the buffer |
| 378 | of the next command to be displayed in the same window. | 387 | of the next command to be displayed in the same window. |