aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2015-10-01 21:03:10 +0300
committerEli Zaretskii2015-10-01 21:03:10 +0300
commit6083f333ed38aa65f1d0a4c2bd7505a29e887444 (patch)
tree54306c6f458db297ef2b8a121a0866eb29782a1d /src
parent511a18ded332917b2df698be4d2c357eb2f270fd (diff)
downloademacs-6083f333ed38aa65f1d0a4c2bd7505a29e887444.tar.gz
emacs-6083f333ed38aa65f1d0a4c2bd7505a29e887444.zip
Revert "Attempt to fix slow redisplay caused by last changes"
* src/xdisp.c (try_window_id, try_window_reusing_current_matrix) (try_cursor_movement): Don't relax requirements for redisplay optimizations for the selected frame. (Bug#21597) This reverts commit c4c1fb97727ff52bcfa83ad5ed94a64a93d12e59.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index ce27af2e67b..1524783bf2f 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -15442,7 +15442,7 @@ try_cursor_movement (Lisp_Object window, struct text_pos startp,
15442 && !update_mode_lines 15442 && !update_mode_lines
15443 && !windows_or_buffers_changed 15443 && !windows_or_buffers_changed
15444 && !f->cursor_type_changed 15444 && !f->cursor_type_changed
15445 && !(f != SELECTED_FRAME () && f->redisplay) 15445 && !f->redisplay
15446 && NILP (Vshow_trailing_whitespace) 15446 && NILP (Vshow_trailing_whitespace)
15447 /* This code is not used for mini-buffer for the sake of the case 15447 /* This code is not used for mini-buffer for the sake of the case
15448 of redisplaying to replace an echo area message; since in 15448 of redisplaying to replace an echo area message; since in
@@ -17053,7 +17053,7 @@ try_window_reusing_current_matrix (struct window *w)
17053 /* Don't try to reuse the display if windows have been split 17053 /* Don't try to reuse the display if windows have been split
17054 or such. */ 17054 or such. */
17055 || windows_or_buffers_changed 17055 || windows_or_buffers_changed
17056 || (f != SELECTED_FRAME () && f->redisplay) 17056 || f->redisplay
17057 || f->cursor_type_changed) 17057 || f->cursor_type_changed)
17058 return false; 17058 return false;
17059 17059
@@ -17831,8 +17831,7 @@ try_window_id (struct window *w)
17831 GIVE_UP (1); 17831 GIVE_UP (1);
17832 17832
17833 /* This flag is used to prevent redisplay optimizations. */ 17833 /* This flag is used to prevent redisplay optimizations. */
17834 if (windows_or_buffers_changed || f->cursor_type_changed 17834 if (windows_or_buffers_changed || f->cursor_type_changed || f->redisplay)
17835 || (f != SELECTED_FRAME () && f->redisplay))
17836 GIVE_UP (2); 17835 GIVE_UP (2);
17837 17836
17838 /* This function's optimizations cannot be used if overlays have 17837 /* This function's optimizations cannot be used if overlays have