diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2012-08-06 14:24:26 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2012-08-06 14:24:26 +0400 |
commit | 077288cf3f654776ee44bc9b56954c4e26b10d96 (patch) | |
tree | 00bbcb4dab9c879efde73a01786977b1c1364f67 /src/xfns.c | |
parent | 71688bd7f9169c12ea8be54e084470f19d44ce44 (diff) | |
download | emacs-077288cf3f654776ee44bc9b56954c4e26b10d96.tar.gz |
Separate read and write access to Lisp_Object slots of struct window.
* window.h (WGET, WSET): New macros similar to AREF and ASET.
* alloc.c, buffer.c, composite.c, dispextern.h, dispnew.c, editfns.c:
* fileio.c, font.c, fontset.c, frame.c, frame.h, fringe.c, indent.c:
* insdel.c, keyboard.c, keymap.c, lisp.h, minibuf.c, msdos.c, nsfns.m:
* nsmenu.m, nsterm.m, print.c, textprop.c, w32fns.c, w32menu.c:
* w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
Adjust users.
Diffstat (limited to 'src/xfns.c')
-rw-r--r-- | src/xfns.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/xfns.c b/src/xfns.c index e92b0e58f63..e1bfffeba1c 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -2260,7 +2260,7 @@ free_frame_xic (struct frame *f) void xic_set_preeditarea (struct window *w, int x, int y) { - struct frame *f = XFRAME (WVAR (w, frame)); + struct frame *f = XFRAME (WGET (w, frame)); XVaNestedList attr; XPoint spot; @@ -5069,28 +5069,29 @@ Text larger than the specified size is clipped. */) /* Set up the frame's root window. */ w = XWINDOW (FRAME_ROOT_WINDOW (f)); - WVAR (w, left_col) = WVAR (w, top_line) = make_number (0); + WSET (w, left_col, make_number (0)); + WSET (w, top_line, 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)) { - WVAR (w, total_cols) = XCAR (Vx_max_tooltip_size); - WVAR (w, total_lines) = XCDR (Vx_max_tooltip_size); + WSET (w, total_cols, XCAR (Vx_max_tooltip_size)); + WSET (w, total_lines, XCDR (Vx_max_tooltip_size)); } else { - WVAR (w, total_cols) = make_number (80); - WVAR (w, total_lines) = make_number (40); + WSET (w, total_cols, make_number (80)); + WSET (w, total_lines, make_number (40)); } - FRAME_TOTAL_COLS (f) = XINT (WVAR (w, total_cols)); + FRAME_TOTAL_COLS (f) = XINT (WGET (w, total_cols)); adjust_glyphs (f); w->pseudo_window_p = 1; /* Display the tooltip text in a temporary buffer. */ old_buffer = current_buffer; - set_buffer_internal_1 (XBUFFER (WVAR (XWINDOW (FRAME_ROOT_WINDOW (f)), buffer))); + set_buffer_internal_1 (XBUFFER (WGET (XWINDOW (FRAME_ROOT_WINDOW (f)), buffer))); BVAR (current_buffer, truncate_lines) = Qnil; clear_glyph_matrix (w->desired_matrix); clear_glyph_matrix (w->current_matrix); @@ -5151,7 +5152,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); - WVAR (w, total_cols) = make_number (width); + WSET (w, total_cols, make_number (width)); FRAME_TOTAL_COLS (f) = width; adjust_glyphs (f); clear_glyph_matrix (w->desired_matrix); |