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/composite.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/composite.c')
| -rw-r--r-- | src/composite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/composite.c b/src/composite.c index 269bdc88bfe..16fa3cce684 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -909,7 +909,7 @@ static Lisp_Object | |||
| 909 | autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t limit, struct window *win, struct face *face, Lisp_Object string) | 909 | autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t limit, struct window *win, struct face *face, Lisp_Object string) |
| 910 | { | 910 | { |
| 911 | ptrdiff_t count = SPECPDL_INDEX (); | 911 | ptrdiff_t count = SPECPDL_INDEX (); |
| 912 | FRAME_PTR f = XFRAME (WVAR (win, frame)); | 912 | FRAME_PTR f = XFRAME (WGET (win, frame)); |
| 913 | Lisp_Object pos = make_number (charpos); | 913 | Lisp_Object pos = make_number (charpos); |
| 914 | ptrdiff_t to; | 914 | ptrdiff_t to; |
| 915 | ptrdiff_t pt = PT, pt_byte = PT_BYTE; | 915 | ptrdiff_t pt = PT, pt_byte = PT_BYTE; |
| @@ -945,7 +945,7 @@ autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t | |||
| 945 | } | 945 | } |
| 946 | else | 946 | else |
| 947 | #endif /* not HAVE_WINDOW_SYSTEM */ | 947 | #endif /* not HAVE_WINDOW_SYSTEM */ |
| 948 | font_object = WVAR (win, frame); | 948 | font_object = WGET (win, frame); |
| 949 | lgstring = Fcomposition_get_gstring (pos, make_number (to), font_object, | 949 | lgstring = Fcomposition_get_gstring (pos, make_number (to), font_object, |
| 950 | string); | 950 | string); |
| 951 | if (NILP (LGSTRING_ID (lgstring))) | 951 | if (NILP (LGSTRING_ID (lgstring))) |