1058 |
window is scrolled. @code{header-line-format} is used likewise for |
window is scrolled. @code{header-line-format} is used likewise for |
1059 |
header lines. |
header lines. |
1060 |
|
|
1061 |
The mode line and header line of a window are normally updated |
For efficiency, Emacs does not recompute the mode line and header |
1062 |
whenever a different buffer is shown in the window, or when the buffer's |
line of a window in every redisplay. It does so when circumstances |
1063 |
modified-status changes from @code{nil} to @code{t} or vice-versa. If |
appear to call for it---for instance, if you change the window |
1064 |
you modify any of the variables referenced by @code{mode-line-format} |
configuration, switch buffers, narrow or widen the buffer, scroll, or |
1065 |
(@pxref{Mode Line Variables}), or any other variables and data |
change the buffer's modification status. If you modify any of the |
1066 |
structures that affect how text is displayed (@pxref{Display}), you may |
variables referenced by @code{mode-line-format} (@pxref{Mode Line |
1067 |
want to force an update of the mode line so as to display the new |
Variables}), or any other variables and data structures that affect |
1068 |
information or display it in the new way. |
how text is displayed (@pxref{Display}), you may want to force an |
1069 |
|
update of the mode line so as to display the new information or |
1070 |
|
display it in the new way. |
1071 |
|
|
1072 |
@c Emacs 19 feature |
@c Emacs 19 feature |
1073 |
@defun force-mode-line-update |
@defun force-mode-line-update |
1074 |
Force redisplay of the current buffer's mode line and header line. |
Force redisplay of the current buffer's mode line and header line. |
1075 |
|
The next redisplay will update the mode line and header line based on |
1076 |
|
the latest values of all relevant variables. |
1077 |
|
|
1078 |
|
This function also forces recomputation of the menu bar menus |
1079 |
|
and the frame title. |
1080 |
@end defun |
@end defun |
1081 |
|
|
1082 |
The mode line is usually displayed in inverse video; see |
The mode line is usually displayed in inverse video; see |