aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorDmitry Antipov2012-12-11 13:51:12 +0400
committerDmitry Antipov2012-12-11 13:51:12 +0400
commitc6afe371b0218154957bbef17c3f8bda5377b7c8 (patch)
tree2356c637109538cac1d24a7e1ae0ba38ccfec53d /src/buffer.c
parent1b47babdb7fd503ad79a696a1b9d9b2e2b46e10c (diff)
downloademacs-c6afe371b0218154957bbef17c3f8bda5377b7c8.tar.gz
emacs-c6afe371b0218154957bbef17c3f8bda5377b7c8.zip
* buffer.c (Fset_buffer_multibyte): Do not force redisplay
if changed buffer is not shown in a window. * insdel.c (prepare_to_modify_buffer): Likewise. * window.c (replace_buffer_in_windows_safely): Do nothing if buffer is not shown in a window. (Fforce_window_update): Likewise if string or buffer argument is passed.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 1194431841a..748422df73a 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2691,10 +2691,11 @@ current buffer is cleared. */)
2691 2691
2692 UNGCPRO; 2692 UNGCPRO;
2693 2693
2694 /* Changing the multibyteness of a buffer means that all windows
2695 showing that buffer must be updated thoroughly. */
2696 current_buffer->prevent_redisplay_optimizations_p = 1; 2694 current_buffer->prevent_redisplay_optimizations_p = 1;
2697 ++windows_or_buffers_changed; 2695
2696 /* If buffer is shown in a window, let redisplay consider other windows. */
2697 if (buffer_window_count (current_buffer))
2698 ++windows_or_buffers_changed;
2698 2699
2699 /* Copy this buffer's new multibyte status 2700 /* Copy this buffer's new multibyte status
2700 into all of its indirect buffers. */ 2701 into all of its indirect buffers. */