summaryrefslogtreecommitdiff
path: root/src/fringe.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2012-12-11 10:08:53 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2012-12-11 10:08:53 +0400
commit4c1acb95dffa5948c7534911c07c2c3d8f390b79 (patch)
tree28e63a4c2296b9dfc8d061a658196d60d5376c56 /src/fringe.c
parent36327e4ffc03cc71d15be5fc381a08ec082bf60c (diff)
downloademacs-4c1acb95dffa5948c7534911c07c2c3d8f390b79.tar.gz
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.
Diffstat (limited to 'src/fringe.c')
-rw-r--r--src/fringe.c2
1 files changed, 1 insertions, 1 deletions
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);