aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorStefan Monnier2013-11-06 13:41:31 -0500
committerStefan Monnier2013-11-06 13:41:31 -0500
commit2ec9db5d1e97275a2a4c27e04ed6f3e8c3382cab (patch)
treec84a7a326b41b7e74e084cee68cb1fcfcf7b9131 /src/buffer.c
parent6b4ac03ebef0dcd36699c34444ddce7a246c06aa (diff)
downloademacs-2ec9db5d1e97275a2a4c27e04ed6f3e8c3382cab.tar.gz
emacs-2ec9db5d1e97275a2a4c27e04ed6f3e8c3382cab.zip
* src/xdisp.c (syms_of_xdisp): New vars redisplay--all-windows-cause and
redisplay--mode-lines-cause. (redisplay_internal): Keep them uptodate. Remove redundant check of buffer_shared_and_changed. * *.[chm]: Number every assignment to update_mode_lines so we can track why it is set.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 9aed1909bbd..d3288ad0429 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1393,7 +1393,7 @@ A non-nil FLAG means mark the buffer modified. */)
1393 smarter about updating the `*' in mode lines. --gerd */ 1393 smarter about updating the `*' in mode lines. --gerd */
1394 if (buffer_window_count (current_buffer)) 1394 if (buffer_window_count (current_buffer))
1395 { 1395 {
1396 ++update_mode_lines; 1396 update_mode_lines = 10;
1397 current_buffer->prevent_redisplay_optimizations_p = 1; 1397 current_buffer->prevent_redisplay_optimizations_p = 1;
1398 } 1398 }
1399 1399
@@ -1513,7 +1513,7 @@ This does not change the name of the visited file (if any). */)
1513 1513
1514 /* Catch redisplay's attention. Unless we do this, the mode lines for 1514 /* Catch redisplay's attention. Unless we do this, the mode lines for
1515 any windows displaying current_buffer will stay unchanged. */ 1515 any windows displaying current_buffer will stay unchanged. */
1516 update_mode_lines++; 1516 update_mode_lines = 11;
1517 1517
1518 XSETBUFFER (buf, current_buffer); 1518 XSETBUFFER (buf, current_buffer);
1519 Fsetcar (Frassq (buf, Vbuffer_alist), newname); 1519 Fsetcar (Frassq (buf, Vbuffer_alist), newname);
@@ -2765,7 +2765,7 @@ the normal hook `change-major-mode-hook'. */)
2765 2765
2766 /* Force mode-line redisplay. Useful here because all major mode 2766 /* Force mode-line redisplay. Useful here because all major mode
2767 commands call this function. */ 2767 commands call this function. */
2768 update_mode_lines++; 2768 update_mode_lines = 12;
2769 2769
2770 return Qnil; 2770 return Qnil;
2771} 2771}