aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-01-18 22:13:34 +0000
committerRichard M. Stallman1995-01-18 22:13:34 +0000
commita58ec57dd21b089203fe2215d4064b5f1f48a674 (patch)
treea45bc5e3a2fec895209276e1a74387d936d05bef /src
parent346169bfdcc1a50bfdb91865a75366053c239dd3 (diff)
downloademacs-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.c9
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. */
89Lisp_Object Vspecial_display_function; 89Lisp_Object Vspecial_display_function;
90 90
91/* Hook run at end of temp_output_buffer_show. */
92Lisp_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. */
93int split_height_threshold; 96int 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
2040static 2046static
@@ -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);