aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorDmitry Antipov2012-08-13 07:39:07 +0400
committerDmitry Antipov2012-08-13 07:39:07 +0400
commit4c31be6153255dfe29a0231253263ea0d9011ac3 (patch)
treecfd30617b9270436aad8cdf810a97721aaa20747 /src/window.c
parent1439443be63a2b0d796df8ebca882cdaecb7269f (diff)
downloademacs-4c31be6153255dfe29a0231253263ea0d9011ac3.tar.gz
emacs-4c31be6153255dfe29a0231253263ea0d9011ac3.zip
Use BSET for write access to Lisp_Object members of struct buffer.
* buffer.h (BSET): New macro. * buffer.c, casetab.c, cmds.c, coding.c, data.c, editfns.c: * fileio.c, frame.c, indent.c, insdel.c, intervals.c, keymap.c: * minibuf.c, print.c, process.c, syntax.c, undo.c, w32fns.c: * window.c, xdisp.c, xfns.c: Adjust users.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c
index 1348eab0ff6..f5622b217d7 100644
--- a/src/window.c
+++ b/src/window.c
@@ -373,7 +373,7 @@ select_window (Lisp_Object window, Lisp_Object norecord, int inhibit_point_swap)
373 373
374 Fset_buffer (w->buffer); 374 Fset_buffer (w->buffer);
375 375
376 BVAR (XBUFFER (w->buffer), last_selected_window) = window; 376 BSET (XBUFFER (w->buffer), last_selected_window, window);
377 377
378 /* Go to the point recorded in the window. 378 /* Go to the point recorded in the window.
379 This is important when the buffer is in more 379 This is important when the buffer is in more
@@ -1812,7 +1812,7 @@ unshow_buffer (register struct window *w)
1812 1812
1813 if (WINDOWP (BVAR (b, last_selected_window)) 1813 if (WINDOWP (BVAR (b, last_selected_window))
1814 && w == XWINDOW (BVAR (b, last_selected_window))) 1814 && w == XWINDOW (BVAR (b, last_selected_window)))
1815 BVAR (b, last_selected_window) = Qnil; 1815 BSET (b, last_selected_window, Qnil);
1816} 1816}
1817 1817
1818/* Put NEW into the window structure in place of OLD. SETFLAG zero 1818/* Put NEW into the window structure in place of OLD. SETFLAG zero
@@ -2990,15 +2990,15 @@ set_window_buffer (Lisp_Object window, Lisp_Object buffer, int run_hooks_p, int
2990 WSET (w, buffer, buffer); 2990 WSET (w, buffer, buffer);
2991 2991
2992 if (EQ (window, selected_window)) 2992 if (EQ (window, selected_window))
2993 BVAR (b, last_selected_window) = window; 2993 BSET (b, last_selected_window, window);
2994 2994
2995 /* Let redisplay errors through. */ 2995 /* Let redisplay errors through. */
2996 b->display_error_modiff = 0; 2996 b->display_error_modiff = 0;
2997 2997
2998 /* Update time stamps of buffer display. */ 2998 /* Update time stamps of buffer display. */
2999 if (INTEGERP (BVAR (b, display_count))) 2999 if (INTEGERP (BVAR (b, display_count)))
3000 XSETINT (BVAR (b, display_count), XINT (BVAR (b, display_count)) + 1); 3000 BSET (b, display_count, make_number (XINT (BVAR (b, display_count)) + 1));
3001 BVAR (b, display_time) = Fcurrent_time (); 3001 BSET (b, display_time, Fcurrent_time ());
3002 3002
3003 WSET (w, window_end_pos, make_number (0)); 3003 WSET (w, window_end_pos, make_number (0));
3004 WSET (w, window_end_vpos, make_number (0)); 3004 WSET (w, window_end_vpos, make_number (0));
@@ -3189,7 +3189,7 @@ temp_output_buffer_show (register Lisp_Object buf)
3189 register Lisp_Object window; 3189 register Lisp_Object window;
3190 register struct window *w; 3190 register struct window *w;
3191 3191
3192 BVAR (XBUFFER (buf), directory) = BVAR (current_buffer, directory); 3192 BSET (XBUFFER (buf), directory, BVAR (current_buffer, directory));
3193 3193
3194 Fset_buffer (buf); 3194 Fset_buffer (buf);
3195 BUF_SAVE_MODIFF (XBUFFER (buf)) = MODIFF; 3195 BUF_SAVE_MODIFF (XBUFFER (buf)) = MODIFF;