aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2020-12-17 11:53:56 -0500
committerStefan Monnier2020-12-17 11:53:56 -0500
commitd5941d8396a6bbe67bb06c339af008a5f688c73e (patch)
tree517eedca8a4c49d63cb07a0d67a28e3430e14df8 /src
parent02c4f65a1ea5d55a569a559bb181c6df5171319b (diff)
downloademacs-d5941d8396a6bbe67bb06c339af008a5f688c73e.tar.gz
emacs-d5941d8396a6bbe67bb06c339af008a5f688c73e.zip
Fix my two most common causes of all windows/frames redisplay
* src/buffer.c (Fkill_all_local_variables): Only redisplay the buffer. * src/window.c (set_window_scroll_bars): Only redisplay the window.
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c2
-rw-r--r--src/window.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 4215acbf1df..dfc34faf6e6 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2814,7 +2814,7 @@ the normal hook `change-major-mode-hook'. */)
2814 2814
2815 /* Force mode-line redisplay. Useful here because all major mode 2815 /* Force mode-line redisplay. Useful here because all major mode
2816 commands call this function. */ 2816 commands call this function. */
2817 update_mode_lines = 12; 2817 bset_update_mode_line (current_buffer);
2818 2818
2819 return Qnil; 2819 return Qnil;
2820} 2820}
diff --git a/src/window.c b/src/window.c
index 4eab786958f..bcc989b5a79 100644
--- a/src/window.c
+++ b/src/window.c
@@ -7822,7 +7822,7 @@ set_window_scroll_bars (struct window *w, Lisp_Object width,
7822 if more than a single window needs to be considered, see 7822 if more than a single window needs to be considered, see
7823 redisplay_internal. */ 7823 redisplay_internal. */
7824 if (changed) 7824 if (changed)
7825 windows_or_buffers_changed = 31; 7825 wset_redisplay (w);
7826 7826
7827 return changed ? w : NULL; 7827 return changed ? w : NULL;
7828 } 7828 }