diff options
| author | Richard M. Stallman | 1995-01-18 22:13:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-01-18 22:13:34 +0000 |
| commit | a58ec57dd21b089203fe2215d4064b5f1f48a674 (patch) | |
| tree | a45bc5e3a2fec895209276e1a74387d936d05bef /src | |
| parent | 346169bfdcc1a50bfdb91865a75366053c239dd3 (diff) | |
| download | emacs-a58ec57dd21b089203fe2215d4064b5f1f48a674.tar.gz emacs-a58ec57dd21b089203fe2215d4064b5f1f48a674.zip | |
(Qtemp_buffer_show_hook): New hook.
(syms_of_window): Init and staticpro it.
(temp_output_buffer_show): Run the hook.
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index bb306dd4b8e..9290fd53254 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -88,6 +88,9 @@ Lisp_Object Vspecial_display_regexps; | |||
| 88 | /* Function to pop up a special frame. */ | 88 | /* Function to pop up a special frame. */ |
| 89 | Lisp_Object Vspecial_display_function; | 89 | Lisp_Object Vspecial_display_function; |
| 90 | 90 | ||
| 91 | /* Hook run at end of temp_output_buffer_show. */ | ||
| 92 | Lisp_Object Qtemp_buffer_show_hook; | ||
| 93 | |||
| 91 | /* Fdisplay_buffer always splits the largest window | 94 | /* Fdisplay_buffer always splits the largest window |
| 92 | if that window is more than this high. */ | 95 | if that window is more than this high. */ |
| 93 | int split_height_threshold; | 96 | int split_height_threshold; |
| @@ -2035,6 +2038,9 @@ temp_output_buffer_show (buf) | |||
| 2035 | set_marker_restricted (w->start, make_number (1), buf); | 2038 | set_marker_restricted (w->start, make_number (1), buf); |
| 2036 | set_marker_restricted (w->pointm, make_number (1), buf); | 2039 | set_marker_restricted (w->pointm, make_number (1), buf); |
| 2037 | } | 2040 | } |
| 2041 | |||
| 2042 | if (!NILP (Vrun_hooks)) | ||
| 2043 | call1 (Vrun_hooks, Qtemp_buffer_show_hook); | ||
| 2038 | } | 2044 | } |
| 2039 | 2045 | ||
| 2040 | static | 2046 | static |
| @@ -3250,6 +3256,9 @@ syms_of_window () | |||
| 3250 | Qwindow_live_p = intern ("window-live-p"); | 3256 | Qwindow_live_p = intern ("window-live-p"); |
| 3251 | staticpro (&Qwindow_live_p); | 3257 | staticpro (&Qwindow_live_p); |
| 3252 | 3258 | ||
| 3259 | Qtemp_buffer_show_hook = intern ("Qtemp-buffer-show-hook"); | ||
| 3260 | staticpro (&Qtemp_buffer_show_hook); | ||
| 3261 | |||
| 3253 | #ifndef MULTI_FRAME | 3262 | #ifndef MULTI_FRAME |
| 3254 | /* Make sure all windows get marked */ | 3263 | /* Make sure all windows get marked */ |
| 3255 | staticpro (&minibuf_window); | 3264 | staticpro (&minibuf_window); |