aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/window.c b/src/window.c
index 21dddb8a931..101fb3ff94f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -61,7 +61,7 @@ static Lisp_Object Qwindow_deletable_p, Qdelete_window, Qdisplay_buffer;
61static Lisp_Object Qreplace_buffer_in_windows, Qget_mru_window; 61static Lisp_Object Qreplace_buffer_in_windows, Qget_mru_window;
62static Lisp_Object Qwindow_resize_root_window, Qwindow_resize_root_window_vertically; 62static Lisp_Object Qwindow_resize_root_window, Qwindow_resize_root_window_vertically;
63static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; 63static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command;
64static Lisp_Object Qsafe, Qabove, Qbelow, Qtemp_buffer_resize, Qclone_of; 64static Lisp_Object Qsafe, Qabove, Qbelow, Qwindow_size, Qclone_of;
65 65
66static int displayed_window_lines (struct window *); 66static int displayed_window_lines (struct window *);
67static int count_windows (struct window *); 67static int count_windows (struct window *);
@@ -134,102 +134,102 @@ static EMACS_INT window_scroll_preserve_hpos;
134static EMACS_INT window_scroll_preserve_vpos; 134static EMACS_INT window_scroll_preserve_vpos;
135 135
136/* These setters are used only in this file, so they can be private. */ 136/* These setters are used only in this file, so they can be private. */
137static inline void 137static void
138wset_combination_limit (struct window *w, Lisp_Object val) 138wset_combination_limit (struct window *w, Lisp_Object val)
139{ 139{
140 w->combination_limit = val; 140 w->combination_limit = val;
141} 141}
142static inline void 142static void
143wset_dedicated (struct window *w, Lisp_Object val) 143wset_dedicated (struct window *w, Lisp_Object val)
144{ 144{
145 w->dedicated = val; 145 w->dedicated = val;
146} 146}
147static inline void 147static void
148wset_display_table (struct window *w, Lisp_Object val) 148wset_display_table (struct window *w, Lisp_Object val)
149{ 149{
150 w->display_table = val; 150 w->display_table = val;
151} 151}
152static inline void 152static void
153wset_hchild (struct window *w, Lisp_Object val) 153wset_hchild (struct window *w, Lisp_Object val)
154{ 154{
155 w->hchild = val; 155 w->hchild = val;
156} 156}
157static inline void 157static void
158wset_left_fringe_width (struct window *w, Lisp_Object val) 158wset_left_fringe_width (struct window *w, Lisp_Object val)
159{ 159{
160 w->left_fringe_width = val; 160 w->left_fringe_width = val;
161} 161}
162static inline void 162static void
163wset_left_margin_cols (struct window *w, Lisp_Object val) 163wset_left_margin_cols (struct window *w, Lisp_Object val)
164{ 164{
165 w->left_margin_cols = val; 165 w->left_margin_cols = val;
166} 166}
167static inline void 167static void
168wset_new_normal (struct window *w, Lisp_Object val) 168wset_new_normal (struct window *w, Lisp_Object val)
169{ 169{
170 w->new_normal = val; 170 w->new_normal = val;
171} 171}
172static inline void 172static void
173wset_new_total (struct window *w, Lisp_Object val) 173wset_new_total (struct window *w, Lisp_Object val)
174{ 174{
175 w->new_total = val; 175 w->new_total = val;
176} 176}
177static inline void 177static void
178wset_normal_cols (struct window *w, Lisp_Object val) 178wset_normal_cols (struct window *w, Lisp_Object val)
179{ 179{
180 w->normal_cols = val; 180 w->normal_cols = val;
181} 181}
182static inline void 182static void
183wset_normal_lines (struct window *w, Lisp_Object val) 183wset_normal_lines (struct window *w, Lisp_Object val)
184{ 184{
185 w->normal_lines = val; 185 w->normal_lines = val;
186} 186}
187static inline void 187static void
188wset_parent (struct window *w, Lisp_Object val) 188wset_parent (struct window *w, Lisp_Object val)
189{ 189{
190 w->parent = val; 190 w->parent = val;
191} 191}
192static inline void 192static void
193wset_pointm (struct window *w, Lisp_Object val) 193wset_pointm (struct window *w, Lisp_Object val)
194{ 194{
195 w->pointm = val; 195 w->pointm = val;
196} 196}
197static inline void 197static void
198wset_right_fringe_width (struct window *w, Lisp_Object val) 198wset_right_fringe_width (struct window *w, Lisp_Object val)
199{ 199{
200 w->right_fringe_width = val; 200 w->right_fringe_width = val;
201} 201}
202static inline void 202static void
203wset_right_margin_cols (struct window *w, Lisp_Object val) 203wset_right_margin_cols (struct window *w, Lisp_Object val)
204{ 204{
205 w->right_margin_cols = val; 205 w->right_margin_cols = val;
206} 206}
207static inline void 207static void
208wset_scroll_bar_width (struct window *w, Lisp_Object val) 208wset_scroll_bar_width (struct window *w, Lisp_Object val)
209{ 209{
210 w->scroll_bar_width = val; 210 w->scroll_bar_width = val;
211} 211}
212static inline void 212static void
213wset_start (struct window *w, Lisp_Object val) 213wset_start (struct window *w, Lisp_Object val)
214{ 214{
215 w->start = val; 215 w->start = val;
216} 216}
217static inline void 217static void
218wset_temslot (struct window *w, Lisp_Object val) 218wset_temslot (struct window *w, Lisp_Object val)
219{ 219{
220 w->temslot = val; 220 w->temslot = val;
221} 221}
222static inline void 222static void
223wset_vchild (struct window *w, Lisp_Object val) 223wset_vchild (struct window *w, Lisp_Object val)
224{ 224{
225 w->vchild = val; 225 w->vchild = val;
226} 226}
227static inline void 227static void
228wset_vertical_scroll_bar_type (struct window *w, Lisp_Object val) 228wset_vertical_scroll_bar_type (struct window *w, Lisp_Object val)
229{ 229{
230 w->vertical_scroll_bar_type = val; 230 w->vertical_scroll_bar_type = val;
231} 231}
232static inline void 232static void
233wset_window_parameters (struct window *w, Lisp_Object val) 233wset_window_parameters (struct window *w, Lisp_Object val)
234{ 234{
235 w->window_parameters = val; 235 w->window_parameters = val;
@@ -6708,7 +6708,7 @@ syms_of_window (void)
6708 DEFSYM (Qreplace_buffer_in_windows, "replace-buffer-in-windows"); 6708 DEFSYM (Qreplace_buffer_in_windows, "replace-buffer-in-windows");
6709 DEFSYM (Qrecord_window_buffer, "record-window-buffer"); 6709 DEFSYM (Qrecord_window_buffer, "record-window-buffer");
6710 DEFSYM (Qget_mru_window, "get-mru-window"); 6710 DEFSYM (Qget_mru_window, "get-mru-window");
6711 DEFSYM (Qtemp_buffer_resize, "temp-buffer-resize"); 6711 DEFSYM (Qwindow_size, "window-size");
6712 DEFSYM (Qtemp_buffer_show_hook, "temp-buffer-show-hook"); 6712 DEFSYM (Qtemp_buffer_show_hook, "temp-buffer-show-hook");
6713 DEFSYM (Qabove, "above"); 6713 DEFSYM (Qabove, "above");
6714 DEFSYM (Qbelow, "below"); 6714 DEFSYM (Qbelow, "below");
@@ -6808,19 +6808,19 @@ This variable takes no effect if `window-combination-limit' is non-nil. */);
6808The following values are recognized: 6808The following values are recognized:
6809 6809
6810nil means splitting a window will create a new parent window only if the 6810nil means splitting a window will create a new parent window only if the
6811 window has no parent window or the window shall become a combination 6811 window has no parent window or the window shall become part of a
6812 orthogonal to the one it is part of. 6812 combination orthogonal to the one it is part of.
6813 6813
6814`temp-buffer-resize' means that splitting a window for displaying a 6814`window-size' means that splitting a window for displaying a buffer
6815 temporary buffer makes a new parent window provided 6815 makes a new parent window provided `display-buffer' is supposed to
6816 `temp-buffer-resize-mode' is enabled. Otherwise, this value is 6816 explicitly set the window's size due to the presence of a
6817 handled like nil. 6817 `window-height' or `window-width' entry in the alist used by
6818 `display-buffer'. Otherwise, this value is handled like nil.
6818 6819
6819`temp-buffer' means that splitting a window for displaying a temporary 6820`temp-buffer' means that splitting a window for displaying a temporary
6820 buffer always makes a new parent window. Otherwise, this value is 6821 buffer always makes a new parent window. Otherwise, this value is
6821 handled like nil. 6822 handled like nil.
6822 6823
6823
6824`display-buffer' means that splitting a window for displaying a buffer 6824`display-buffer' means that splitting a window for displaying a buffer
6825 always makes a new parent window. Since temporary buffers are 6825 always makes a new parent window. Since temporary buffers are
6826 displayed by the function `display-buffer', this value is stronger 6826 displayed by the function `display-buffer', this value is stronger
@@ -6833,7 +6833,7 @@ t means that splitting a window always creates a new parent window. If
6833 sibling. 6833 sibling.
6834 6834
6835Other values are reserved for future use. */); 6835Other values are reserved for future use. */);
6836 Vwindow_combination_limit = Qtemp_buffer_resize; 6836 Vwindow_combination_limit = Qwindow_size;
6837 6837
6838 DEFVAR_LISP ("window-persistent-parameters", Vwindow_persistent_parameters, 6838 DEFVAR_LISP ("window-persistent-parameters", Vwindow_persistent_parameters,
6839 doc: /* Alist of persistent window parameters. 6839 doc: /* Alist of persistent window parameters.