diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2012-08-07 11:33:18 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2012-08-07 11:33:18 +0400 |
commit | d3d50620ed3a8066c15ae3d3701b83371ca5382a (patch) | |
tree | 817b59ba17d232cd087b0b24d84683c8ff094f62 /src/indent.c | |
parent | d10a51dcdfab2d9283bd2e3229330c511d5af193 (diff) | |
download | emacs-d3d50620ed3a8066c15ae3d3701b83371ca5382a.tar.gz |
Drop WGET and revert read access to Lisp_Objects slots of struct window.
* window.h (WGET): Remove.
(struct window): Do not use INTERNAL_FIELD.
* 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/indent.c')
-rw-r--r-- | src/indent.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/indent.c b/src/indent.c index fca9f4c9271..928d61196a5 100644 --- a/src/indent.c +++ b/src/indent.c @@ -258,7 +258,7 @@ skip_invisible (ptrdiff_t pos, ptrdiff_t *next_boundary_p, ptrdiff_t to, Lisp_Ob the next property change */ prop = Fget_char_property (position, Qinvisible, (!NILP (window) - && EQ (WGET (XWINDOW (window), buffer), buffer)) + && EQ (XWINDOW (window)->buffer, buffer)) ? window : buffer); inv_p = TEXT_PROP_MEANS_INVISIBLE (prop); /* When counting columns (window == nil), don't skip over ellipsis text. */ @@ -1173,14 +1173,14 @@ compute_motion (ptrdiff_t from, EMACS_INT fromvpos, EMACS_INT fromhpos, int did_ width = window_body_cols (win); /* We must make room for continuation marks if we don't have fringes. */ #ifdef HAVE_WINDOW_SYSTEM - if (!FRAME_WINDOW_P (XFRAME (WGET (win, frame)))) + if (!FRAME_WINDOW_P (XFRAME (win->frame))) #endif width -= 1; } continuation_glyph_width = 1; #ifdef HAVE_WINDOW_SYSTEM - if (FRAME_WINDOW_P (XFRAME (WGET (win, frame)))) + if (FRAME_WINDOW_P (XFRAME (win->frame))) continuation_glyph_width = 0; /* In the fringe. */ #endif @@ -1787,7 +1787,7 @@ visible section of the buffer, and pass LINE and COL as TOPOS. */) ? (window_body_cols (w) - ( #ifdef HAVE_WINDOW_SYSTEM - FRAME_WINDOW_P (XFRAME (WGET (w, frame))) ? 0 : + FRAME_WINDOW_P (XFRAME (w->frame)) ? 0 : #endif 1)) : XINT (XCAR (topos))), @@ -1837,7 +1837,7 @@ vmotion (register ptrdiff_t from, register EMACS_INT vtarget, struct window *w) /* If the window contains this buffer, use it for getting text properties. Otherwise use the current buffer as arg for doing that. */ - if (EQ (WGET (w, buffer), Fcurrent_buffer ())) + if (EQ (w->buffer, Fcurrent_buffer ())) text_prop_object = window; else text_prop_object = Fcurrent_buffer (); @@ -1998,14 +1998,14 @@ whether or not it is currently displayed in some window. */) old_buffer = Qnil; GCPRO3 (old_buffer, old_charpos, old_bytepos); - if (XBUFFER (WGET (w, buffer)) != current_buffer) + if (XBUFFER (w->buffer) != current_buffer) { /* Set the window's buffer temporarily to the current buffer. */ - old_buffer = WGET (w, buffer); - old_charpos = XMARKER (WGET (w, pointm))->charpos; - old_bytepos = XMARKER (WGET (w, pointm))->bytepos; + old_buffer = w->buffer; + old_charpos = XMARKER (w->pointm)->charpos; + old_bytepos = XMARKER (w->pointm)->bytepos; WSET (w, buffer, Fcurrent_buffer ()); - set_marker_both (WGET (w, pointm), WGET (w, buffer), + set_marker_both (w->pointm, w->buffer, BUF_PT (current_buffer), BUF_PT_BYTE (current_buffer)); } @@ -2137,7 +2137,7 @@ whether or not it is currently displayed in some window. */) } move_it_in_display_line (&it, ZV, - (int)(cols * FRAME_COLUMN_WIDTH (XFRAME (WGET (w, frame))) + 0.5), + (int)(cols * FRAME_COLUMN_WIDTH (XFRAME (w->frame)) + 0.5), MOVE_TO_X); } @@ -2148,7 +2148,7 @@ whether or not it is currently displayed in some window. */) if (BUFFERP (old_buffer)) { WSET (w, buffer, old_buffer); - set_marker_both (WGET (w, pointm), WGET (w, buffer), + set_marker_both (w->pointm, w->buffer, old_charpos, old_bytepos); } |