Mercurial > emacs
comparison src/xdisp.c @ 34440:6fff04f818fa
(try_cursor_movement): Check update_mode_lines instead
of the window's update_mode_line flag, since the former is set by
force-mode-line-update, not the latter. This makes
column-number-mode slightly faster.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 11 Dec 2000 14:50:07 +0000 |
parents | 524c7ecc8ef4 |
children | 8f8d6aa6af8b |
comparison
equal
deleted
inserted
replaced
34439:cb07a94d7b5a | 34440:6fff04f818fa |
---|---|
9142 | 9142 |
9143 /* Handle case where text has not changed, only point, and it has | 9143 /* Handle case where text has not changed, only point, and it has |
9144 not moved off the frame. */ | 9144 not moved off the frame. */ |
9145 if (/* Point may be in this window. */ | 9145 if (/* Point may be in this window. */ |
9146 PT >= CHARPOS (startp) | 9146 PT >= CHARPOS (startp) |
9147 /* If we don't check this, we are called to move the cursor in a | |
9148 horizontally split window with a current matrix that doesn't | |
9149 fit the display. */ | |
9150 && !windows_or_buffers_changed | |
9151 /* Selective display hasn't changed. */ | 9147 /* Selective display hasn't changed. */ |
9152 && !current_buffer->clip_changed | 9148 && !current_buffer->clip_changed |
9153 /* If force-mode-line-update was called, really redisplay; | 9149 /* Function force-mode-line-update is used to force a thorough |
9154 that's how redisplay is forced after e.g. changing | 9150 redisplay. It sets either windows_or_buffers_changed or |
9155 buffer-invisibility-spec. */ | 9151 update_mode_lines. So don't take a shortcut here for these |
9156 && NILP (w->update_mode_line) | 9152 cases. */ |
9153 && !update_mode_lines | |
9154 && !windows_or_buffers_changed | |
9157 /* Can't use this case if highlighting a region. When a | 9155 /* Can't use this case if highlighting a region. When a |
9158 region exists, cursor movement has to do more than just | 9156 region exists, cursor movement has to do more than just |
9159 set the cursor. */ | 9157 set the cursor. */ |
9160 && !(!NILP (Vtransient_mark_mode) | 9158 && !(!NILP (Vtransient_mark_mode) |
9161 && !NILP (current_buffer->mark_active)) | 9159 && !NILP (current_buffer->mark_active)) |