aboutsummaryrefslogtreecommitdiffstats
path: root/src/dispextern.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dispextern.h')
-rw-r--r--src/dispextern.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index 8644ce26d13..1df769a8f99 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -384,6 +384,7 @@ struct glyph
384 glyph standing for newline at end of line 0 384 glyph standing for newline at end of line 0
385 empty space after the end of the line -1 385 empty space after the end of the line -1
386 overlay arrow on a TTY -1 386 overlay arrow on a TTY -1
387 glyph displaying line number -1
387 glyph at EOB that ends in a newline -1 388 glyph at EOB that ends in a newline -1
388 left truncation glyphs: -1 389 left truncation glyphs: -1
389 right truncation/continuation glyphs next buffer position 390 right truncation/continuation glyphs next buffer position
@@ -2537,7 +2538,12 @@ struct it
2537 Do NOT use !BUFFERP (it.object) as a test whether we are 2538 Do NOT use !BUFFERP (it.object) as a test whether we are
2538 iterating over a string; use STRINGP (it.string) instead. 2539 iterating over a string; use STRINGP (it.string) instead.
2539 2540
2540 Position is the current iterator position in object. */ 2541 Position is the current iterator position in object.
2542
2543 The 'position's CHARPOS is copied to glyph->charpos of the glyph
2544 produced by PRODUCE_GLYPHS, so any artificial value documented
2545 under 'struct glyph's 'charpos' member can also be found in the
2546 'position' member here. */
2541 Lisp_Object object; 2547 Lisp_Object object;
2542 struct text_pos position; 2548 struct text_pos position;
2543 2549
@@ -2621,6 +2627,20 @@ struct it
2621 coordinate is past first_visible_x. */ 2627 coordinate is past first_visible_x. */
2622 int hpos; 2628 int hpos;
2623 2629
2630 /* Current line number, zero-based. */
2631 ptrdiff_t lnum;
2632
2633 /* The byte position corresponding to lnum. */
2634 ptrdiff_t lnum_bytepos;
2635
2636 /* The width, in columns and in pixels, needed for display of the
2637 line numbers, or zero if not computed. */
2638 int lnum_width;
2639 int lnum_pixel_width;
2640
2641 /* The line number of point's line, or zero if not computed yet. */
2642 ptrdiff_t pt_lnum;
2643
2624 /* Left fringe bitmap number (enum fringe_bitmap_type). */ 2644 /* Left fringe bitmap number (enum fringe_bitmap_type). */
2625 unsigned left_user_fringe_bitmap : FRINGE_ID_BITS; 2645 unsigned left_user_fringe_bitmap : FRINGE_ID_BITS;
2626 2646