diff options
| author | Martin Rudalics | 2011-12-13 14:37:48 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2011-12-13 14:37:48 +0100 |
| commit | 454592a615ac4d86a6ce594945487642be5013d7 (patch) | |
| tree | 44ff04a72dfdb9acf478954bafcb53eea3c9db2b | |
| parent | 87393f2618610b11f406db76f41677475bec41cc (diff) | |
| download | emacs-454592a615ac4d86a6ce594945487642be5013d7.tar.gz emacs-454592a615ac4d86a6ce594945487642be5013d7.zip | |
Minor fixes in window handling code and docs.
* window.c (Vwindow_combination_resize)
(Vwindow_combination_limit): Use t instead of non-nil in
doc-strings.
* window.el (delete-other-windows): Use correct frame in call to
window-with-parameter.
* windows.texi (Splitting Windows): Use t instead of non-nil
when describing window-combination-resize.
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 34 | ||||
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/window.el | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/window.c | 8 |
6 files changed, 39 insertions, 21 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 44d44e7528c..a03521d449b 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-12-13 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * windows.texi (Splitting Windows): Use t instead of non-nil | ||
| 4 | when describing window-combination-resize. | ||
| 5 | |||
| 1 | 2011-12-05 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2011-12-05 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * text.texi (Special Properties): Warn against `intangible' properties | 8 | * text.texi (Special Properties): Warn against `intangible' properties |
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index 437b6db8d58..df631158689 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -793,20 +793,20 @@ the new root window. | |||
| 793 | 793 | ||
| 794 | @defopt window-combination-resize | 794 | @defopt window-combination-resize |
| 795 | If this variable is @code{nil}, @code{split-window} can only split a | 795 | If this variable is @code{nil}, @code{split-window} can only split a |
| 796 | window (denoted by @var{window}) if @var{window}'s screen area is | 796 | window (denoted by @var{window}) if @var{window}'s screen area is large |
| 797 | large enough to accommodate both itself and the new window. This is | 797 | enough to accommodate both itself and the new window. |
| 798 | the default. | 798 | |
| 799 | 799 | If this variable is @code{t}, @code{split-window} tries to resize all | |
| 800 | If this variable is non-@code{nil}, @code{split-window} tries to | 800 | windows that are part of the same combination as @var{window}, in order |
| 801 | resize all windows that are part of the same combination as | 801 | to accommodate the new window. In particular, this may allow |
| 802 | @var{window}, in order to accommodate the new window. In particular, | 802 | @code{split-window} to succeed even if @var{window} is a fixed-size |
| 803 | this may allow @code{split-window} to succeed even if @var{window} is | 803 | window or too small to ordinarily split. Furthermore, subsequently |
| 804 | a fixed-size window or too small to ordinarily split. Furthermore, | 804 | resizing or deleting @var{window} may resize all other windows in its |
| 805 | subsequently resizing or deleting @var{window} may resize all other | 805 | combination. |
| 806 | windows in its combination. | 806 | |
| 807 | 807 | The default is @code{nil}. Other values are reserved for future use. | |
| 808 | This variable has no effect if @code{window-combination-limit} is | 808 | The value of this variable is ignored when |
| 809 | non-@code{nil} (see below). | 809 | @code{window-combination-limit} is non-@code{nil} (see below). |
| 810 | @end defopt | 810 | @end defopt |
| 811 | 811 | ||
| 812 | To illustrate the effect of @code{window-combination-resize}, | 812 | To illustrate the effect of @code{window-combination-resize}, |
| @@ -857,9 +857,9 @@ If @code{window-combination-resize} is @code{nil}, splitting window | |||
| 857 | @end smallexample | 857 | @end smallexample |
| 858 | 858 | ||
| 859 | @noindent | 859 | @noindent |
| 860 | If @code{window-combination-resize} is non-@code{nil}, splitting | 860 | If @code{window-combination-resize} is @code{t}, splitting @code{W3} |
| 861 | @code{W3} instead leaves all three live windows with approximately the | 861 | instead leaves all three live windows with approximately the same |
| 862 | same height: | 862 | height: |
| 863 | 863 | ||
| 864 | @smallexample | 864 | @smallexample |
| 865 | @group | 865 | @group |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 80eb82a521d..31533082b77 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-12-13 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * window.el (delete-other-windows): Use correct frame in call to | ||
| 4 | window-with-parameter. | ||
| 5 | |||
| 1 | 2011-12-12 Daniel Pfeiffer <occitan@t-online.de> | 6 | 2011-12-12 Daniel Pfeiffer <occitan@t-online.de> |
| 2 | 7 | ||
| 3 | * progmodes/make-mode.el: Bring it up to date with makepp V2.0. | 8 | * progmodes/make-mode.el: Bring it up to date with makepp V2.0. |
diff --git a/lisp/window.el b/lisp/window.el index 4838dfa7969..dcf7394b204 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -2455,7 +2455,7 @@ window signal an error." | |||
| 2455 | (throw 'done (delete-other-windows atom-root))) | 2455 | (throw 'done (delete-other-windows atom-root))) |
| 2456 | ((eq window-side 'none) | 2456 | ((eq window-side 'none) |
| 2457 | ;; Set side-main to the major non-side window. | 2457 | ;; Set side-main to the major non-side window. |
| 2458 | (setq side-main (window-with-parameter 'window-side 'none nil t))) | 2458 | (setq side-main (window-with-parameter 'window-side 'none frame t))) |
| 2459 | ((memq window-side window-sides) | 2459 | ((memq window-side window-sides) |
| 2460 | (error "Cannot make side window the only window"))) | 2460 | (error "Cannot make side window the only window"))) |
| 2461 | ;; If WINDOW is the main non-side window, do nothing. | 2461 | ;; If WINDOW is the main non-side window, do nothing. |
diff --git a/src/ChangeLog b/src/ChangeLog index 221ba913a80..5cdbd528a2e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-12-13 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * window.c (Vwindow_combination_resize) | ||
| 4 | (Vwindow_combination_limit): Use t instead of non-nil in | ||
| 5 | doc-strings. | ||
| 6 | |||
| 1 | 2011-12-11 Kenichi Handa <handa@m17n.org> | 7 | 2011-12-11 Kenichi Handa <handa@m17n.org> |
| 2 | 8 | ||
| 3 | * coding.c (Funencodable_char_position): Pay attention to the | 9 | * coding.c (Funencodable_char_position): Pay attention to the |
diff --git a/src/window.c b/src/window.c index b908749ea4a..f007aaf52cd 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -6506,22 +6506,24 @@ frame to be redrawn only if it is a tty frame. */); | |||
| 6506 | Vrecenter_redisplay = Qtty; | 6506 | Vrecenter_redisplay = Qtty; |
| 6507 | 6507 | ||
| 6508 | DEFVAR_LISP ("window-combination-resize", Vwindow_combination_resize, | 6508 | DEFVAR_LISP ("window-combination-resize", Vwindow_combination_resize, |
| 6509 | doc: /* Non-nil means resize window combinations proportionally. | 6509 | doc: /* If t, resize window combinations proportionally. |
| 6510 | If this variable is nil, splitting a window gets the entire screen space | 6510 | If this variable is nil, splitting a window gets the entire screen space |
| 6511 | for displaying the new window from the window to split. Deleting and | 6511 | for displaying the new window from the window to split. Deleting and |
| 6512 | resizing a window preferably resizes one adjacent window only. | 6512 | resizing a window preferably resizes one adjacent window only. |
| 6513 | 6513 | ||
| 6514 | If this variable is non-nil, splitting a window tries to get the space | 6514 | If this variable is t, splitting a window tries to get the space |
| 6515 | proportionally from all windows in the same combination. This also | 6515 | proportionally from all windows in the same combination. This also |
| 6516 | allows to split a window that is otherwise too small or of fixed size. | 6516 | allows to split a window that is otherwise too small or of fixed size. |
| 6517 | Resizing and deleting a window proportionally resize all windows in the | 6517 | Resizing and deleting a window proportionally resize all windows in the |
| 6518 | same combination. | 6518 | same combination. |
| 6519 | 6519 | ||
| 6520 | Other values are reserved for future use. | ||
| 6521 | |||
| 6520 | This variable takes no effect if `window-combination-limit' is non-nil. */); | 6522 | This variable takes no effect if `window-combination-limit' is non-nil. */); |
| 6521 | Vwindow_combination_resize = Qnil; | 6523 | Vwindow_combination_resize = Qnil; |
| 6522 | 6524 | ||
| 6523 | DEFVAR_LISP ("window-combination-limit", Vwindow_combination_limit, | 6525 | DEFVAR_LISP ("window-combination-limit", Vwindow_combination_limit, |
| 6524 | doc: /* Non-nil means splitting a window makes a new parent window. | 6526 | doc: /* If t, splitting a window makes a new parent window. |
| 6525 | If this variable is nil, splitting a window will create a new parent | 6527 | If this variable is nil, splitting a window will create a new parent |
| 6526 | window only if the window has no parent window or the window shall | 6528 | window only if the window has no parent window or the window shall |
| 6527 | become a combination orthogonal to the one it is part of. | 6529 | become a combination orthogonal to the one it is part of. |