diff options
| author | Karl Heuer | 1998-09-13 03:54:01 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-09-13 03:54:01 +0000 |
| commit | 26a9b1f3b7c87d7b0374c1c9750ee563d546c07c (patch) | |
| tree | a849a57271385608f36f442732d2eb30ab0afec0 /src | |
| parent | def7db1da1e0fa89f4c4da31d5fbf1616a76ec92 (diff) | |
| download | emacs-26a9b1f3b7c87d7b0374c1c9750ee563d546c07c.tar.gz emacs-26a9b1f3b7c87d7b0374c1c9750ee563d546c07c.zip | |
(redisplay_internal): Use TEMP_SET_PT_BOTH
instead of SET_PT_BOTH.
(try_window_id, display_text_line): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index fe3d112adda..cf6ae256073 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1206,7 +1206,7 @@ redisplay_internal (preserve_echo_area) | |||
| 1206 | 1 << (BITS_PER_SHORT - 1), | 1206 | 1 << (BITS_PER_SHORT - 1), |
| 1207 | window_internal_width (w) - 1, | 1207 | window_internal_width (w) - 1, |
| 1208 | XINT (w->hscroll), 0, w); | 1208 | XINT (w->hscroll), 0, w); |
| 1209 | SET_PT_BOTH (opoint, opoint_byte); | 1209 | TEMP_SET_PT_BOTH (opoint, opoint_byte); |
| 1210 | if (val.hpos != this_line_start_hpos) | 1210 | if (val.hpos != this_line_start_hpos) |
| 1211 | goto cancel; | 1211 | goto cancel; |
| 1212 | 1212 | ||
| @@ -2698,13 +2698,13 @@ try_window_id (window) | |||
| 2698 | 2698 | ||
| 2699 | /* Find first visible newline after which no more is changed. */ | 2699 | /* Find first visible newline after which no more is changed. */ |
| 2700 | opoint = PT, opoint_byte = PT_BYTE; | 2700 | opoint = PT, opoint_byte = PT_BYTE; |
| 2701 | SET_PT (Z - max (end_unchanged, Z - ZV)); | 2701 | TEMP_SET_PT (Z - max (end_unchanged, Z - ZV)); |
| 2702 | scan_newline (PT, PT_BYTE, ZV, ZV_BYTE, 1, 1); | 2702 | scan_newline (PT, PT_BYTE, ZV, ZV_BYTE, 1, 1); |
| 2703 | if (selective > 0) | 2703 | if (selective > 0) |
| 2704 | while (PT < ZV - 1 && indented_beyond_p (PT, PT_BYTE, selective)) | 2704 | while (PT < ZV - 1 && indented_beyond_p (PT, PT_BYTE, selective)) |
| 2705 | scan_newline (PT, PT_BYTE, ZV, ZV_BYTE, 1, 1); | 2705 | scan_newline (PT, PT_BYTE, ZV, ZV_BYTE, 1, 1); |
| 2706 | tem = PT; | 2706 | tem = PT; |
| 2707 | SET_PT_BOTH (opoint, opoint_byte); | 2707 | TEMP_SET_PT_BOTH (opoint, opoint_byte); |
| 2708 | 2708 | ||
| 2709 | /* Compute the cursor position after that newline. */ | 2709 | /* Compute the cursor position after that newline. */ |
| 2710 | ep = *compute_motion (pos, vpos, val.hpos, did_motion, tem, | 2710 | ep = *compute_motion (pos, vpos, val.hpos, did_motion, tem, |
| @@ -3668,7 +3668,7 @@ display_text_line (w, start, start_byte, vpos, hpos, taboffset, ovstr_done) | |||
| 3668 | pos--; | 3668 | pos--; |
| 3669 | pos_byte--; | 3669 | pos_byte--; |
| 3670 | } | 3670 | } |
| 3671 | SET_PT_BOTH (opoint, opoint_byte); | 3671 | TEMP_SET_PT_BOTH (opoint, opoint_byte); |
| 3672 | } | 3672 | } |
| 3673 | if (invis && selective_rlen > 0 && p1 >= leftmargin) | 3673 | if (invis && selective_rlen > 0 && p1 >= leftmargin) |
| 3674 | { | 3674 | { |
| @@ -3744,7 +3744,7 @@ display_text_line (w, start, start_byte, vpos, hpos, taboffset, ovstr_done) | |||
| 3744 | int opoint = PT, opoint_byte = PT_BYTE; | 3744 | int opoint = PT, opoint_byte = PT_BYTE; |
| 3745 | scan_newline (pos, pos_byte, ZV, ZV_BYTE, 1, 1); | 3745 | scan_newline (pos, pos_byte, ZV, ZV_BYTE, 1, 1); |
| 3746 | pos = PT, pos_byte = PT_BYTE; | 3746 | pos = PT, pos_byte = PT_BYTE; |
| 3747 | SET_PT_BOTH (opoint, opoint_byte); | 3747 | TEMP_SET_PT_BOTH (opoint, opoint_byte); |
| 3748 | 3748 | ||
| 3749 | if (FETCH_BYTE (pos_byte - 1) == '\n') | 3749 | if (FETCH_BYTE (pos_byte - 1) == '\n') |
| 3750 | pos--, pos_byte--; | 3750 | pos--, pos_byte--; |
| @@ -3962,7 +3962,7 @@ display_text_line (w, start, start_byte, vpos, hpos, taboffset, ovstr_done) | |||
| 3962 | int opoint = PT, opoint_byte = PT_BYTE; | 3962 | int opoint = PT, opoint_byte = PT_BYTE; |
| 3963 | 3963 | ||
| 3964 | /* If stopped due to a newline, start next line after it */ | 3964 | /* If stopped due to a newline, start next line after it */ |
| 3965 | SET_PT_BOTH (pos + 1, pos_byte + 1); | 3965 | TEMP_SET_PT_BOTH (pos + 1, pos_byte + 1); |
| 3966 | 3966 | ||
| 3967 | val.tab_offset = 0; | 3967 | val.tab_offset = 0; |
| 3968 | /* Check again for hidden lines, in case the newline occurred exactly | 3968 | /* Check again for hidden lines, in case the newline occurred exactly |
| @@ -3972,7 +3972,7 @@ display_text_line (w, start, start_byte, vpos, hpos, taboffset, ovstr_done) | |||
| 3972 | scan_newline (PT, PT_BYTE, ZV, ZV_BYTE, 1, 1); | 3972 | scan_newline (PT, PT_BYTE, ZV, ZV_BYTE, 1, 1); |
| 3973 | 3973 | ||
| 3974 | pos = PT, pos_byte = PT_BYTE; | 3974 | pos = PT, pos_byte = PT_BYTE; |
| 3975 | SET_PT_BOTH (opoint, opoint_byte); | 3975 | TEMP_SET_PT_BOTH (opoint, opoint_byte); |
| 3976 | } | 3976 | } |
| 3977 | else | 3977 | else |
| 3978 | /* Stopped due to right margin of window */ | 3978 | /* Stopped due to right margin of window */ |
| @@ -3981,7 +3981,7 @@ display_text_line (w, start, start_byte, vpos, hpos, taboffset, ovstr_done) | |||
| 3981 | { | 3981 | { |
| 3982 | int opoint = PT, opoint_byte = PT_BYTE; | 3982 | int opoint = PT, opoint_byte = PT_BYTE; |
| 3983 | 3983 | ||
| 3984 | SET_PT_BOTH (pos, pos_byte); | 3984 | TEMP_SET_PT_BOTH (pos, pos_byte); |
| 3985 | *p1++ = fix_glyph (f, truncator, 0); | 3985 | *p1++ = fix_glyph (f, truncator, 0); |
| 3986 | /* Truncating => start next line after next newline, | 3986 | /* Truncating => start next line after next newline, |
| 3987 | and point is on this line if it is before the newline, | 3987 | and point is on this line if it is before the newline, |
| @@ -3992,7 +3992,7 @@ display_text_line (w, start, start_byte, vpos, hpos, taboffset, ovstr_done) | |||
| 3992 | && indented_beyond_p (PT, PT_BYTE, selective)); | 3992 | && indented_beyond_p (PT, PT_BYTE, selective)); |
| 3993 | pos = PT, pos_byte = PT_BYTE; | 3993 | pos = PT, pos_byte = PT_BYTE; |
| 3994 | val.hpos = XINT (w->hscroll) ? 1 - XINT (w->hscroll) : 0; | 3994 | val.hpos = XINT (w->hscroll) ? 1 - XINT (w->hscroll) : 0; |
| 3995 | SET_PT_BOTH (opoint, opoint_byte); | 3995 | TEMP_SET_PT_BOTH (opoint, opoint_byte); |
| 3996 | 3996 | ||
| 3997 | lastpos = pos - (FETCH_BYTE (pos_byte - 1) == '\n'); | 3997 | lastpos = pos - (FETCH_BYTE (pos_byte - 1) == '\n'); |
| 3998 | lastpos_byte = CHAR_TO_BYTE (lastpos); | 3998 | lastpos_byte = CHAR_TO_BYTE (lastpos); |