aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorDmitry Antipov2012-08-06 14:24:26 +0400
committerDmitry Antipov2012-08-06 14:24:26 +0400
commit077288cf3f654776ee44bc9b56954c4e26b10d96 (patch)
tree00bbcb4dab9c879efde73a01786977b1c1364f67 /src/buffer.c
parent71688bd7f9169c12ea8be54e084470f19d44ce44 (diff)
downloademacs-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/buffer.c')
-rw-r--r--src/buffer.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 445f7bea263..6085746ee6e 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, WVAR (XWINDOW (minibuf_window), buffer))) 1563 if (EQ (buffer, WGET (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, WVAR (XWINDOW (minibuf_window), buffer)) 1614 if (EQ (tem, WGET (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 (WVAR (XWINDOW (w), pointm)) 2196 if (MARKERP (WGET (XWINDOW (w), pointm))
2197 && (EQ (WVAR (XWINDOW (w), buffer), buf1) 2197 && (EQ (WGET (XWINDOW (w), buffer), buf1)
2198 || EQ (WVAR (XWINDOW (w), buffer), buf2))) 2198 || EQ (WGET (XWINDOW (w), buffer), buf2)))
2199 Fset_marker (WVAR (XWINDOW (w), pointm), 2199 Fset_marker (WGET (XWINDOW (w), pointm),
2200 make_number 2200 make_number
2201 (BUF_BEGV (XBUFFER (WVAR (XWINDOW (w), buffer)))), 2201 (BUF_BEGV (XBUFFER (WGET (XWINDOW (w), buffer)))),
2202 WVAR (XWINDOW (w), buffer)); 2202 WGET (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 (WVAR (XWINDOW (selected_window), buffer))) 3678 if (buf != XBUFFER (WGET (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)