aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Rudalics2008-10-22 15:35:00 +0000
committerMartin Rudalics2008-10-22 15:35:00 +0000
commit12bb31115ee71c222f78d116adbb5ab37a4eadb2 (patch)
treee021fb81980805c300873062118136afb8fbaf50 /src
parentd6c952f8a5b644bbbb5262ee37b77760702dbad8 (diff)
downloademacs-12bb31115ee71c222f78d116adbb5ab37a4eadb2.tar.gz
emacs-12bb31115ee71c222f78d116adbb5ab37a4eadb2.zip
(Fwindow_dedicated_p, Fset_window_dedicated_p): Reword doc-string.
(Fset_window_parameter): Use NILP. (Fscroll_up, Fscroll_down, Fminibuffer_selected_window) (Frecenter): Use "selected" instead of "current" window in doc-strings.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/window.c33
2 files changed, 28 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 15a53c094d8..472108f1a8c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12008-10-22 Martin Rudalics <rudalics@gmx.at>
2
3 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4 Reword doc-string.
5 (Fset_window_parameter): Use NILP.
6 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
7 (Frecenter): Use "selected" instead of "current" window in
8 doc-strings.
9
12008-10-22 Juanma Barranquero <lekktu@gmail.com> 102008-10-22 Juanma Barranquero <lekktu@gmail.com>
2 11
3 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition. 12 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
diff --git a/src/window.c b/src/window.c
index 58b8dd3b843..36b88cb8678 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1263,13 +1263,17 @@ overriding motion of point in order to display at this exact start. */)
1263DEFUN ("window-dedicated-p", Fwindow_dedicated_p, Swindow_dedicated_p, 1263DEFUN ("window-dedicated-p", Fwindow_dedicated_p, Swindow_dedicated_p,
1264 0, 1, 0, 1264 0, 1, 0,
1265 doc: /* Return non-nil when WINDOW is dedicated to its buffer. 1265 doc: /* Return non-nil when WINDOW is dedicated to its buffer.
1266WINDOW defaults to the selected window. 1266More precisely, return the value assigned by the last call of
1267set-window-dedicated-`p' for WINDOW or nil if that function was never
1268called with WINDOW as its argument. WINDOW defaults to the selected
1269window.
1267 1270
1268When a window is dedicated to its buffer, `display-buffer' and 1271When a window is dedicated to its buffer, `display-buffer' and
1269`set-window-buffer' will refrain from displaying another buffer in it. 1272`set-window-buffer' will refrain from displaying another buffer in it.
1270`get-lru-window' and `get-largest-window' treat dedicated windows 1273`get-lru-window' and `get-largest-window' treat dedicated windows
1271specially. `delete-windows-on', `replace-buffer-in-windows' and 1274specially. `delete-windows-on', `replace-buffer-in-windows',
1272`kill-buffer' can delete a dedicated window and the containing frame. */) 1275`quit-window' and `kill-buffer' can delete a dedicated window and the
1276containing frame. */)
1273 (window) 1277 (window)
1274 Lisp_Object window; 1278 Lisp_Object window;
1275{ 1279{
@@ -1280,14 +1284,15 @@ DEFUN ("set-window-dedicated-p", Fset_window_dedicated_p,
1280 Sset_window_dedicated_p, 2, 2, 0, 1284 Sset_window_dedicated_p, 2, 2, 0,
1281 doc: /* Mark WINDOW as dedicated according to FLAG. 1285 doc: /* Mark WINDOW as dedicated according to FLAG.
1282WINDOW defaults to the selected window. FLAG non-nil means mark WINDOW 1286WINDOW defaults to the selected window. FLAG non-nil means mark WINDOW
1283as dedicated to its buffer. FLAG nil means mark WINDOW as nondedicated. 1287as dedicated to its buffer. FLAG nil means mark WINDOW as non-dedicated.
1284Return FLAG. 1288Return FLAG.
1285 1289
1286When a window is dedicated to its buffer, `display-buffer' and 1290When a window is dedicated to its buffer, `display-buffer' and
1287`set-window-buffer' will refrain from displaying another buffer in it. 1291`set-window-buffer' will refrain from displaying another buffer in it.
1288`get-lru-window' and `get-largest-window' treat dedicated windows 1292`get-lru-window' and `get-largest-window' treat dedicated windows
1289specially. `delete-windows-on', `replace-buffer-in-windows' and 1293specially. `delete-windows-on', `replace-buffer-in-windows',
1290`kill-buffer' can delete a dedicated window and the containing frame. */) 1294`quit-window' and `kill-buffer' can delete a dedicated window and the
1295containing frame. */)
1291 (window, flag) 1296 (window, flag)
1292 Lisp_Object window, flag; 1297 Lisp_Object window, flag;
1293{ 1298{
@@ -1333,7 +1338,7 @@ WINDOW defaults to the selected window. Return VALUE. */)
1333 Lisp_Object old_alist_elt; 1338 Lisp_Object old_alist_elt;
1334 1339
1335 old_alist_elt = Fassq (parameter, w->window_parameters); 1340 old_alist_elt = Fassq (parameter, w->window_parameters);
1336 if (EQ (old_alist_elt, Qnil)) 1341 if (NILP (old_alist_elt))
1337 w->window_parameters = Fcons (Fcons (parameter, value), w->window_parameters); 1342 w->window_parameters = Fcons (Fcons (parameter, value), w->window_parameters);
1338 else 1343 else
1339 Fsetcdr (old_alist_elt, value); 1344 Fsetcdr (old_alist_elt, value);
@@ -2716,7 +2721,7 @@ window_min_size_2 (w, width_p, safe_p)
2716 if (width_p) 2721 if (width_p)
2717 { 2722 {
2718 int safe_size = (MIN_SAFE_WINDOW_WIDTH 2723 int safe_size = (MIN_SAFE_WINDOW_WIDTH
2719 + WINDOW_FRINGE_COLS (w) 2724 + WINDOW_FRINGE_COLS (w)
2720 + WINDOW_SCROLL_BAR_COLS (w)); 2725 + WINDOW_SCROLL_BAR_COLS (w));
2721 2726
2722 return safe_p ? safe_size : max (window_min_width, safe_size); 2727 return safe_p ? safe_size : max (window_min_width, safe_size);
@@ -5286,7 +5291,7 @@ scroll_command (n, direction)
5286} 5291}
5287 5292
5288DEFUN ("scroll-up", Fscroll_up, Sscroll_up, 0, 1, "^P", 5293DEFUN ("scroll-up", Fscroll_up, Sscroll_up, 0, 1, "^P",
5289 doc: /* Scroll text of current window upward ARG lines. 5294 doc: /* Scroll text of selected window upward ARG lines.
5290If ARG is omitted or nil, scroll upward by a near full screen. 5295If ARG is omitted or nil, scroll upward by a near full screen.
5291A near full screen is `next-screen-context-lines' less than a full screen. 5296A near full screen is `next-screen-context-lines' less than a full screen.
5292Negative ARG means scroll downward. 5297Negative ARG means scroll downward.
@@ -5300,7 +5305,7 @@ When calling from a program, supply as argument a number, nil, or `-'. */)
5300} 5305}
5301 5306
5302DEFUN ("scroll-down", Fscroll_down, Sscroll_down, 0, 1, "^P", 5307DEFUN ("scroll-down", Fscroll_down, Sscroll_down, 0, 1, "^P",
5303 doc: /* Scroll text of current window down ARG lines. 5308 doc: /* Scroll text of selected window down ARG lines.
5304If ARG is omitted or nil, scroll down by a near full screen. 5309If ARG is omitted or nil, scroll down by a near full screen.
5305A near full screen is `next-screen-context-lines' less than a full screen. 5310A near full screen is `next-screen-context-lines' less than a full screen.
5306Negative ARG means scroll upward. 5311Negative ARG means scroll upward.
@@ -5467,7 +5472,7 @@ by this function. This happens in an interactive call. */)
5467 5472
5468DEFUN ("minibuffer-selected-window", Fminibuffer_selected_window, Sminibuffer_selected_window, 0, 0, 0, 5473DEFUN ("minibuffer-selected-window", Fminibuffer_selected_window, Sminibuffer_selected_window, 0, 0, 0,
5469 doc: /* Return the window which was selected when entering the minibuffer. 5474 doc: /* Return the window which was selected when entering the minibuffer.
5470Returns nil, if current window is not a minibuffer window. */) 5475Returns nil, if selected window is not a minibuffer window. */)
5471 () 5476 ()
5472{ 5477{
5473 if (minibuf_level > 0 5478 if (minibuf_level > 0
@@ -5537,13 +5542,13 @@ displayed_window_lines (w)
5537 5542
5538 5543
5539DEFUN ("recenter", Frecenter, Srecenter, 0, 1, "P", 5544DEFUN ("recenter", Frecenter, Srecenter, 0, 1, "P",
5540 doc: /* Center point in window and redisplay frame. 5545 doc: /* Center point in selected window and redisplay frame.
5541With prefix argument ARG, recenter putting point on screen line ARG 5546With prefix argument ARG, recenter putting point on screen line ARG
5542relative to the current window. If ARG is negative, it counts up from the 5547relative to the selected window. If ARG is negative, it counts up from the
5543bottom of the window. (ARG should be less than the height of the window.) 5548bottom of the window. (ARG should be less than the height of the window.)
5544 5549
5545If ARG is omitted or nil, erase the entire frame and then redraw with point 5550If ARG is omitted or nil, erase the entire frame and then redraw with point
5546in the center of the current window. If `auto-resize-tool-bars' is set to 5551in the center of the selected window. If `auto-resize-tool-bars' is set to
5547`grow-only', this resets the tool-bar's height to the minimum height needed. 5552`grow-only', this resets the tool-bar's height to the minimum height needed.
5548 5553
5549Just C-u as prefix means put point in the center of the window 5554Just C-u as prefix means put point in the center of the window