comparison src/line-number.c @ 404:2f8bb876ab1d r21-2-32

Import from CVS: tag r21-2-32
author cvs
date Mon, 13 Aug 2007 11:16:07 +0200
parents 74fd4e045ea6
children b8cc9ab3f761
comparison
equal deleted inserted replaced
403:9f011ab08d48 404:2f8bb876ab1d
291 } 291 }
292 cached_lines = XINT (LINE_NUMBER_BEGV (b)); 292 cached_lines = XINT (LINE_NUMBER_BEGV (b));
293 get_nearest_line_number (b, &beg, pos, &cached_lines); 293 get_nearest_line_number (b, &beg, pos, &cached_lines);
294 } 294 }
295 295
296 scan_buffer (b, '\n', beg, pos, pos > beg ? EMACS_INT_MAX : -EMACS_INT_MAX, 296 scan_buffer (b, '\n', beg, pos, pos > beg ? EMACS_INT_MAX : EMACS_INT_MIN,
297 &shortage, 0); 297 &shortage, 0);
298 298
299 line = EMACS_INT_MAX - shortage; 299 line = EMACS_INT_MAX - shortage;
300 if (beg > pos) 300 if (beg > pos)
301 line = -line; 301 line = -line;