diff options
| author | Martin Rudalics | 2008-10-27 10:13:49 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2008-10-27 10:13:49 +0000 |
| commit | 7bfac54794cbd665375aada341e80871d5f930b7 (patch) | |
| tree | 3505508503f611b2b008d1e95369c004812b9e70 /src/window.c | |
| parent | 13ad74578883f15b5712890c627710583ed7b2c7 (diff) | |
| download | emacs-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.c | 47 |
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. |
| 1266 | More precisely, return the value assigned by the last call of | 1266 | More precisely, return the value assigned by the last call of |
| 1267 | set-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 |
| 1268 | called with WINDOW as its argument. WINDOW defaults to the selected | 1268 | never called with WINDOW as its argument, or the value set by that |
| 1269 | window. | 1269 | function was internally reset since its last call. WINDOW defaults to |
| 1270 | 1270 | the selected window. | |
| 1271 | When a window is dedicated to its buffer, `display-buffer' and | 1271 | |
| 1272 | `set-window-buffer' will refrain from displaying another buffer in it. | 1272 | When a window is dedicated to its buffer, `display-buffer' will refrain |
| 1273 | `get-lru-window' and `get-largest-window' treat dedicated windows | 1273 | from displaying another buffer in it. `get-lru-window' and |
| 1274 | specially. `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 |
| 1276 | containing frame. */) | 1276 | `kill-buffer' can delete a dedicated window and the containing frame. |
| 1277 | |||
| 1278 | Functions like `set-window-buffer' may change the buffer displayed by a | ||
| 1279 | window, unless that window is "strongly" dedicated to its buffer, that | ||
| 1280 | is 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 | |||
| 1287 | as dedicated to its buffer. FLAG nil means mark WINDOW as non-dedicated. | 1291 | as dedicated to its buffer. FLAG nil means mark WINDOW as non-dedicated. |
| 1288 | Return FLAG. | 1292 | Return FLAG. |
| 1289 | 1293 | ||
| 1290 | When a window is dedicated to its buffer, `display-buffer' and | 1294 | When a window is dedicated to its buffer, `display-buffer' will refrain |
| 1291 | `set-window-buffer' will refrain from displaying another buffer in it. | 1295 | from 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. |
| 1293 | specially. `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 |
| 1295 | containing frame. */) | 1299 | frame. |
| 1300 | |||
| 1301 | As a special case, if FLAG is t, mark WINDOW as "strongly" dedicated to | ||
| 1302 | its buffer. Functions like `set-window-buffer' may change the buffer | ||
| 1303 | displayed by a window, unless that window is strongly dedicated to its | ||
| 1304 | buffer. If and when `set-window-buffer' displays another buffer in a | ||
| 1305 | window, 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 | |||
| 3500 | scroll bar settings are preserved; the default is to reset these from | 3510 | scroll bar settings are preserved; the default is to reset these from |
| 3501 | the local settings for BUFFER-OR-NAME or the frame defaults. Return nil. | 3511 | the local settings for BUFFER-OR-NAME or the frame defaults. Return nil. |
| 3502 | 3512 | ||
| 3503 | This function throws an error when WINDOW is dedicated to its buffer and | 3513 | This function throws an error when WINDOW is strongly dedicated to its |
| 3504 | does not already display BUFFER-OR-NAME. | 3514 | buffer (that is `window-dedicated-p' returns t for WINDOW) and does not |
| 3515 | already display BUFFER-OR-NAME. | ||
| 3505 | 3516 | ||
| 3506 | This function runs the hook `window-scroll-functions'. */) | 3517 | This function runs the hook `window-scroll-functions'. */) |
| 3507 | (window, buffer_or_name, keep_margins) | 3518 | (window, buffer_or_name, keep_margins) |