aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-10-04 12:30:31 +0000
committerKarl Heuer1994-10-04 12:30:31 +0000
commit7411261396dd39a6e2e09bfe3a4050028b246663 (patch)
tree2a788fe4ca1a6c49d11fcca88b1fbd30ef0de61a /src
parent552bdbcf7114b65201f8a6c169837dcfb255f892 (diff)
downloademacs-7411261396dd39a6e2e09bfe3a4050028b246663.tar.gz
emacs-7411261396dd39a6e2e09bfe3a4050028b246663.zip
(Fminibuffer_window, Fwindow_at, Fwindow_end, Fnext_window, Fprevious_window,
Fdisplay_buffer, Frecenter, Fmove_to_window_line, Fcurrent_window_configuration): Use new accessor macros instead of calling XSET directly.
Diffstat (limited to 'src')
-rw-r--r--src/window.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/window.c b/src/window.c
index bad4815540e..4cc0356f6a1 100644
--- a/src/window.c
+++ b/src/window.c
@@ -161,7 +161,7 @@ used by that frame.")
161{ 161{
162#ifdef MULTI_FRAME 162#ifdef MULTI_FRAME
163 if (NILP (frame)) 163 if (NILP (frame))
164 XSET (frame, Lisp_Frame, selected_frame); 164 XSETFRAME (frame, selected_frame);
165 else 165 else
166 CHECK_LIVE_FRAME (frame, 0); 166 CHECK_LIVE_FRAME (frame, 0);
167#endif 167#endif
@@ -446,7 +446,7 @@ column 0.")
446 446
447#ifdef MULTI_FRAME 447#ifdef MULTI_FRAME
448 if (NILP (frame)) 448 if (NILP (frame))
449 XSET (frame, Lisp_Frame, selected_frame); 449 XSETFRAME (frame, selected_frame);
450 else 450 else
451 CHECK_LIVE_FRAME (frame, 2); 451 CHECK_LIVE_FRAME (frame, 2);
452#endif 452#endif
@@ -522,8 +522,8 @@ does not update this value.")
522 return Qnil; 522 return Qnil;
523#endif 523#endif
524 524
525 XSET (value, Lisp_Int, 525 XSETINT (value,
526 BUF_Z (XBUFFER (buf)) - XFASTINT (w->window_end_pos)); 526 BUF_Z (XBUFFER (buf)) - XFASTINT (w->window_end_pos));
527 527
528 return value; 528 return value;
529} 529}
@@ -953,7 +953,7 @@ DEFUN ("next-window", Fnext_window, Snext_window, 0, 3, 0,
953 If that happens, go back to the selected frame 953 If that happens, go back to the selected frame
954 so we can complete the cycle. */ 954 so we can complete the cycle. */
955 if (EQ (tem, tem1)) 955 if (EQ (tem, tem1))
956 XSET (tem, Lisp_Frame, selected_frame); 956 XSETFRAME (tem, selected_frame);
957 } 957 }
958#endif 958#endif
959 tem = FRAME_ROOT_WINDOW (XFRAME (tem)); 959 tem = FRAME_ROOT_WINDOW (XFRAME (tem));
@@ -1097,7 +1097,7 @@ DEFUN ("previous-window", Fprevious_window, Sprevious_window, 0, 3, 0,
1097 If that happens, go back to the selected frame 1097 If that happens, go back to the selected frame
1098 so we can complete the cycle. */ 1098 so we can complete the cycle. */
1099 if (EQ (tem, tem1)) 1099 if (EQ (tem, tem1))
1100 XSET (tem, Lisp_Frame, selected_frame); 1100 XSETFRAME (tem, selected_frame);
1101 } 1101 }
1102#endif 1102#endif
1103 /* If this frame has a minibuffer, find that window first, 1103 /* If this frame has a minibuffer, find that window first,
@@ -1905,7 +1905,7 @@ Returns the window displaying BUFFER.")
1905 frames = Qnil; 1905 frames = Qnil;
1906#ifdef MULTI_FRAME 1906#ifdef MULTI_FRAME
1907 if (FRAME_MINIBUF_ONLY_P (selected_frame)) 1907 if (FRAME_MINIBUF_ONLY_P (selected_frame))
1908 XSET (frames, Lisp_Frame, last_nonminibuf_frame); 1908 XSETFRAME (frames, last_nonminibuf_frame);
1909#endif 1909#endif
1910 /* Don't try to create a window if would get an error */ 1910 /* Don't try to create a window if would get an error */
1911 if (split_height_threshold < window_min_height << 1) 1911 if (split_height_threshold < window_min_height << 1)
@@ -2652,7 +2652,7 @@ redraws with point in the center of the current window.")
2652 if (XINT (n) < 0) 2652 if (XINT (n) < 0)
2653 XSETINT (n, XINT (n) + ht); 2653 XSETINT (n, XINT (n) + ht);
2654 2654
2655 XSET (window, Lisp_Window, w); 2655 XSETWINDOW (window, w);
2656 pos = *vmotion (point, - XINT (n), window_internal_width (w) - 1, 2656 pos = *vmotion (point, - XINT (n), window_internal_width (w) - 1,
2657 XINT (w->hscroll), window); 2657 XINT (w->hscroll), window);
2658 2658
@@ -2689,7 +2689,7 @@ negative means relative to bottom of window.")
2689 } 2689 }
2690 2690
2691 start = marker_position (w->start); 2691 start = marker_position (w->start);
2692 XSET (window, Lisp_Window, w); 2692 XSETWINDOW (window, w);
2693 if (start < BEGV || start > ZV) 2693 if (start < BEGV || start > ZV)
2694 { 2694 {
2695 Fvertical_motion (make_number (- (height / 2)), window); 2695 Fvertical_motion (make_number (- (height / 2)), window);
@@ -3127,15 +3127,15 @@ redirection (see `redirect-frame-focus').")
3127 XFASTINT (data->frame_height) = FRAME_HEIGHT (f); 3127 XFASTINT (data->frame_height) = FRAME_HEIGHT (f);
3128 XFASTINT (data->frame_menu_bar_lines) = FRAME_MENU_BAR_LINES (f); 3128 XFASTINT (data->frame_menu_bar_lines) = FRAME_MENU_BAR_LINES (f);
3129#ifdef MULTI_FRAME 3129#ifdef MULTI_FRAME
3130 XSET (data->selected_frame, Lisp_Frame, selected_frame); 3130 XSETFRAME (data->selected_frame, selected_frame);
3131#endif 3131#endif
3132 data->current_window = FRAME_SELECTED_WINDOW (f); 3132 data->current_window = FRAME_SELECTED_WINDOW (f);
3133 XSET (data->current_buffer, Lisp_Buffer, current_buffer); 3133 XSETBUFFER (data->current_buffer, current_buffer);
3134 data->minibuf_scroll_window = Vminibuf_scroll_window; 3134 data->minibuf_scroll_window = Vminibuf_scroll_window;
3135 data->root_window = FRAME_ROOT_WINDOW (f); 3135 data->root_window = FRAME_ROOT_WINDOW (f);
3136 data->focus_frame = FRAME_FOCUS_FRAME (f); 3136 data->focus_frame = FRAME_FOCUS_FRAME (f);
3137 XSET (data->min_height, Lisp_Int, window_min_height); 3137 XSETINT (data->min_height, window_min_height);
3138 XSET (data->min_width, Lisp_Int, window_min_width); 3138 XSETINT (data->min_width, window_min_width);
3139 tem = Fmake_vector (make_number (n_windows), Qnil); 3139 tem = Fmake_vector (make_number (n_windows), Qnil);
3140 data->saved_windows = tem; 3140 data->saved_windows = tem;
3141 for (i = 0; i < n_windows; i++) 3141 for (i = 0; i < n_windows; i++)
@@ -3143,7 +3143,7 @@ redirection (see `redirect-frame-focus').")
3143 = Fmake_vector (make_number (SAVED_WINDOW_VECTOR_SIZE), Qnil); 3143 = Fmake_vector (make_number (SAVED_WINDOW_VECTOR_SIZE), Qnil);
3144 save_window_save (FRAME_ROOT_WINDOW (f), 3144 save_window_save (FRAME_ROOT_WINDOW (f),
3145 XVECTOR (tem), 0); 3145 XVECTOR (tem), 0);
3146 XSET (tem, Lisp_Window_Configuration, data); 3146 XSETWINDOW_CONFIGURATION (tem, data);
3147 return (tem); 3147 return (tem);
3148} 3148}
3149 3149