From 4c1acb95dffa5948c7534911c07c2c3d8f390b79 Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Tue, 11 Dec 2012 10:08:53 +0400 Subject: Consistently use marker_position and marker_byte_position. * fringe.c (Ffringe_bitmaps_at_pos): * indent.c (Fvertical_motion): * insdel.c (prepare_to_modify_buffer): * keyboard.c (make_lispy_position): * window.c (Fwindow_end, Fpos_visible_in_window_p, unshow_buffer) (window_scroll_pixel_based, displayed_window_lines) (Fset_window_configuration): * xdisp.c (message_dolog, with_echo_area_buffer_unwind_data) (mark_window_display_accurate_1, redisplay_window, decode_mode_spec): Replace direct access to marker fields with calls to marker_position and/or marker_byte_position. --- src/fringe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fringe.c') diff --git a/src/fringe.c b/src/fringe.c index a126292e1ff..ce31fd01763 100644 --- a/src/fringe.c +++ b/src/fringe.c @@ -1744,7 +1744,7 @@ Return nil if POS is not visible in WINDOW. */) else if (w == XWINDOW (selected_window)) textpos = PT; else - textpos = XMARKER (w->pointm)->charpos; + textpos = marker_position (w->pointm); row = MATRIX_FIRST_TEXT_ROW (w->current_matrix); row = row_containing_pos (w, textpos, row, NULL, 0); -- cgit v1.2.1