Mercurial > emacs
comparison src/xdisp.c @ 44156:b135f9d8d993
(update_menu_bar): Test only update_mode_lines;
don't test or alter w->update_mode_line.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 26 Mar 2002 09:11:43 +0000 |
parents | cb9fee5bcbfd |
children | 7482068b3fc6 |
comparison
equal
deleted
inserted
replaced
44155:d94cb7b3b165 | 44156:b135f9d8d993 |
---|---|
7433 return; | 7433 return; |
7434 | 7434 |
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 ? |
7443 #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (macintosh) | 7449 #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (macintosh) |
7444 FRAME_EXTERNAL_MENU_BAR (f) | 7450 FRAME_EXTERNAL_MENU_BAR (f) |
7453 that people can use force-mode-line-update to request | 7459 that people can use force-mode-line-update to request |
7454 that the menu bar be recomputed. The adverse effect on | 7460 that the menu bar be recomputed. The adverse effect on |
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)) |
7462 || ((!NILP (Vtransient_mark_mode) | 7470 || ((!NILP (Vtransient_mark_mode) |
7463 && !NILP (XBUFFER (w->buffer)->mark_active)) | 7471 && !NILP (XBUFFER (w->buffer)->mark_active)) |