+2004-09-07 Kim F. Storm <storm@cua.dk>
+
+ * term.el (term-window-width): Only use full window width on
+ window system if overflow-newline-into-fringe is enabled.
+ (term-mode): Don't disable overflow-newline-into-fringe.
+
2004-09-07 Stefan <monnier@iro.umontreal.ca>
* newcomment.el (uncomment-region-default, comment-region-default):
int string_before_pos;
int x = row->x;
int cursor_x = x;
+ int cursor_from_overlay_pos = 0;
int pt_old = PT - delta;
/* Skip over glyphs not having an object at the start of the row.
string_start = NULL;
x += glyph->pixel_width;
++glyph;
+ if (cursor_from_overlay_pos
+ && last_pos > cursor_from_overlay_pos)
+ {
+ cursor_from_overlay_pos = 0;
+ cursor = 0;
+ }
}
else
{
/* Skip all glyphs from string. */
do
{
+ int pos;
if ((cursor == NULL || glyph > cursor)
&& !NILP (Fget_char_property (make_number ((glyph)->charpos),
- Qcursor, (glyph)->object)))
+ Qcursor, (glyph)->object))
+ && (pos = string_buffer_position (w, glyph->object,
+ string_before_pos),
+ (pos == 0 /* From overlay */
+ || pos == pt_old)))
{
+ cursor_from_overlay_pos = pos == 0 ? last_pos : 0;
cursor = glyph;
cursor_x = x;
}