Mercurial > hg > xemacs-beta
diff src/line-number.c @ 241:f955c73f5258 r20-5b19
Import from CVS: tag r20-5b19
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:16:16 +0200 |
parents | 262b8bb4a523 |
children | 558f606b08ae |
line wrap: on
line diff
--- a/src/line-number.c Mon Aug 13 10:15:49 2007 +0200 +++ b/src/line-number.c Mon Aug 13 10:16:16 2007 +0200 @@ -134,8 +134,15 @@ if (!CONSP (ring[i])) break; /* As the marker stays behind the insertions, this check might - as well be >=. However, Finsert_before_markers can move the - marker anyway, which bites in shell buffers. */ + as well be `>'. However, Finsert_before_markers can move the + marker anyway, which bites in shell buffers. + + #### This is wrong; it works right, but forces recreation of + the cached marker (and recalculation of newlines) every time + a newline is inserted at point, which is way losing. Isn't + there a way to make a marker impervious to + Finsert_before_markers()?? Maybe I should convert to using + extents. */ if (marker_position (XCAR (ring[i])) >= pos) { /* Get the marker out of the way. */