diff options
| author | Stefan Monnier | 2013-11-06 13:41:31 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2013-11-06 13:41:31 -0500 |
| commit | 2ec9db5d1e97275a2a4c27e04ed6f3e8c3382cab (patch) | |
| tree | c84a7a326b41b7e74e084cee68cb1fcfcf7b9131 /src/buffer.c | |
| parent | 6b4ac03ebef0dcd36699c34444ddce7a246c06aa (diff) | |
| download | emacs-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.c | 6 |
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 | } |