aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
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 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)