diff options
| author | Kim F. Storm | 2003-02-25 12:33:32 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-02-25 12:33:32 +0000 |
| commit | 932357b45cb6c88e5a74cc14934b1caeb2d666c7 (patch) | |
| tree | 0283c2b23e5d0213ed922d8119c69db4ca164468 /src | |
| parent | b92843717547cf84299a2aad833450c0032e4732 (diff) | |
| download | emacs-932357b45cb6c88e5a74cc14934b1caeb2d666c7.tar.gz emacs-932357b45cb6c88e5a74cc14934b1caeb2d666c7.zip | |
(redisplay_window): Fix infinite loop in redisplay.
If centering point failed to make whole line visible and vscroll
is non-zero, disable vscroll and try centering point again.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/xdisp.c | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 59b088cfc73..6add287016b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2003-02-25 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * xdisp.c (redisplay_window): Fix infinite loop in redisplay. | ||
| 4 | If centering point failed to make whole line visible and vscroll | ||
| 5 | is non-zero, disable vscroll and try centering point again. | ||
| 6 | |||
| 7 | * lread.c (read1): Accept `single space' syntax like (? x). | ||
| 8 | |||
| 1 | 2003-02-25 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 9 | 2003-02-25 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 2 | 10 | ||
| 3 | * keyboard.c (cancel_hourglass_unwind): Surround with | 11 | * keyboard.c (cancel_hourglass_unwind): Surround with |
diff --git a/src/xdisp.c b/src/xdisp.c index f9ad45445d4..457b3dd0ac9 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -10822,6 +10822,14 @@ redisplay_window (window, just_this_one_p) | |||
| 10822 | 10822 | ||
| 10823 | if (!make_cursor_line_fully_visible (w)) | 10823 | if (!make_cursor_line_fully_visible (w)) |
| 10824 | { | 10824 | { |
| 10825 | /* If vscroll is enabled, disable it and try again. */ | ||
| 10826 | if (w->vscroll) | ||
| 10827 | { | ||
| 10828 | w->vscroll = 0; | ||
| 10829 | clear_glyph_matrix (w->desired_matrix); | ||
| 10830 | goto recenter; | ||
| 10831 | } | ||
| 10832 | |||
| 10825 | /* If centering point failed to make the whole line visible, | 10833 | /* If centering point failed to make the whole line visible, |
| 10826 | put point at the top instead. That has to make the whole line | 10834 | put point at the top instead. That has to make the whole line |
| 10827 | visible, if it can be done. */ | 10835 | visible, if it can be done. */ |