diff options
| author | Dmitry Antipov | 2012-08-07 11:33:18 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-07 11:33:18 +0400 |
| commit | d3d50620ed3a8066c15ae3d3701b83371ca5382a (patch) | |
| tree | 817b59ba17d232cd087b0b24d84683c8ff094f62 /src/buffer.c | |
| parent | d10a51dcdfab2d9283bd2e3229330c511d5af193 (diff) | |
| download | emacs-d3d50620ed3a8066c15ae3d3701b83371ca5382a.tar.gz emacs-d3d50620ed3a8066c15ae3d3701b83371ca5382a.zip | |
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/buffer.c')
| -rw-r--r-- | src/buffer.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/buffer.c b/src/buffer.c index 38399609718..df1b2328394 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1560,7 +1560,7 @@ cleaning up all windows currently displaying the buffer to be killed. */) | |||
| 1560 | since anything can happen within do_yes_or_no_p. */ | 1560 | since anything can happen within do_yes_or_no_p. */ |
| 1561 | 1561 | ||
| 1562 | /* Don't kill the minibuffer now current. */ | 1562 | /* Don't kill the minibuffer now current. */ |
| 1563 | if (EQ (buffer, WGET (XWINDOW (minibuf_window), buffer))) | 1563 | if (EQ (buffer, XWINDOW (minibuf_window)->buffer)) |
| 1564 | return Qnil; | 1564 | return Qnil; |
| 1565 | 1565 | ||
| 1566 | /* When we kill an ordinary buffer which shares it's buffer text | 1566 | /* When we kill an ordinary buffer which shares it's buffer text |
| @@ -1611,7 +1611,7 @@ cleaning up all windows currently displaying the buffer to be killed. */) | |||
| 1611 | /* If the buffer now current is shown in the minibuffer and our buffer | 1611 | /* If the buffer now current is shown in the minibuffer and our buffer |
| 1612 | is the sole other buffer give up. */ | 1612 | is the sole other buffer give up. */ |
| 1613 | XSETBUFFER (tem, current_buffer); | 1613 | XSETBUFFER (tem, current_buffer); |
| 1614 | if (EQ (tem, WGET (XWINDOW (minibuf_window), buffer)) | 1614 | if (EQ (tem, XWINDOW (minibuf_window)->buffer) |
| 1615 | && EQ (buffer, Fother_buffer (buffer, Qnil, Qnil))) | 1615 | && EQ (buffer, Fother_buffer (buffer, Qnil, Qnil))) |
| 1616 | return Qnil; | 1616 | return Qnil; |
| 1617 | 1617 | ||
| @@ -2193,13 +2193,13 @@ DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text, | |||
| 2193 | while (NILP (Fmemq (w, ws))) | 2193 | while (NILP (Fmemq (w, ws))) |
| 2194 | { | 2194 | { |
| 2195 | ws = Fcons (w, ws); | 2195 | ws = Fcons (w, ws); |
| 2196 | if (MARKERP (WGET (XWINDOW (w), pointm)) | 2196 | if (MARKERP (XWINDOW (w)->pointm) |
| 2197 | && (EQ (WGET (XWINDOW (w), buffer), buf1) | 2197 | && (EQ (XWINDOW (w)->buffer, buf1) |
| 2198 | || EQ (WGET (XWINDOW (w), buffer), buf2))) | 2198 | || EQ (XWINDOW (w)->buffer, buf2))) |
| 2199 | Fset_marker (WGET (XWINDOW (w), pointm), | 2199 | Fset_marker (XWINDOW (w)->pointm, |
| 2200 | make_number | 2200 | make_number |
| 2201 | (BUF_BEGV (XBUFFER (WGET (XWINDOW (w), buffer)))), | 2201 | (BUF_BEGV (XBUFFER (XWINDOW (w)->buffer))), |
| 2202 | WGET (XWINDOW (w), buffer)); | 2202 | XWINDOW (w)->buffer); |
| 2203 | w = Fnext_window (w, Qt, Qt); | 2203 | w = Fnext_window (w, Qt, Qt); |
| 2204 | } | 2204 | } |
| 2205 | } | 2205 | } |
| @@ -3675,7 +3675,7 @@ modify_overlay (struct buffer *buf, ptrdiff_t start, ptrdiff_t end) | |||
| 3675 | 3675 | ||
| 3676 | /* If this is a buffer not in the selected window, | 3676 | /* If this is a buffer not in the selected window, |
| 3677 | we must do other windows. */ | 3677 | we must do other windows. */ |
| 3678 | if (buf != XBUFFER (WGET (XWINDOW (selected_window), buffer))) | 3678 | if (buf != XBUFFER (XWINDOW (selected_window)->buffer)) |
| 3679 | windows_or_buffers_changed = 1; | 3679 | windows_or_buffers_changed = 1; |
| 3680 | /* If multiple windows show this buffer, we must do other windows. */ | 3680 | /* If multiple windows show this buffer, we must do other windows. */ |
| 3681 | else if (buffer_shared > 1) | 3681 | else if (buffer_shared > 1) |