diff options
| author | Gerd Moellmann | 1999-11-07 22:36:55 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-11-07 22:36:55 +0000 |
| commit | 55b064bdb765df242bf8848385007a15e2e5fd28 (patch) | |
| tree | 82a8075ec8d1d9ea1f6ba4fda626b0716e6f7752 /src | |
| parent | 01e9b9dfb9476cb4e054f3a0b07b819ddd2c0235 (diff) | |
| download | emacs-55b064bdb765df242bf8848385007a15e2e5fd28.tar.gz emacs-55b064bdb765df242bf8848385007a15e2e5fd28.zip | |
Remove conditional computation on USE_TEXT_PROPERTIES.
(resize_mini_window): Fix computation of needed
mini-window height.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/xdisp.c | 16 |
2 files changed, 11 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c7ff43ac1e7..60123628e87 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,7 +1,10 @@ | |||
| 1 | 1999-11-07 Gerd Moellmann <gerd@gnu.org> | 1 | 1999-11-07 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * alloc.c, buffer.c, editfns.c: Remove conditional compilation on | 3 | * xdisp.c (resize_mini_window): Fix computation of needed |
| 4 | USE_TEXT_PROPERTIES. | 4 | mini-window height. |
| 5 | |||
| 6 | * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional | ||
| 7 | compilation on USE_TEXT_PROPERTIES. | ||
| 5 | 8 | ||
| 6 | * Fbyte_code: Use block statements in cases and declare v1 and v2 | 9 | * Fbyte_code: Use block statements in cases and declare v1 and v2 |
| 7 | locally there. Rearrange case statements so that thos most | 10 | locally there. Rearrange case statements so that thos most |
diff --git a/src/xdisp.c b/src/xdisp.c index 7364171f00f..484474c2ab6 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -2976,7 +2976,6 @@ back_to_previous_visible_line_start (it) | |||
| 2976 | && indented_beyond_p (IT_CHARPOS (*it), IT_BYTEPOS (*it), | 2976 | && indented_beyond_p (IT_CHARPOS (*it), IT_BYTEPOS (*it), |
| 2977 | it->selective)) | 2977 | it->selective)) |
| 2978 | visible_p = 0; | 2978 | visible_p = 0; |
| 2979 | #ifdef USE_TEXT_PROPERTIES | ||
| 2980 | else | 2979 | else |
| 2981 | { | 2980 | { |
| 2982 | Lisp_Object prop; | 2981 | Lisp_Object prop; |
| @@ -2985,7 +2984,6 @@ back_to_previous_visible_line_start (it) | |||
| 2985 | if (TEXT_PROP_MEANS_INVISIBLE (prop)) | 2984 | if (TEXT_PROP_MEANS_INVISIBLE (prop)) |
| 2986 | visible_p = 0; | 2985 | visible_p = 0; |
| 2987 | } | 2986 | } |
| 2988 | #endif /* USE_TEXT_PROPERTIES */ | ||
| 2989 | 2987 | ||
| 2990 | /* Back one more newline if the current one is invisible. */ | 2988 | /* Back one more newline if the current one is invisible. */ |
| 2991 | if (!visible_p) | 2989 | if (!visible_p) |
| @@ -4404,7 +4402,6 @@ invisible_text_between_p (it, start_charpos, end_charpos) | |||
| 4404 | struct it *it; | 4402 | struct it *it; |
| 4405 | int start_charpos, end_charpos; | 4403 | int start_charpos, end_charpos; |
| 4406 | { | 4404 | { |
| 4407 | #ifdef USE_TEXT_PROPERTIES | ||
| 4408 | Lisp_Object prop, limit; | 4405 | Lisp_Object prop, limit; |
| 4409 | int invisible_found_p; | 4406 | int invisible_found_p; |
| 4410 | 4407 | ||
| @@ -4424,10 +4421,6 @@ invisible_text_between_p (it, start_charpos, end_charpos) | |||
| 4424 | } | 4421 | } |
| 4425 | 4422 | ||
| 4426 | return invisible_found_p; | 4423 | return invisible_found_p; |
| 4427 | |||
| 4428 | #else /* not USE_TEXT_PROPERTIES */ | ||
| 4429 | return 0; | ||
| 4430 | #endif /* not USE_TEXT_PROPERTIES */ | ||
| 4431 | } | 4424 | } |
| 4432 | 4425 | ||
| 4433 | 4426 | ||
| @@ -5518,10 +5511,13 @@ resize_mini_window (w, exact_p) | |||
| 5518 | max_height = min (total_height, max_height); | 5511 | max_height = min (total_height, max_height); |
| 5519 | 5512 | ||
| 5520 | /* Find out the height of the text in the window. */ | 5513 | /* Find out the height of the text in the window. */ |
| 5514 | last_height = 0; | ||
| 5521 | move_it_to (&it, ZV, -1, -1, -1, MOVE_TO_POS); | 5515 | move_it_to (&it, ZV, -1, -1, -1, MOVE_TO_POS); |
| 5522 | height = ((unit - 1 + it.current_y + it.max_ascent + it.max_descent) | 5516 | if (it.max_ascent == 0 && it.max_descent == 0) |
| 5523 | / unit); | 5517 | height = it.current_y + last_height; |
| 5524 | height = max (1, height); | 5518 | else |
| 5519 | height = it.current_y + it.max_ascent + it.max_descent; | ||
| 5520 | height = (height + unit - 1) / unit; | ||
| 5525 | 5521 | ||
| 5526 | /* Compute a suitable window start. */ | 5522 | /* Compute a suitable window start. */ |
| 5527 | if (height > max_height) | 5523 | if (height > max_height) |