diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2012-12-11 10:08:53 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2012-12-11 10:08:53 +0400 |
commit | 4c1acb95dffa5948c7534911c07c2c3d8f390b79 (patch) | |
tree | 28e63a4c2296b9dfc8d061a658196d60d5376c56 /src/indent.c | |
parent | 36327e4ffc03cc71d15be5fc381a08ec082bf60c (diff) | |
download | emacs-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/indent.c')
-rw-r--r-- | src/indent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/indent.c b/src/indent.c index 327526eae2d..3dbf372cf17 100644 --- a/src/indent.c +++ b/src/indent.c @@ -1991,8 +1991,8 @@ whether or not it is currently displayed in some window. */) { /* Set the window's buffer temporarily to the current buffer. */ old_buffer = w->buffer; - old_charpos = XMARKER (w->pointm)->charpos; - old_bytepos = XMARKER (w->pointm)->bytepos; + old_charpos = marker_position (w->pointm); + old_bytepos = marker_byte_position (w->pointm); wset_buffer (w, Fcurrent_buffer ()); set_marker_both (w->pointm, w->buffer, BUF_PT (current_buffer), BUF_PT_BYTE (current_buffer)); |