diff options
| author | Michael Shields | 2011-03-05 18:14:43 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-03-05 18:14:43 -0800 |
| commit | aa248733c52e96be02c8ffac27f049f45eff8269 (patch) | |
| tree | de3420b48c62c95c04b3208dfe68676c81f48777 | |
| parent | da0275f8e3bfcaa3e76bd681b3f7f67fd6f9c437 (diff) | |
| download | emacs-aa248733c52e96be02c8ffac27f049f45eff8269.tar.gz emacs-aa248733c52e96be02c8ffac27f049f45eff8269.zip | |
Doc fixes for bug#5567 (tiny change)
* lisp/window.el (one-window-p, walk-windows, display-buffer): Doc fixes.
* src/window.c (Fnext_window): Doc (and comment) fixes.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/window.el | 23 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/window.c | 20 |
4 files changed, 30 insertions, 22 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e46ce544b3a..1168b493314 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-03-06 Michael Shields <shields@msrl.com> (tiny change) | ||
| 2 | |||
| 3 | * window.el (one-window-p, walk-windows, display-buffer): | ||
| 4 | Doc fixes. (Bug#5567) | ||
| 5 | |||
| 1 | 2011-03-06 Jay Belanger <jay.p.belanger@gmail.com> | 6 | 2011-03-06 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 7 | ||
| 3 | * cus-edit.el (custom-prompt-variable): Use the `custom-get' property | 8 | * cus-edit.el (custom-prompt-variable): Use the `custom-get' property |
diff --git a/lisp/window.el b/lisp/window.el index af5d9a5b16b..c3f8de6f9dd 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -106,11 +106,12 @@ even if it is active. Otherwise, the minibuffer is counted | |||
| 106 | when it is active. | 106 | when it is active. |
| 107 | 107 | ||
| 108 | The optional arg ALL-FRAMES t means count windows on all frames. | 108 | The optional arg ALL-FRAMES t means count windows on all frames. |
| 109 | If it is `visible', count windows on all visible frames. | 109 | If it is `visible', count windows on all visible frames on the |
| 110 | ALL-FRAMES nil or omitted means count only the selected frame, | 110 | current terminal. ALL-FRAMES nil or omitted means count only the |
| 111 | plus the minibuffer it uses (which may be on another frame). | 111 | selected frame, plus the minibuffer it uses (which may be on |
| 112 | ALL-FRAMES 0 means count all windows in all visible or iconified frames. | 112 | another frame). ALL-FRAMES 0 means count all windows in all |
| 113 | If ALL-FRAMES is anything else, count only the selected frame." | 113 | visible or iconified frames on the current terminal. If |
| 114 | ALL-FRAMES is anything else, count only the selected frame." | ||
| 114 | (let ((base-window (selected-window))) | 115 | (let ((base-window (selected-window))) |
| 115 | (if (and nomini (eq base-window (minibuffer-window))) | 116 | (if (and nomini (eq base-window (minibuffer-window))) |
| 116 | (setq base-window (next-window base-window))) | 117 | (setq base-window (next-window base-window))) |
| @@ -169,9 +170,9 @@ ALL-FRAMES nil or omitted means cycle through all windows on the | |||
| 169 | ALL-FRAMES t means cycle through all windows on all existing | 170 | ALL-FRAMES t means cycle through all windows on all existing |
| 170 | frames. | 171 | frames. |
| 171 | ALL-FRAMES `visible' means cycle through all windows on all | 172 | ALL-FRAMES `visible' means cycle through all windows on all |
| 172 | visible frames. | 173 | visible frames on the current terminal. |
| 173 | ALL-FRAMES 0 means cycle through all windows on all visible and | 174 | ALL-FRAMES 0 means cycle through all windows on all visible and |
| 174 | iconified frames. | 175 | iconified frames on the current terminal. |
| 175 | ALL-FRAMES a frame means cycle through all windows on that frame | 176 | ALL-FRAMES a frame means cycle through all windows on that frame |
| 176 | only. | 177 | only. |
| 177 | Anything else means cycle through all windows on the selected | 178 | Anything else means cycle through all windows on the selected |
| @@ -1067,9 +1068,11 @@ when the specified buffer is already displayed. If the buffer is | |||
| 1067 | already displayed in some window on one of these frames simply | 1068 | already displayed in some window on one of these frames simply |
| 1068 | return that window. Possible values of FRAME are: | 1069 | return that window. Possible values of FRAME are: |
| 1069 | 1070 | ||
| 1070 | `visible' - consider windows on all visible frames. | 1071 | `visible' - consider windows on all visible frames on the current |
| 1072 | terminal. | ||
| 1071 | 1073 | ||
| 1072 | 0 - consider windows on all visible or iconified frames. | 1074 | 0 - consider windows on all visible or iconified frames on the |
| 1075 | current terminal. | ||
| 1073 | 1076 | ||
| 1074 | t - consider windows on all frames. | 1077 | t - consider windows on all frames. |
| 1075 | 1078 | ||
| @@ -1079,7 +1082,7 @@ nil - consider windows on the selected frame \(actually the | |||
| 1079 | last non-minibuffer frame\) only. If, however, either | 1082 | last non-minibuffer frame\) only. If, however, either |
| 1080 | `display-buffer-reuse-frames' or `pop-up-frames' is non-nil | 1083 | `display-buffer-reuse-frames' or `pop-up-frames' is non-nil |
| 1081 | \(non-nil and not graphic-only on a text-only terminal), | 1084 | \(non-nil and not graphic-only on a text-only terminal), |
| 1082 | consider all visible or iconified frames." | 1085 | consider all visible or iconified frames on the current terminal." |
| 1083 | (interactive "BDisplay buffer:\nP") | 1086 | (interactive "BDisplay buffer:\nP") |
| 1084 | (let* ((can-use-selected-window | 1087 | (let* ((can-use-selected-window |
| 1085 | ;; The selected window is usable unless either NOT-THIS-WINDOW | 1088 | ;; The selected window is usable unless either NOT-THIS-WINDOW |
diff --git a/src/ChangeLog b/src/ChangeLog index 57a2b618d63..2baef5e811c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-03-06 Michael Shields <shields@msrl.com> (tiny change) | ||
| 2 | |||
| 3 | * window.c (Fnext_window): Doc fix. (Bug#5567) | ||
| 4 | |||
| 1 | 2011-03-05 Chong Yidong <cyd@stupidchicken.com> | 5 | 2011-03-05 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 6 | ||
| 3 | * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit. | 7 | * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit. |
diff --git a/src/window.c b/src/window.c index 7965269f0e7..7c55be972b2 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1769,8 +1769,10 @@ window_list (void) | |||
| 1769 | 1769 | ||
| 1770 | ALL_FRAMES t means search all frames, | 1770 | ALL_FRAMES t means search all frames, |
| 1771 | nil means search just current frame, | 1771 | nil means search just current frame, |
| 1772 | `visible' means search just visible frames, | 1772 | `visible' means search just visible frames on the |
| 1773 | 0 means search visible and iconified frames, | 1773 | current terminal, |
| 1774 | 0 means search visible and iconified frames on the | ||
| 1775 | current terminal, | ||
| 1774 | a window means search the frame that window belongs to, | 1776 | a window means search the frame that window belongs to, |
| 1775 | a frame means consider windows on that frame, only. */ | 1777 | a frame means consider windows on that frame, only. */ |
| 1776 | 1778 | ||
| @@ -1836,8 +1838,8 @@ candidate_window_p (Lisp_Object window, Lisp_Object owindow, Lisp_Object minibuf | |||
| 1836 | 1838 | ||
| 1837 | 1839 | ||
| 1838 | /* Decode arguments as allowed by Fnext_window, Fprevious_window, and | 1840 | /* Decode arguments as allowed by Fnext_window, Fprevious_window, and |
| 1839 | Fwindow_list. See there for the meaning of WINDOW, MINIBUF, and | 1841 | Fwindow_list. See candidate_window_p for the meaning of WINDOW, |
| 1840 | ALL_FRAMES. */ | 1842 | MINIBUF, and ALL_FRAMES. */ |
| 1841 | 1843 | ||
| 1842 | static void | 1844 | static void |
| 1843 | decode_next_window_args (Lisp_Object *window, Lisp_Object *minibuf, Lisp_Object *all_frames) | 1845 | decode_next_window_args (Lisp_Object *window, Lisp_Object *minibuf, Lisp_Object *all_frames) |
| @@ -1871,12 +1873,6 @@ decode_next_window_args (Lisp_Object *window, Lisp_Object *minibuf, Lisp_Object | |||
| 1871 | ; | 1873 | ; |
| 1872 | else if (!EQ (*all_frames, Qt)) | 1874 | else if (!EQ (*all_frames, Qt)) |
| 1873 | *all_frames = Qnil; | 1875 | *all_frames = Qnil; |
| 1874 | |||
| 1875 | /* Now *ALL_FRAMES is t meaning search all frames, nil meaning | ||
| 1876 | search just current frame, `visible' meaning search just visible | ||
| 1877 | frames, 0 meaning search visible and iconified frames, or a | ||
| 1878 | window, meaning search the frame that window belongs to, or a | ||
| 1879 | frame, meaning consider windows on that frame, only. */ | ||
| 1880 | } | 1876 | } |
| 1881 | 1877 | ||
| 1882 | 1878 | ||
| @@ -1974,9 +1970,9 @@ ALL-FRAMES nil or omitted means consider all windows on WINDOW's | |||
| 1974 | windows on all frames that share that minibuffer too. | 1970 | windows on all frames that share that minibuffer too. |
| 1975 | ALL-FRAMES t means consider all windows on all existing frames. | 1971 | ALL-FRAMES t means consider all windows on all existing frames. |
| 1976 | ALL-FRAMES `visible' means consider all windows on all visible | 1972 | ALL-FRAMES `visible' means consider all windows on all visible |
| 1977 | frames. | 1973 | frames on the current terminal. |
| 1978 | ALL-FRAMES 0 means consider all windows on all visible and | 1974 | ALL-FRAMES 0 means consider all windows on all visible and |
| 1979 | iconified frames. | 1975 | iconified frames on the current terminal. |
| 1980 | ALL-FRAMES a frame means consider all windows on that frame only. | 1976 | ALL-FRAMES a frame means consider all windows on that frame only. |
| 1981 | Anything else means consider all windows on WINDOW's frame and no | 1977 | Anything else means consider all windows on WINDOW's frame and no |
| 1982 | others. | 1978 | others. |