diff options
| author | Martin Rudalics | 2011-06-27 16:05:55 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2011-06-27 16:05:55 +0200 |
| commit | d68443dceefda48200bfd710d136d8ce61214ffe (patch) | |
| tree | 377d67e04c171f2d3965b72cb84aafbc1c6da46b /src | |
| parent | 4a834b86cef90b026516deb83a1febe5773af1f4 (diff) | |
| download | emacs-d68443dceefda48200bfd710d136d8ce61214ffe.tar.gz emacs-d68443dceefda48200bfd710d136d8ce61214ffe.zip | |
Use better names for window-next/-prev and window-vchild/-hchild.
* window.c (Fwindow_vchild): Rename to Fwindow_top_child.
(Fwindow_hchild): Rename to Fwindow_left_child.
(Fwindow_next): Rename to Fwindow_next_sibling.
(Fwindow_prev): Rename to Fwindow_prev_sibling.
* window.el (window-right, window-left, window-child)
(window-child-count, window-last-child)
(window-iso-combination-p, walk-window-tree-1)
(window-atom-check-1, window-tree-1, delete-window)
(window-state-get-1, display-buffer-even-window-sizes): Adapt to
new naming conventions - window-vchild, window-hchild,
window-next and window-prev are now called window-top-child,
window-left-child, window-next-sibling and window-prev-sibling
respectively.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/window.c | 32 |
2 files changed, 21 insertions, 16 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 56ffc1036d5..4d8bb0a5638 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -5,6 +5,11 @@ | |||
| 5 | matches the window's clone number process the overlay even if | 5 | matches the window's clone number process the overlay even if |
| 6 | the overlay's window property doesn't match the current window. | 6 | the overlay's window property doesn't match the current window. |
| 7 | 7 | ||
| 8 | * window.c (Fwindow_vchild): Rename to Fwindow_top_child. | ||
| 9 | (Fwindow_hchild): Rename to Fwindow_left_child. | ||
| 10 | (Fwindow_next): Rename to Fwindow_next_sibling. | ||
| 11 | (Fwindow_prev): Rename to Fwindow_prev_sibling. | ||
| 12 | |||
| 8 | 2011-06-26 Jan Djärv <jan.h.d@swipnet.se> | 13 | 2011-06-26 Jan Djärv <jan.h.d@swipnet.se> |
| 9 | 14 | ||
| 10 | * emacsgtkfixed.h: State that this is only used with Gtk+3. | 15 | * emacsgtkfixed.h: State that this is only used with Gtk+3. |
diff --git a/src/window.c b/src/window.c index 50d4a92a4c5..19b3edf4c77 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -434,37 +434,37 @@ Return nil if WINDOW has no parent. */) | |||
| 434 | return decode_any_window (window)->parent; | 434 | return decode_any_window (window)->parent; |
| 435 | } | 435 | } |
| 436 | 436 | ||
| 437 | DEFUN ("window-vchild", Fwindow_vchild, Swindow_vchild, 0, 1, 0, | 437 | DEFUN ("window-top-child", Fwindow_top_child, Swindow_top_child, 0, 1, 0, |
| 438 | doc: /* Return WINDOW's first vertical child window. | 438 | doc: /* Return WINDOW's topmost child window. |
| 439 | WINDOW can be any window and defaults to the selected one. | 439 | WINDOW can be any window and defaults to the selected one. |
| 440 | Return nil if WINDOW has no vertical child. */) | 440 | Return nil if WINDOW is not a vertical combination. */) |
| 441 | (Lisp_Object window) | 441 | (Lisp_Object window) |
| 442 | { | 442 | { |
| 443 | return decode_any_window (window)->vchild; | 443 | return decode_any_window (window)->vchild; |
| 444 | } | 444 | } |
| 445 | 445 | ||
| 446 | DEFUN ("window-hchild", Fwindow_hchild, Swindow_hchild, 0, 1, 0, | 446 | DEFUN ("window-left-child", Fwindow_left_child, Swindow_left_child, 0, 1, 0, |
| 447 | doc: /* Return WINDOW's first horizontal child window. | 447 | doc: /* Return WINDOW's leftmost child window. |
| 448 | WINDOW can be any window and defaults to the selected one. | 448 | WINDOW can be any window and defaults to the selected one. |
| 449 | Return nil if WINDOW has no horizontal child. */) | 449 | Return nil if WINDOW is not a horizontal combination. */) |
| 450 | (Lisp_Object window) | 450 | (Lisp_Object window) |
| 451 | { | 451 | { |
| 452 | return decode_any_window (window)->hchild; | 452 | return decode_any_window (window)->hchild; |
| 453 | } | 453 | } |
| 454 | 454 | ||
| 455 | DEFUN ("window-next", Fwindow_next, Swindow_next, 0, 1, 0, | 455 | DEFUN ("window-next-sibling", Fwindow_next_sibling, Swindow_next_sibling, 0, 1, 0, |
| 456 | doc: /* Return WINDOW's right sibling window. | 456 | doc: /* Return WINDOW's next sibling window. |
| 457 | WINDOW can be any window and defaults to the selected one. | 457 | WINDOW can be any window and defaults to the selected one. |
| 458 | Return nil if WINDOW has no right sibling. */) | 458 | Return nil if WINDOW has no next sibling. */) |
| 459 | (Lisp_Object window) | 459 | (Lisp_Object window) |
| 460 | { | 460 | { |
| 461 | return decode_any_window (window)->next; | 461 | return decode_any_window (window)->next; |
| 462 | } | 462 | } |
| 463 | 463 | ||
| 464 | DEFUN ("window-prev", Fwindow_prev, Swindow_prev, 0, 1, 0, | 464 | DEFUN ("window-prev-sibling", Fwindow_prev_sibling, Swindow_prev_sibling, 0, 1, 0, |
| 465 | doc: /* Return WINDOW's left sibling window. | 465 | doc: /* Return WINDOW's previous sibling window. |
| 466 | WINDOW can be any window and defaults to the selected one. | 466 | WINDOW can be any window and defaults to the selected one. |
| 467 | Return nil if WINDOW has no left sibling. */) | 467 | Return nil if WINDOW has no previous sibling. */) |
| 468 | (Lisp_Object window) | 468 | (Lisp_Object window) |
| 469 | { | 469 | { |
| 470 | return decode_any_window (window)->prev; | 470 | return decode_any_window (window)->prev; |
| @@ -6598,10 +6598,10 @@ function `window-nest' and altered by the function `set-window-nest'. */); | |||
| 6598 | defsubr (&Swindow_clone_number); | 6598 | defsubr (&Swindow_clone_number); |
| 6599 | defsubr (&Swindow_buffer); | 6599 | defsubr (&Swindow_buffer); |
| 6600 | defsubr (&Swindow_parent); | 6600 | defsubr (&Swindow_parent); |
| 6601 | defsubr (&Swindow_vchild); | 6601 | defsubr (&Swindow_top_child); |
| 6602 | defsubr (&Swindow_hchild); | 6602 | defsubr (&Swindow_left_child); |
| 6603 | defsubr (&Swindow_next); | 6603 | defsubr (&Swindow_next_sibling); |
| 6604 | defsubr (&Swindow_prev); | 6604 | defsubr (&Swindow_prev_sibling); |
| 6605 | defsubr (&Swindow_splits); | 6605 | defsubr (&Swindow_splits); |
| 6606 | defsubr (&Sset_window_splits); | 6606 | defsubr (&Sset_window_splits); |
| 6607 | defsubr (&Swindow_nest); | 6607 | defsubr (&Swindow_nest); |