aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMartin Rudalics2019-01-17 10:21:07 +0100
committerMartin Rudalics2019-01-17 10:21:07 +0100
commit0aece3e1181e66f2a1a067ae876e55bdaa45edd5 (patch)
tree240c9dca3ff8a81460e5150d6b24993766bd707e /etc
parent978cf88bda9c9b41f1cc20cf8e53a9e6caeb91be (diff)
downloademacs-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/NEWS9
1 files changed, 6 insertions, 3 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 02503073c1c..10bcc5a2ecc 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
1306Hooks reacting to window changes run now only when redisplay detects 1307Hooks reacting to window changes run now only when redisplay detects
1307that a change has actually occurred. The four hooks provided are: 1308that 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
1309changed), 'window-size-change-functions' (run after a window was 1310changed), 'window-size-change-functions' (run after a window was
1310assigned a new buffer or size), 'window-configuration-change-hook' 1311assigned 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
1313changed). 'window-scroll-functions' are unaffected by these changes. 1314changed) and 'window-state-change-functions' (run when any of the
1315preceding ones is run). 'window-scroll-functions' are unaffected by
1316these changes.
1314 1317
1315In addition, a number of functions now allow the caller to detect what 1318In addition, a number of functions now allow the caller to detect what
1316has changed since last redisplay: 'window-old-buffer' returns for any 1319has changed since last redisplay: 'window-old-buffer' returns for any