diff options
| author | Richard M. Stallman | 2002-03-26 09:12:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-03-26 09:12:23 +0000 |
| commit | a5f083741c3290d08bcbd98db70e39c8628a0dcb (patch) | |
| tree | 6256f9a10593d27662f37ef0208ba64eb7323243 /src | |
| parent | 079d288f1ad175aefb79a3b03d45edec3d2cdd6f (diff) | |
| download | emacs-a5f083741c3290d08bcbd98db70e39c8628a0dcb.tar.gz emacs-a5f083741c3290d08bcbd98db70e39c8628a0dcb.zip | |
(update_menu_bar): Test only update_mode_lines;
don't test or alter w->update_mode_line.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 11 | ||||
| -rw-r--r-- | src/xdisp.c | 10 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 30270115fa0..4f475d21960 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2002-03-26 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (update_menu_bar): Test only update_mode_lines; | ||
| 4 | don't test or alter w->update_mode_line. | ||
| 5 | |||
| 6 | * window.c (Fdisplay_buffer): Doc fix. | ||
| 7 | |||
| 8 | 2002-03-24 Richard M. Stallman <rms@gnu.org> | ||
| 9 | |||
| 10 | * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces. | ||
| 11 | |||
| 1 | 2002-03-24 Gerd Moellmann <gerd@gnu.org> | 12 | 2002-03-24 Gerd Moellmann <gerd@gnu.org> |
| 2 | 13 | ||
| 3 | * eval.c (Qdeclare, Vmacro_declaration_function): New variables. | 14 | * eval.c (Qdeclare, Vmacro_declaration_function): New variables. |
diff --git a/src/xdisp.c b/src/xdisp.c index cc9c177c29c..8a760caa5e3 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -7435,8 +7435,14 @@ update_menu_bar (f, save_match_data) | |||
| 7435 | window = FRAME_SELECTED_WINDOW (f); | 7435 | window = FRAME_SELECTED_WINDOW (f); |
| 7436 | w = XWINDOW (window); | 7436 | w = XWINDOW (window); |
| 7437 | 7437 | ||
| 7438 | #if 0 /* The if statment below this if statement used to include the | ||
| 7439 | condition !NILP (w->update_mode_line), rather than using | ||
| 7440 | update_mode_lines directly, and this if statement may have | ||
| 7441 | been added to make that condition work. Now the if | ||
| 7442 | statement below matches its comment, this isn't needed. */ | ||
| 7438 | if (update_mode_lines) | 7443 | if (update_mode_lines) |
| 7439 | w->update_mode_line = Qt; | 7444 | w->update_mode_line = Qt; |
| 7445 | #endif | ||
| 7440 | 7446 | ||
| 7441 | if (FRAME_WINDOW_P (f) | 7447 | if (FRAME_WINDOW_P (f) |
| 7442 | ? | 7448 | ? |
| @@ -7455,7 +7461,9 @@ update_menu_bar (f, save_match_data) | |||
| 7455 | the rest of the redisplay algorithm is about the same as | 7461 | the rest of the redisplay algorithm is about the same as |
| 7456 | windows_or_buffers_changed anyway. */ | 7462 | windows_or_buffers_changed anyway. */ |
| 7457 | if (windows_or_buffers_changed | 7463 | if (windows_or_buffers_changed |
| 7458 | || !NILP (w->update_mode_line) | 7464 | /* This used to test w->update_mode_line, but we believe |
| 7465 | there is no need to recompute the menu in that case. */ | ||
| 7466 | || update_mode_lines | ||
| 7459 | || ((BUF_SAVE_MODIFF (XBUFFER (w->buffer)) | 7467 | || ((BUF_SAVE_MODIFF (XBUFFER (w->buffer)) |
| 7460 | < BUF_MODIFF (XBUFFER (w->buffer))) | 7468 | < BUF_MODIFF (XBUFFER (w->buffer))) |
| 7461 | != !NILP (w->last_had_star)) | 7469 | != !NILP (w->last_had_star)) |