diff options
| author | Karl Heuer | 1997-10-23 06:52:01 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-23 06:52:01 +0000 |
| commit | abb4c08fef429bc1a1215cde869056bfe122e03e (patch) | |
| tree | e417f1c89b777c306209d75a0a9e397a657808b4 /src | |
| parent | e4b201bbbbf0d6177c21fa2db508feb16520b7fe (diff) | |
| download | emacs-abb4c08fef429bc1a1215cde869056bfe122e03e.tar.gz emacs-abb4c08fef429bc1a1215cde869056bfe122e03e.zip | |
(redisplay_window): If clip_changed, always run
window-scroll-functions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index b7c0c274c1f..933cff33848 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1917,6 +1917,11 @@ redisplay_window (window, just_this_one, preserve_echo_area) | |||
| 1917 | if (WINDOW_FULL_WIDTH_P (w)) | 1917 | if (WINDOW_FULL_WIDTH_P (w)) |
| 1918 | preserve_my_columns (w); | 1918 | preserve_my_columns (w); |
| 1919 | */ | 1919 | */ |
| 1920 | if (current_buffer->clip_changed | ||
| 1921 | && ! NILP (Vwindow_scroll_functions)) | ||
| 1922 | run_hook_with_args_2 (Qwindow_scroll_functions, window, | ||
| 1923 | make_number (marker_position (w->start))); | ||
| 1924 | |||
| 1920 | goto done; | 1925 | goto done; |
| 1921 | } | 1926 | } |
| 1922 | /* Don't bother trying redisplay with same start; | 1927 | /* Don't bother trying redisplay with same start; |
| @@ -1981,6 +1986,12 @@ redisplay_window (window, just_this_one, preserve_echo_area) | |||
| 1981 | || beg_unchanged < startp) | 1986 | || beg_unchanged < startp) |
| 1982 | /* Forget any recorded base line for line number display. */ | 1987 | /* Forget any recorded base line for line number display. */ |
| 1983 | w->base_line_number = Qnil; | 1988 | w->base_line_number = Qnil; |
| 1989 | |||
| 1990 | if (current_buffer->clip_changed | ||
| 1991 | && ! NILP (Vwindow_scroll_functions)) | ||
| 1992 | run_hook_with_args_2 (Qwindow_scroll_functions, window, | ||
| 1993 | make_number (marker_position (w->start))); | ||
| 1994 | |||
| 1984 | goto done; | 1995 | goto done; |
| 1985 | } | 1996 | } |
| 1986 | else | 1997 | else |