aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorDmitry Gutov2022-08-15 02:22:59 +0300
committerDmitry Gutov2022-08-15 02:22:59 +0300
commitee3a674c7c9e39fe7ff296ce1f9830fc45520de8 (patch)
treee8ba1e7be54314f208454e80e3d31044c913f3eb /src/window.c
parentfe0e53d963899a16e0dd1bbc1ba10a6b59f7989e (diff)
parent0a8e88fd83db5398d36064a7f87cff5b57da7284 (diff)
downloademacs-scratch/font_lock_large_files.tar.gz
emacs-scratch/font_lock_large_files.zip
Merge branch 'master' into scratch/font_lock_large_filesscratch/font_lock_large_files
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index afb8f75537b..c8fcb3a607f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6575,9 +6575,12 @@ and redisplay normally--don't erase and redraw the frame. */)
6575 in case scroll_margin is buffer-local. */ 6575 in case scroll_margin is buffer-local. */
6576 this_scroll_margin = window_scroll_margin (w, MARGIN_IN_LINES); 6576 this_scroll_margin = window_scroll_margin (w, MARGIN_IN_LINES);
6577 6577
6578 /* Don't use redisplay code for initial frames, as the necessary 6578 /* Don't use the display code for initial frames, as the necessary
6579 data structures might not be set up yet then. */ 6579 data structures might not be set up yet then. Also don't use it
6580 if (!FRAME_INITIAL_P (XFRAME (w->frame))) 6580 for buffers with very long lines, as it tremdously slows down
6581 redisplay, especially when lines are truncated. */
6582 if (!FRAME_INITIAL_P (XFRAME (w->frame))
6583 && !current_buffer->long_line_optimizations_p)
6581 { 6584 {
6582 specpdl_ref count = SPECPDL_INDEX (); 6585 specpdl_ref count = SPECPDL_INDEX ();
6583 6586