/* Display the mode line string one element by one element.
This is to make the ranges of mouse highlighting
- correct. */
+ correct. */
do
{
end = Fnext_single_property_change (start, Qmode_line_elt_no,
}
else
{
- /* Compress the mode line. */
+ /* Compress the mode line. */
ptrdiff_t i = 0, i_byte = 0;
int prev = 0;
Lisp_Object start = make_fixnum (0), end;
/* Display the mode line string one element by one element.
This is to make the ranges of mouse highlighting
- correct. */
+ correct. */
do
{
end = Fnext_single_property_change (start,
start,
prev_pos));
- /* Skip past the rest of the space characters. */
+ /* Skip past the rest of the space characters. */
Lisp_Object display = Fget_text_property (make_fixnum (i),
Qdisplay,
mode_string);
}
/* Skip the final space no matter how the loop
- above ends. */
+ above ends. */
if (c == ' ' && NILP (display))
start = end;
else
prev = c;
}
- /* Append the final bit. */
+ /* Append the final bit. */
if (XFIXNUM (start) < XFIXNUM (end))
elt = concat2 (elt, Fsubstring (mode_string, start, end));
glyph wider. We actually add only as much space as is
available for the last glyph of the modeline and whatever
space is left beyond it, since that glyph could be only
- partially visible */
+ partially visible. */
if (box_thickness > 0)
last->pixel_width += max (0, (box_thickness
- (it.current_x - it.last_visible_x)));
element could be stored by parts. For example, "a%b" is stored as
two elements in the 'mode_line_string_list', but they should be
considered as one element, so we cannot increment this number when
- "a" is stored. */
+ "a" is stored. */
if (mode_line_target == MODE_LINE_STRING)
mode_line_elt_no++;