Function: force-mode-line-update

force-mode-line-update is a function defined in buffer.c.

Signature

(force-mode-line-update &optional ALL)

Documentation

Force redisplay of the current buffer's mode line and header line.

With optional non-nil ALL, force redisplay of all mode lines, tab lines and header lines. This function also forces recomputation of the menu bar menus and the frame title.

Aliases

speedbar-mode-line-update (obsolete since 27.1) redraw-modeline (obsolete since 24.3)

Source Code

// Defined in /usr/src/emacs/src/buffer.c
{
  if (!NILP (all))
    {
      update_mode_lines = 10;
      /* FIXME: This can't be right.  */
      current_buffer->prevent_redisplay_optimizations_p = true;
    }
  else if (buffer_window_count (current_buffer))
    {
      bset_update_mode_line (current_buffer);
      current_buffer->prevent_redisplay_optimizations_p = true;
    }
  return all;
}