aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorMartin Rudalics2008-10-27 10:13:49 +0000
committerMartin Rudalics2008-10-27 10:13:49 +0000
commit7bfac54794cbd665375aada341e80871d5f930b7 (patch)
tree3505508503f611b2b008d1e95369c004812b9e70 /src/window.c
parent13ad74578883f15b5712890c627710583ed7b2c7 (diff)
downloademacs-7bfac54794cbd665375aada341e80871d5f930b7.tar.gz
emacs-7bfac54794cbd665375aada341e80871d5f930b7.zip
(Fwindow_dedicated_p, Fset_window_dedicated_p)
(Fset_window_buffer): Explain in doc-string that a window can be "strongly" dedicated to its buffer.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c47
1 files changed, 29 insertions, 18 deletions
diff --git a/src/window.c b/src/window.c
index 737eeed3f35..bd9e84b826a 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1264,16 +1264,20 @@ DEFUN ("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.
1266More precisely, return the value assigned by the last call of 1266More precisely, return the value assigned by the last call of
1267set-window-dedicated-`p' for WINDOW or nil if that function was never 1267`set-window-dedicated-p' for WINDOW. Return nil if that function was
1268called with WINDOW as its argument. WINDOW defaults to the selected 1268never called with WINDOW as its argument, or the value set by that
1269window. 1269function was internally reset since its last call. WINDOW defaults to
1270 1270the selected window.
1271When a window is dedicated to its buffer, `display-buffer' and 1271
1272`set-window-buffer' will refrain from displaying another buffer in it. 1272When a window is dedicated to its buffer, `display-buffer' will refrain
1273`get-lru-window' and `get-largest-window' treat dedicated windows 1273from displaying another buffer in it. `get-lru-window' and
1274specially. `delete-windows-on', `replace-buffer-in-windows', 1274`get-largest-window' treat dedicated windows specially.
1275`quit-window' and `kill-buffer' can delete a dedicated window and the 1275`delete-windows-on', `replace-buffer-in-windows', `quit-window' and
1276containing frame. */) 1276`kill-buffer' can delete a dedicated window and the containing frame.
1277
1278Functions like `set-window-buffer' may change the buffer displayed by a
1279window, unless that window is "strongly" dedicated to its buffer, that
1280is the value returned by `window-dedicated-p' is t. */)
1277 (window) 1281 (window)
1278 Lisp_Object window; 1282 Lisp_Object window;
1279{ 1283{
@@ -1287,12 +1291,18 @@ WINDOW defaults to the selected window. FLAG non-nil means mark WINDOW
1287as dedicated to its buffer. FLAG nil means mark WINDOW as non-dedicated. 1291as dedicated to its buffer. FLAG nil means mark WINDOW as non-dedicated.
1288Return FLAG. 1292Return FLAG.
1289 1293
1290When a window is dedicated to its buffer, `display-buffer' and 1294When a window is dedicated to its buffer, `display-buffer' will refrain
1291`set-window-buffer' will refrain from displaying another buffer in it. 1295from displaying another buffer in it. `get-lru-window' and
1292`get-lru-window' and `get-largest-window' treat dedicated windows 1296`get-largest-window' treat dedicated windows specially.
1293specially. `delete-windows-on', `replace-buffer-in-windows', 1297`delete-windows-on', `replace-buffer-in-windows', `quit-window' and
1294`quit-window' and `kill-buffer' can delete a dedicated window and the 1298`kill-buffer' can delete a dedicated window and the containing
1295containing frame. */) 1299frame.
1300
1301As a special case, if FLAG is t, mark WINDOW as "strongly" dedicated to
1302its buffer. Functions like `set-window-buffer' may change the buffer
1303displayed by a window, unless that window is strongly dedicated to its
1304buffer. If and when `set-window-buffer' displays another buffer in a
1305window, it also makes sure that the window is not marked as dedicated. */)
1296 (window, flag) 1306 (window, flag)
1297 Lisp_Object window, flag; 1307 Lisp_Object window, flag;
1298{ 1308{
@@ -3500,8 +3510,9 @@ non-nil means that WINDOW's current display margins, fringe widths, and
3500scroll bar settings are preserved; the default is to reset these from 3510scroll bar settings are preserved; the default is to reset these from
3501the local settings for BUFFER-OR-NAME or the frame defaults. Return nil. 3511the local settings for BUFFER-OR-NAME or the frame defaults. Return nil.
3502 3512
3503This function throws an error when WINDOW is dedicated to its buffer and 3513This function throws an error when WINDOW is strongly dedicated to its
3504does not already display BUFFER-OR-NAME. 3514buffer (that is `window-dedicated-p' returns t for WINDOW) and does not
3515already display BUFFER-OR-NAME.
3505 3516
3506This function runs the hook `window-scroll-functions'. */) 3517This function runs the hook `window-scroll-functions'. */)
3507 (window, buffer_or_name, keep_margins) 3518 (window, buffer_or_name, keep_margins)