diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-08-17 18:42:52 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-08-17 18:42:52 -0700 |
commit | e8c17b818670b73acc2499b501aef3aab2ae8e58 (patch) | |
tree | c337fcdcfe153432f7af6ceccae7e09dc80f0285 /src/xfns.c | |
parent | 3f22b86fc7d9b66ff3e332b9a56350e93ddbd0aa (diff) | |
download | emacs-e8c17b818670b73acc2499b501aef3aab2ae8e58.tar.gz |
* window.h (WSET): Remove.
Replace all uses with calls to new setter functions.
Use INLINE_HEADER_BEGIN, INLINE_HEADER_END.
(WINDOW_INLINE): New macro.
(wset_buffer, wset_frame, wset_left_col, wset_next, wset_prev)
(wset_redisplay_end_trigger, wset_top_line, wset_total_cols)
(wset_total_lines, wset_vertical_scroll_bar)
(wset_window_end_pos, wset_window_end_valid)
(wset_window_end_vpos): New setter functions.
* window.c (WINDOW_INLINE):
Define to EXTERN_INLINE, so that the corresponding functions
are compiled into code.
(wset_combination_limit, wset_dedicated, wset_display_table)
(wset_hchild, wset_left_fringe_width, wset_left_margin_cols)
(wset_new_normal, wset_new_total, wset_next_buffers)
(wset_normal_cols, wset_normal_lines, wset_parent, wset_pointm)
(wset_prev_buffers, wset_right_fringe_width)
(wset_right_margin_cols, wset_scroll_bar_width, wset_start)
(wset_temslot, wset_vchild, wset_vertical_scroll_bar_type)
(wset_window_parameters):
* xdisp.c (wset_base_line_number, wset_base_line_pos)
(wset_column_number_displayed, wset_region_showing):
New setter functions.
Fixes: debbugs:12215
Diffstat (limited to 'src/xfns.c')
-rw-r--r-- | src/xfns.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/xfns.c b/src/xfns.c index f4c7f4714a4..53891188727 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -5064,20 +5064,20 @@ Text larger than the specified size is clipped. */) /* Set up the frame's root window. */ w = XWINDOW (FRAME_ROOT_WINDOW (f)); - WSET (w, left_col, make_number (0)); - WSET (w, top_line, make_number (0)); + wset_left_col (w, make_number (0)); + wset_top_line (w, make_number (0)); if (CONSP (Vx_max_tooltip_size) && RANGED_INTEGERP (1, XCAR (Vx_max_tooltip_size), INT_MAX) && RANGED_INTEGERP (1, XCDR (Vx_max_tooltip_size), INT_MAX)) { - WSET (w, total_cols, XCAR (Vx_max_tooltip_size)); - WSET (w, total_lines, XCDR (Vx_max_tooltip_size)); + wset_total_cols (w, XCAR (Vx_max_tooltip_size)); + wset_total_lines (w, XCDR (Vx_max_tooltip_size)); } else { - WSET (w, total_cols, make_number (80)); - WSET (w, total_lines, make_number (40)); + wset_total_cols (w, make_number (80)); + wset_total_lines (w, make_number (40)); } FRAME_TOTAL_COLS (f) = XINT (w->total_cols); @@ -5147,7 +5147,7 @@ Text larger than the specified size is clipped. */) /* w->total_cols and FRAME_TOTAL_COLS want the width in columns, not in pixels. */ width /= WINDOW_FRAME_COLUMN_WIDTH (w); - WSET (w, total_cols, make_number (width)); + wset_total_cols (w, make_number (width)); FRAME_TOTAL_COLS (f) = width; adjust_glyphs (f); clear_glyph_matrix (w->desired_matrix); |