diff options
| author | Martin Rudalics | 2019-01-17 10:21:07 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2019-01-17 10:21:07 +0100 |
| commit | 0aece3e1181e66f2a1a067ae876e55bdaa45edd5 (patch) | |
| tree | 240c9dca3ff8a81460e5150d6b24993766bd707e /etc | |
| parent | 978cf88bda9c9b41f1cc20cf8e53a9e6caeb91be (diff) | |
| download | emacs-0aece3e1181e66f2a1a067ae876e55bdaa45edd5.tar.gz emacs-0aece3e1181e66f2a1a067ae876e55bdaa45edd5.zip | |
Expand spectrum of window change functions
* src/window.c (run_window_change_functions): Run window
change functions for Qwindow_state_change_functions.
(resize_frame_windows): Set frame's window_change slot when
single-window frames change size.
(Qwindow_state_change_functions): New symbol.
(Vwindow_state_change_functions): New Lisp variable.
* doc/lispref/windows.texi (Selecting Windows): Mention
'window-selection/state-change-functions' and add reference to
Window Hooks.
(Window Hooks): Document 'window-state-change-functions'.
* etc/NEWS: Mention new hook 'window-state-change-functions'.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 9 |
1 files changed, 6 insertions, 3 deletions
| @@ -1303,14 +1303,17 @@ of the Emacs Lisp Reference manual for more detail. | |||
| 1303 | 1303 | ||
| 1304 | +++ | 1304 | +++ |
| 1305 | ** Window change functions have been redesigned completely. | 1305 | ** Window change functions have been redesigned completely. |
| 1306 | |||
| 1306 | Hooks reacting to window changes run now only when redisplay detects | 1307 | Hooks reacting to window changes run now only when redisplay detects |
| 1307 | that a change has actually occurred. The four hooks provided are: | 1308 | that a change has actually occurred. The five hooks provided are: |
| 1308 | 'window-buffer-change-functions' (run after window buffers have | 1309 | 'window-buffer-change-functions' (run after window buffers have |
| 1309 | changed), 'window-size-change-functions' (run after a window was | 1310 | changed), 'window-size-change-functions' (run after a window was |
| 1310 | assigned a new buffer or size), 'window-configuration-change-hook' | 1311 | assigned a new buffer or size), 'window-configuration-change-hook' |
| 1311 | (like the former but run also when a window was deleted) and | 1312 | (like the former but run also when a window was deleted), |
| 1312 | 'window-selection-change-functions' (run when the selected window | 1313 | 'window-selection-change-functions' (run when the selected window |
| 1313 | changed). 'window-scroll-functions' are unaffected by these changes. | 1314 | changed) and 'window-state-change-functions' (run when any of the |
| 1315 | preceding ones is run). 'window-scroll-functions' are unaffected by | ||
| 1316 | these changes. | ||
| 1314 | 1317 | ||
| 1315 | In addition, a number of functions now allow the caller to detect what | 1318 | In addition, a number of functions now allow the caller to detect what |
| 1316 | has changed since last redisplay: 'window-old-buffer' returns for any | 1319 | has changed since last redisplay: 'window-old-buffer' returns for any |