diff options
| author | Martin Rudalics | 2011-11-16 11:10:40 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2011-11-16 11:10:40 +0100 |
| commit | b6f6789018b0bd41368126cfb45307334d6ff4d6 (patch) | |
| tree | eb2f35085b12fa731c3dcfdb82ac97abafc913a7 /lisp | |
| parent | ce7ddba00114b8876179e87c222fd8697da19ac0 (diff) | |
| download | emacs-b6f6789018b0bd41368126cfb45307334d6ff4d6.tar.gz emacs-b6f6789018b0bd41368126cfb45307334d6ff4d6.zip | |
Rename window-nest to window-combination-limit.
* window.h (window): Rename slot "nest" to "combination_limit".
* window.c (Fwindow_nest): Rename to Fwindow_combination_limit.
(Fset_window_nest): Rename to Fset_window_combination_limit.
(Vwindow_nest): Rename to Vwindow_combination_limit.
(recombine_windows, make_parent_window, make_window)
(Fsplit_window_internal, saved_window)
(Fset_window_configuration, save_window_save): Rename all
occurrences of window_nest to window_combination_limit.
* window.el (split-window, window-state-get-1)
(window-state-put-1, window-state-put-2): Rename occurrences of
window-nest to window-combination-limit.
* cus-start.el (window-nest): Rename to
window-combination-limit.
* windows.texi (Resizing Windows, Splitting Windows): Rename
occurrences of window-nest to window-combination-limit.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/cus-start.el | 2 | ||||
| -rw-r--r-- | lisp/window.el | 36 |
3 files changed, 29 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e4a9be99d5c..df356fbbfc0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2011-11-16 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * window.el (split-window, window-state-get-1) | ||
| 4 | (window-state-put-1, window-state-put-2): Rename occurrences of | ||
| 5 | window-nest to window-combination-limit. | ||
| 6 | * cus-start.el (window-nest): Rename to | ||
| 7 | window-combination-limit. | ||
| 8 | |||
| 1 | 2011-11-16 Chong Yidong <cyd@gnu.org> | 9 | 2011-11-16 Chong Yidong <cyd@gnu.org> |
| 2 | 10 | ||
| 3 | * progmodes/autoconf.el (autoconf-mode): Fix comment-start-skip | 11 | * progmodes/autoconf.el (autoconf-mode): Fix comment-start-skip |
diff --git a/lisp/cus-start.el b/lisp/cus-start.el index 3760a7a9d74..c8df8985be9 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el | |||
| @@ -401,7 +401,7 @@ since it could result in memory overflow and make Emacs crash." | |||
| 401 | (const :tag "Only on ttys" :value tty) | 401 | (const :tag "Only on ttys" :value tty) |
| 402 | (other :tag "Always" t)) "23.1") | 402 | (other :tag "Always" t)) "23.1") |
| 403 | (window-splits windows boolean "24.1") | 403 | (window-splits windows boolean "24.1") |
| 404 | (window-nest windows boolean "24.1") | 404 | (window-combination-limit windows boolean "24.1") |
| 405 | ;; xdisp.c | 405 | ;; xdisp.c |
| 406 | (show-trailing-whitespace whitespace-faces boolean nil | 406 | (show-trailing-whitespace whitespace-faces boolean nil |
| 407 | :safe booleanp) | 407 | :safe booleanp) |
diff --git a/lisp/window.el b/lisp/window.el index ddb29b95856..6de37c1d16e 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -3083,9 +3083,9 @@ frame. The selected window is not changed by this function." | |||
| 3083 | (parent (window-parent window)) | 3083 | (parent (window-parent window)) |
| 3084 | (function (window-parameter window 'split-window)) | 3084 | (function (window-parameter window 'split-window)) |
| 3085 | (window-side (window-parameter window 'window-side)) | 3085 | (window-side (window-parameter window 'window-side)) |
| 3086 | ;; Rebind `window-nest' since in some cases we may have to | 3086 | ;; Rebind `window-combination-limit' since in some cases we may |
| 3087 | ;; override its value. | 3087 | ;; have to override its value. |
| 3088 | (window-nest window-nest) | 3088 | (window-combination-limit window-combination-limit) |
| 3089 | atom-root) | 3089 | atom-root) |
| 3090 | 3090 | ||
| 3091 | (window--check frame) | 3091 | (window--check frame) |
| @@ -3109,15 +3109,15 @@ frame. The selected window is not changed by this function." | |||
| 3109 | (or (not parent) | 3109 | (or (not parent) |
| 3110 | (not (window-parameter parent 'window-side)))) | 3110 | (not (window-parameter parent 'window-side)))) |
| 3111 | ;; WINDOW is a side root window. To make sure that a new parent | 3111 | ;; WINDOW is a side root window. To make sure that a new parent |
| 3112 | ;; window gets created set `window-nest' to t. | 3112 | ;; window gets created set `window-combination-limit' to t. |
| 3113 | (setq window-nest t)) | 3113 | (setq window-combination-limit t)) |
| 3114 | 3114 | ||
| 3115 | (when (and window-splits size (> size 0)) | 3115 | (when (and window-splits size (> size 0)) |
| 3116 | ;; If `window-splits' is non-nil and SIZE is a non-negative | 3116 | ;; If `window-splits' is non-nil and SIZE is a non-negative |
| 3117 | ;; integer, we cannot reasonably resize other windows. Rather | 3117 | ;; integer, we cannot reasonably resize other windows. Rather |
| 3118 | ;; bind `window-nest' to t to make sure that subsequent window | 3118 | ;; bind `window-combination-limit' to t to make sure that |
| 3119 | ;; deletions are handled correctly. | 3119 | ;; subsequent window deletions are handled correctly. |
| 3120 | (setq window-nest t)) | 3120 | (setq window-combination-limit t)) |
| 3121 | 3121 | ||
| 3122 | (let* ((parent-size | 3122 | (let* ((parent-size |
| 3123 | ;; `parent-size' is the size of WINDOW's parent, provided | 3123 | ;; `parent-size' is the size of WINDOW's parent, provided |
| @@ -3126,7 +3126,7 @@ frame. The selected window is not changed by this function." | |||
| 3126 | ;; `resize' non-nil means we are supposed to resize other | 3126 | ;; `resize' non-nil means we are supposed to resize other |
| 3127 | ;; windows in WINDOW's combination. | 3127 | ;; windows in WINDOW's combination. |
| 3128 | (resize | 3128 | (resize |
| 3129 | (and window-splits (not window-nest) | 3129 | (and window-splits (not window-combination-limit) |
| 3130 | ;; Resize makes sense in iso-combinations only. | 3130 | ;; Resize makes sense in iso-combinations only. |
| 3131 | (window-combined-p window horizontal))) | 3131 | (window-combined-p window horizontal))) |
| 3132 | ;; `old-size' is the current size of WINDOW. | 3132 | ;; `old-size' is the current size of WINDOW. |
| @@ -3206,7 +3206,8 @@ frame. The selected window is not changed by this function." | |||
| 3206 | ;; Make new-parent non-nil if we need a new parent window; | 3206 | ;; Make new-parent non-nil if we need a new parent window; |
| 3207 | ;; either because we want to nest or because WINDOW is not | 3207 | ;; either because we want to nest or because WINDOW is not |
| 3208 | ;; iso-combined. | 3208 | ;; iso-combined. |
| 3209 | (or window-nest (not (window-combined-p window horizontal)))) | 3209 | (or window-combination-limit |
| 3210 | (not (window-combined-p window horizontal)))) | ||
| 3210 | (setq new-normal | 3211 | (setq new-normal |
| 3211 | ;; Make new-normal the normal size of the new window. | 3212 | ;; Make new-normal the normal size of the new window. |
| 3212 | (cond | 3213 | (cond |
| @@ -3584,7 +3585,7 @@ specific buffers." | |||
| 3584 | (total-width . ,(window-total-size window t)) | 3585 | (total-width . ,(window-total-size window t)) |
| 3585 | (normal-height . ,(window-normal-size window)) | 3586 | (normal-height . ,(window-normal-size window)) |
| 3586 | (normal-width . ,(window-normal-size window t)) | 3587 | (normal-width . ,(window-normal-size window t)) |
| 3587 | (nest . ,(window-nest window)) | 3588 | (combination-limit . ,(window-combination-limit window)) |
| 3588 | ,@(let (list) | 3589 | ,@(let (list) |
| 3589 | (dolist (parameter (window-parameters window)) | 3590 | (dolist (parameter (window-parameters window)) |
| 3590 | (unless (memq (car parameter) | 3591 | (unless (memq (car parameter) |
| @@ -3709,9 +3710,11 @@ value can be also stored on disk and read back in a new session." | |||
| 3709 | window-safe-min-width))) | 3710 | window-safe-min-width))) |
| 3710 | 3711 | ||
| 3711 | (if (window-sizable-p window (- size) horizontal 'safe) | 3712 | (if (window-sizable-p window (- size) horizontal 'safe) |
| 3712 | (let* ((window-nest (assq 'nest item))) | 3713 | (let* ((window-combination-limit |
| 3713 | ;; We must inherit the nesting, otherwise we might mess | 3714 | (assq 'combination-limit item))) |
| 3714 | ;; up handling of atomic and side window. | 3715 | ;; We must inherit the combiantion limit, otherwise |
| 3716 | ;; we might mess up handling of atomic and side | ||
| 3717 | ;; window. | ||
| 3715 | (setq new (split-window window size horizontal))) | 3718 | (setq new (split-window window size horizontal))) |
| 3716 | ;; Give up if we can't resize window down to safe sizes. | 3719 | ;; Give up if we can't resize window down to safe sizes. |
| 3717 | (error "Cannot resize window %s" window)) | 3720 | (error "Cannot resize window %s" window)) |
| @@ -3735,10 +3738,11 @@ value can be also stored on disk and read back in a new session." | |||
| 3735 | (dolist (item window-state-put-list) | 3738 | (dolist (item window-state-put-list) |
| 3736 | (let ((window (car item)) | 3739 | (let ((window (car item)) |
| 3737 | (splits (cdr (assq 'splits item))) | 3740 | (splits (cdr (assq 'splits item))) |
| 3738 | (nest (cdr (assq 'nest item))) | 3741 | (combination-limit (cdr (assq 'combination-limit item))) |
| 3739 | (parameters (cdr (assq 'parameters item))) | 3742 | (parameters (cdr (assq 'parameters item))) |
| 3740 | (state (cdr (assq 'buffer item)))) | 3743 | (state (cdr (assq 'buffer item)))) |
| 3741 | (when nest (set-window-nest window nest)) | 3744 | (when combination-limit |
| 3745 | (set-window-combination-limit window combination-limit)) | ||
| 3742 | ;; Process parameters. | 3746 | ;; Process parameters. |
| 3743 | (when parameters | 3747 | (when parameters |
| 3744 | (dolist (parameter parameters) | 3748 | (dolist (parameter parameters) |