will have a variable width).
Ignores finite width of frame, which means that this function may return
values greater than (frame-width).
+In a buffer with very long lines, the value can be zero, because calculating
+the exact number is very expensive.
Whether the line is visible (if `selective-display' is t) has no effect;
however, ^M is treated as end of line when `selective-display' is t.
Text that has an invisible property is considered as having width 0, unless
(void)
{
Lisp_Object temp;
+
+ if (current_buffer->long_line_optimizations_p)
+ return make_fixnum (0);
XSETFASTINT (temp, current_column ());
return temp;
}
{
return (w->column_number_displayed != -1
&& !(PT == w->last_point && !window_outdated (w))
- && (w->column_number_displayed != current_column ()));
+ && (!current_buffer->long_line_optimizations_p
+ && w->column_number_displayed != current_column ()));
}
/* True if window start of W is frozen and may not be changed during
|| w->base_line_pos > 0
/* Column number is displayed and different from the one displayed. */
|| (w->column_number_displayed != -1
+ && !current_buffer->long_line_optimizations_p
&& (w->column_number_displayed != current_column ())))
/* This means that the window has a mode line. */
&& (window_wants_mode_line (w)
return "";
else
{
- ptrdiff_t col = current_column ();
+ ptrdiff_t col =
+ b->long_line_optimizations_p ? 0 : current_column ();
int disp_col = (c == 'C') ? col + 1 : col;
w->column_number_displayed = col;
pint2str (decode_mode_spec_buf, width, disp_col);