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/macros.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/macros.c')
| -rw-r--r-- | src/macros.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/macros.c b/src/macros.c index 0c11efcdc9a..232188a408b 100644 --- a/src/macros.c +++ b/src/macros.c | |||
| @@ -55,7 +55,7 @@ Use \\[name-last-kbd-macro] to give it a permanent name. | |||
| 55 | Non-nil arg (prefix arg) means append to last macro defined; | 55 | Non-nil arg (prefix arg) means append to last macro defined; |
| 56 | this begins by re-executing that macro as if you typed it again. | 56 | this begins by re-executing that macro as if you typed it again. |
| 57 | If optional second arg, NO-EXEC, is non-nil, do not re-execute last | 57 | If optional second arg, NO-EXEC, is non-nil, do not re-execute last |
| 58 | macro before appending to it. */) | 58 | macro before appending to it. */) |
| 59 | (Lisp_Object append, Lisp_Object no_exec) | 59 | (Lisp_Object append, Lisp_Object no_exec) |
| 60 | { | 60 | { |
| 61 | if (!NILP (KVAR (current_kboard, defining_kbd_macro))) | 61 | if (!NILP (KVAR (current_kboard, defining_kbd_macro))) |
| @@ -66,7 +66,7 @@ macro before appending to it. */) | |||
| 66 | current_kboard->kbd_macro_buffer = xmalloc (30 * word_size); | 66 | current_kboard->kbd_macro_buffer = xmalloc (30 * word_size); |
| 67 | current_kboard->kbd_macro_bufsize = 30; | 67 | current_kboard->kbd_macro_bufsize = 30; |
| 68 | } | 68 | } |
| 69 | update_mode_lines++; | 69 | update_mode_lines = 19; |
| 70 | if (NILP (append)) | 70 | if (NILP (append)) |
| 71 | { | 71 | { |
| 72 | if (current_kboard->kbd_macro_bufsize > 200) | 72 | if (current_kboard->kbd_macro_bufsize > 200) |
| @@ -138,7 +138,7 @@ void | |||
| 138 | end_kbd_macro (void) | 138 | end_kbd_macro (void) |
| 139 | { | 139 | { |
| 140 | kset_defining_kbd_macro (current_kboard, Qnil); | 140 | kset_defining_kbd_macro (current_kboard, Qnil); |
| 141 | update_mode_lines++; | 141 | update_mode_lines = 20; |
| 142 | kset_last_kbd_macro | 142 | kset_last_kbd_macro |
| 143 | (current_kboard, | 143 | (current_kboard, |
| 144 | make_event_array ((current_kboard->kbd_macro_end | 144 | make_event_array ((current_kboard->kbd_macro_end |