diff options
| author | Dmitry Antipov | 2012-08-06 14:24:26 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-06 14:24:26 +0400 |
| commit | 077288cf3f654776ee44bc9b56954c4e26b10d96 (patch) | |
| tree | 00bbcb4dab9c879efde73a01786977b1c1364f67 /src/xfaces.c | |
| parent | 71688bd7f9169c12ea8be54e084470f19d44ce44 (diff) | |
| download | emacs-077288cf3f654776ee44bc9b56954c4e26b10d96.tar.gz emacs-077288cf3f654776ee44bc9b56954c4e26b10d96.zip | |
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/xfaces.c')
| -rw-r--r-- | src/xfaces.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index bdee8fdd4a1..ff9df493033 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -6033,7 +6033,7 @@ face_at_buffer_position (struct window *w, ptrdiff_t pos, | |||
| 6033 | ptrdiff_t *endptr, ptrdiff_t limit, | 6033 | ptrdiff_t *endptr, ptrdiff_t limit, |
| 6034 | int mouse, int base_face_id) | 6034 | int mouse, int base_face_id) |
| 6035 | { | 6035 | { |
| 6036 | struct frame *f = XFRAME (WVAR (w, frame)); | 6036 | struct frame *f = XFRAME (WGET (w, frame)); |
| 6037 | Lisp_Object attrs[LFACE_VECTOR_SIZE]; | 6037 | Lisp_Object attrs[LFACE_VECTOR_SIZE]; |
| 6038 | Lisp_Object prop, position; | 6038 | Lisp_Object prop, position; |
| 6039 | ptrdiff_t i, noverlays; | 6039 | ptrdiff_t i, noverlays; |
| @@ -6055,9 +6055,9 @@ face_at_buffer_position (struct window *w, ptrdiff_t pos, | |||
| 6055 | 6055 | ||
| 6056 | /* Get the `face' or `mouse_face' text property at POS, and | 6056 | /* Get the `face' or `mouse_face' text property at POS, and |
| 6057 | determine the next position at which the property changes. */ | 6057 | determine the next position at which the property changes. */ |
| 6058 | prop = Fget_text_property (position, propname, WVAR (w, buffer)); | 6058 | prop = Fget_text_property (position, propname, WGET (w, buffer)); |
| 6059 | XSETFASTINT (limit1, (limit < endpos ? limit : endpos)); | 6059 | XSETFASTINT (limit1, (limit < endpos ? limit : endpos)); |
| 6060 | end = Fnext_single_property_change (position, propname, WVAR (w, buffer), limit1); | 6060 | end = Fnext_single_property_change (position, propname, WGET (w, buffer), limit1); |
| 6061 | if (INTEGERP (end)) | 6061 | if (INTEGERP (end)) |
| 6062 | endpos = XINT (end); | 6062 | endpos = XINT (end); |
| 6063 | 6063 | ||
| @@ -6143,7 +6143,7 @@ face_for_overlay_string (struct window *w, ptrdiff_t pos, | |||
| 6143 | ptrdiff_t *endptr, ptrdiff_t limit, | 6143 | ptrdiff_t *endptr, ptrdiff_t limit, |
| 6144 | int mouse, Lisp_Object overlay) | 6144 | int mouse, Lisp_Object overlay) |
| 6145 | { | 6145 | { |
| 6146 | struct frame *f = XFRAME (WVAR (w, frame)); | 6146 | struct frame *f = XFRAME (WGET (w, frame)); |
| 6147 | Lisp_Object attrs[LFACE_VECTOR_SIZE]; | 6147 | Lisp_Object attrs[LFACE_VECTOR_SIZE]; |
| 6148 | Lisp_Object prop, position; | 6148 | Lisp_Object prop, position; |
| 6149 | ptrdiff_t endpos; | 6149 | ptrdiff_t endpos; |
| @@ -6163,9 +6163,9 @@ face_for_overlay_string (struct window *w, ptrdiff_t pos, | |||
| 6163 | 6163 | ||
| 6164 | /* Get the `face' or `mouse_face' text property at POS, and | 6164 | /* Get the `face' or `mouse_face' text property at POS, and |
| 6165 | determine the next position at which the property changes. */ | 6165 | determine the next position at which the property changes. */ |
| 6166 | prop = Fget_text_property (position, propname, WVAR (w, buffer)); | 6166 | prop = Fget_text_property (position, propname, WGET (w, buffer)); |
| 6167 | XSETFASTINT (limit1, (limit < endpos ? limit : endpos)); | 6167 | XSETFASTINT (limit1, (limit < endpos ? limit : endpos)); |
| 6168 | end = Fnext_single_property_change (position, propname, WVAR (w, buffer), limit1); | 6168 | end = Fnext_single_property_change (position, propname, WGET (w, buffer), limit1); |
| 6169 | if (INTEGERP (end)) | 6169 | if (INTEGERP (end)) |
| 6170 | endpos = XINT (end); | 6170 | endpos = XINT (end); |
| 6171 | 6171 | ||