aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-02 02:41:24 +0000
committerRichard M. Stallman1994-10-02 02:41:24 +0000
commitdf0b5ea16eff7eeefe0b9c2c6f675b81a49eb212 (patch)
treeb9debcef8882699d9d9ffbfb022f050ed493577b /src
parent481c0295570355f3d805771de3e9393ffabf662e (diff)
downloademacs-df0b5ea16eff7eeefe0b9c2c6f675b81a49eb212.tar.gz
emacs-df0b5ea16eff7eeefe0b9c2c6f675b81a49eb212.zip
(redisplay_window): If we set PT, and that alters a region
being displayed, call try_window again.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index b78da7692ad..1eddfd23c39 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1148,7 +1148,6 @@ redisplay_window (window, just_this_one)
1148 try_window (window, startp); 1148 try_window (window, startp);
1149 if (cursor_vpos < 0) 1149 if (cursor_vpos < 0)
1150 { 1150 {
1151 /* ??? What should happen here if highlighting a region? */
1152 /* If point does not appear, move point so it does appear */ 1151 /* If point does not appear, move point so it does appear */
1153 pos = *compute_motion (startp, 0, 1152 pos = *compute_motion (startp, 0,
1154 ((EQ (window, minibuf_window) && startp == 1) 1153 ((EQ (window, minibuf_window) && startp == 1)
@@ -1168,6 +1167,12 @@ redisplay_window (window, just_this_one)
1168 FRAME_CURSOR_X (f) = max (0, pos.hpos) + XFASTINT (w->left); 1167 FRAME_CURSOR_X (f) = max (0, pos.hpos) + XFASTINT (w->left);
1169 FRAME_CURSOR_Y (f) = pos.vpos + XFASTINT (w->top); 1168 FRAME_CURSOR_Y (f) = pos.vpos + XFASTINT (w->top);
1170 } 1169 }
1170 /* If we are highlighting the region,
1171 then we just changed the region, so redisplay to show it. */
1172 cancel_my_columns (XWINDOW (window));
1173 if (!NILP (Vtransient_mark_mode)
1174 && !NILP (current_buffer->mark_active))
1175 try_window (window, startp);
1171 } 1176 }
1172 goto done; 1177 goto done;
1173 } 1178 }