diff options
| author | Joakim Verona | 2012-10-16 17:14:35 +0200 |
|---|---|---|
| committer | Joakim Verona | 2012-10-16 17:14:35 +0200 |
| commit | 017a270078be5ae39301e3205afad80d23facbbc (patch) | |
| tree | 5c85d8c3890f3a0cead231e87823b621a8f28e16 /src/window.c | |
| parent | 5fcc7035c884b4419a1619551222b5f28ad9906f (diff) | |
| parent | 2b794d6940aa7dc58e297b3649b7799190d71f64 (diff) | |
| download | emacs-017a270078be5ae39301e3205afad80d23facbbc.tar.gz emacs-017a270078be5ae39301e3205afad80d23facbbc.zip | |
upstream
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 60 |
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; | |||
| 61 | static Lisp_Object Qreplace_buffer_in_windows, Qget_mru_window; | 61 | static Lisp_Object Qreplace_buffer_in_windows, Qget_mru_window; |
| 62 | static Lisp_Object Qwindow_resize_root_window, Qwindow_resize_root_window_vertically; | 62 | static Lisp_Object Qwindow_resize_root_window, Qwindow_resize_root_window_vertically; |
| 63 | static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; | 63 | static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; |
| 64 | static Lisp_Object Qsafe, Qabove, Qbelow, Qtemp_buffer_resize, Qclone_of; | 64 | static Lisp_Object Qsafe, Qabove, Qbelow, Qwindow_size, Qclone_of; |
| 65 | 65 | ||
| 66 | static int displayed_window_lines (struct window *); | 66 | static int displayed_window_lines (struct window *); |
| 67 | static int count_windows (struct window *); | 67 | static int count_windows (struct window *); |
| @@ -134,102 +134,102 @@ static EMACS_INT window_scroll_preserve_hpos; | |||
| 134 | static EMACS_INT window_scroll_preserve_vpos; | 134 | static 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. */ |
| 137 | static inline void | 137 | static void |
| 138 | wset_combination_limit (struct window *w, Lisp_Object val) | 138 | wset_combination_limit (struct window *w, Lisp_Object val) |
| 139 | { | 139 | { |
| 140 | w->combination_limit = val; | 140 | w->combination_limit = val; |
| 141 | } | 141 | } |
| 142 | static inline void | 142 | static void |
| 143 | wset_dedicated (struct window *w, Lisp_Object val) | 143 | wset_dedicated (struct window *w, Lisp_Object val) |
| 144 | { | 144 | { |
| 145 | w->dedicated = val; | 145 | w->dedicated = val; |
| 146 | } | 146 | } |
| 147 | static inline void | 147 | static void |
| 148 | wset_display_table (struct window *w, Lisp_Object val) | 148 | wset_display_table (struct window *w, Lisp_Object val) |
| 149 | { | 149 | { |
| 150 | w->display_table = val; | 150 | w->display_table = val; |
| 151 | } | 151 | } |
| 152 | static inline void | 152 | static void |
| 153 | wset_hchild (struct window *w, Lisp_Object val) | 153 | wset_hchild (struct window *w, Lisp_Object val) |
| 154 | { | 154 | { |
| 155 | w->hchild = val; | 155 | w->hchild = val; |
| 156 | } | 156 | } |
| 157 | static inline void | 157 | static void |
| 158 | wset_left_fringe_width (struct window *w, Lisp_Object val) | 158 | wset_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 | } |
| 162 | static inline void | 162 | static void |
| 163 | wset_left_margin_cols (struct window *w, Lisp_Object val) | 163 | wset_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 | } |
| 167 | static inline void | 167 | static void |
| 168 | wset_new_normal (struct window *w, Lisp_Object val) | 168 | wset_new_normal (struct window *w, Lisp_Object val) |
| 169 | { | 169 | { |
| 170 | w->new_normal = val; | 170 | w->new_normal = val; |
| 171 | } | 171 | } |
| 172 | static inline void | 172 | static void |
| 173 | wset_new_total (struct window *w, Lisp_Object val) | 173 | wset_new_total (struct window *w, Lisp_Object val) |
| 174 | { | 174 | { |
| 175 | w->new_total = val; | 175 | w->new_total = val; |
| 176 | } | 176 | } |
| 177 | static inline void | 177 | static void |
| 178 | wset_normal_cols (struct window *w, Lisp_Object val) | 178 | wset_normal_cols (struct window *w, Lisp_Object val) |
| 179 | { | 179 | { |
| 180 | w->normal_cols = val; | 180 | w->normal_cols = val; |
| 181 | } | 181 | } |
| 182 | static inline void | 182 | static void |
| 183 | wset_normal_lines (struct window *w, Lisp_Object val) | 183 | wset_normal_lines (struct window *w, Lisp_Object val) |
| 184 | { | 184 | { |
| 185 | w->normal_lines = val; | 185 | w->normal_lines = val; |
| 186 | } | 186 | } |
| 187 | static inline void | 187 | static void |
| 188 | wset_parent (struct window *w, Lisp_Object val) | 188 | wset_parent (struct window *w, Lisp_Object val) |
| 189 | { | 189 | { |
| 190 | w->parent = val; | 190 | w->parent = val; |
| 191 | } | 191 | } |
| 192 | static inline void | 192 | static void |
| 193 | wset_pointm (struct window *w, Lisp_Object val) | 193 | wset_pointm (struct window *w, Lisp_Object val) |
| 194 | { | 194 | { |
| 195 | w->pointm = val; | 195 | w->pointm = val; |
| 196 | } | 196 | } |
| 197 | static inline void | 197 | static void |
| 198 | wset_right_fringe_width (struct window *w, Lisp_Object val) | 198 | wset_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 | } |
| 202 | static inline void | 202 | static void |
| 203 | wset_right_margin_cols (struct window *w, Lisp_Object val) | 203 | wset_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 | } |
| 207 | static inline void | 207 | static void |
| 208 | wset_scroll_bar_width (struct window *w, Lisp_Object val) | 208 | wset_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 | } |
| 212 | static inline void | 212 | static void |
| 213 | wset_start (struct window *w, Lisp_Object val) | 213 | wset_start (struct window *w, Lisp_Object val) |
| 214 | { | 214 | { |
| 215 | w->start = val; | 215 | w->start = val; |
| 216 | } | 216 | } |
| 217 | static inline void | 217 | static void |
| 218 | wset_temslot (struct window *w, Lisp_Object val) | 218 | wset_temslot (struct window *w, Lisp_Object val) |
| 219 | { | 219 | { |
| 220 | w->temslot = val; | 220 | w->temslot = val; |
| 221 | } | 221 | } |
| 222 | static inline void | 222 | static void |
| 223 | wset_vchild (struct window *w, Lisp_Object val) | 223 | wset_vchild (struct window *w, Lisp_Object val) |
| 224 | { | 224 | { |
| 225 | w->vchild = val; | 225 | w->vchild = val; |
| 226 | } | 226 | } |
| 227 | static inline void | 227 | static void |
| 228 | wset_vertical_scroll_bar_type (struct window *w, Lisp_Object val) | 228 | wset_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 | } |
| 232 | static inline void | 232 | static void |
| 233 | wset_window_parameters (struct window *w, Lisp_Object val) | 233 | wset_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. */); | |||
| 6808 | The following values are recognized: | 6808 | The following values are recognized: |
| 6809 | 6809 | ||
| 6810 | nil means splitting a window will create a new parent window only if the | 6810 | nil 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 | ||
| 6835 | Other values are reserved for future use. */); | 6835 | Other 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. |