aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Shields2011-03-05 18:14:43 -0800
committerGlenn Morris2011-03-05 18:14:43 -0800
commitaa248733c52e96be02c8ffac27f049f45eff8269 (patch)
treede3420b48c62c95c04b3208dfe68676c81f48777
parentda0275f8e3bfcaa3e76bd681b3f7f67fd6f9c437 (diff)
downloademacs-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/ChangeLog5
-rw-r--r--lisp/window.el23
-rw-r--r--src/ChangeLog4
-rw-r--r--src/window.c20
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 @@
12011-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
12011-03-06 Jay Belanger <jay.p.belanger@gmail.com> 62011-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
106when it is active. 106when it is active.
107 107
108The optional arg ALL-FRAMES t means count windows on all frames. 108The optional arg ALL-FRAMES t means count windows on all frames.
109If it is `visible', count windows on all visible frames. 109If it is `visible', count windows on all visible frames on the
110ALL-FRAMES nil or omitted means count only the selected frame, 110current terminal. ALL-FRAMES nil or omitted means count only the
111plus the minibuffer it uses (which may be on another frame). 111selected frame, plus the minibuffer it uses (which may be on
112ALL-FRAMES 0 means count all windows in all visible or iconified frames. 112another frame). ALL-FRAMES 0 means count all windows in all
113If ALL-FRAMES is anything else, count only the selected frame." 113visible or iconified frames on the current terminal. If
114ALL-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
169ALL-FRAMES t means cycle through all windows on all existing 170ALL-FRAMES t means cycle through all windows on all existing
170 frames. 171 frames.
171ALL-FRAMES `visible' means cycle through all windows on all 172ALL-FRAMES `visible' means cycle through all windows on all
172 visible frames. 173 visible frames on the current terminal.
173ALL-FRAMES 0 means cycle through all windows on all visible and 174ALL-FRAMES 0 means cycle through all windows on all visible and
174 iconified frames. 175 iconified frames on the current terminal.
175ALL-FRAMES a frame means cycle through all windows on that frame 176ALL-FRAMES a frame means cycle through all windows on that frame
176 only. 177 only.
177Anything else means cycle through all windows on the selected 178Anything else means cycle through all windows on the selected
@@ -1067,9 +1068,11 @@ when the specified buffer is already displayed. If the buffer is
1067already displayed in some window on one of these frames simply 1068already displayed in some window on one of these frames simply
1068return that window. Possible values of FRAME are: 1069return 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
1072terminal.
1071 1073
10720 - consider windows on all visible or iconified frames. 10740 - consider windows on all visible or iconified frames on the
1075current terminal.
1073 1076
1074t - consider windows on all frames. 1077t - consider windows on all frames.
1075 1078
@@ -1079,7 +1082,7 @@ nil - consider windows on the selected frame \(actually the
1079last non-minibuffer frame\) only. If, however, either 1082last 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),
1082consider all visible or iconified frames." 1085consider 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 @@
12011-03-06 Michael Shields <shields@msrl.com> (tiny change)
2
3 * window.c (Fnext_window): Doc fix. (Bug#5567)
4
12011-03-05 Chong Yidong <cyd@stupidchicken.com> 52011-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
1842static void 1844static void
1843decode_next_window_args (Lisp_Object *window, Lisp_Object *minibuf, Lisp_Object *all_frames) 1845decode_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.
1975ALL-FRAMES t means consider all windows on all existing frames. 1971ALL-FRAMES t means consider all windows on all existing frames.
1976ALL-FRAMES `visible' means consider all windows on all visible 1972ALL-FRAMES `visible' means consider all windows on all visible
1977 frames. 1973 frames on the current terminal.
1978ALL-FRAMES 0 means consider all windows on all visible and 1974ALL-FRAMES 0 means consider all windows on all visible and
1979 iconified frames. 1975 iconified frames on the current terminal.
1980ALL-FRAMES a frame means consider all windows on that frame only. 1976ALL-FRAMES a frame means consider all windows on that frame only.
1981Anything else means consider all windows on WINDOW's frame and no 1977Anything else means consider all windows on WINDOW's frame and no
1982 others. 1978 others.