Skip to content

Commit 448df8f

Browse files
author
Martin Rudalics
committed
Improve doc-strings of 'quit-window' and 'quit-restore-window' (Bug#38819)
* lisp/window.el (quit-restore-window, quit-window): Make doc-strings more consistent; add references to corresponding section of the Elisp manual (Bug#38819).
1 parent 7f01dfc commit 448df8f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lisp/window.el

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4970,9 +4970,11 @@ WINDOW must be a live window and defaults to the selected one.
49704970

49714971
According to information stored in WINDOW's `quit-restore' window
49724972
parameter either (1) delete WINDOW and its frame, (2) delete
4973-
WINDOW, (3) restore the buffer previously displayed in WINDOW,
4974-
or (4) make WINDOW display some other buffer than the present
4975-
one. If non-nil, reset `quit-restore' parameter to nil.
4973+
WINDOW but leave its frame alone, (3) restore the buffer
4974+
previously shown in WINDOW, or (4) make WINDOW display some other
4975+
buffer. If WINDOW is not deleted, reset its `quit-restore'
4976+
parameter to nil. See Info node `(elisp) Quitting Windows' for
4977+
more details.
49764978

49774979
Optional second argument BURY-OR-KILL tells how to proceed with
49784980
the buffer of WINDOW. The following values are handled:
@@ -5083,11 +5085,9 @@ WINDOW must be a live window and defaults to the selected one.
50835085
With prefix argument KILL non-nil, kill the buffer instead of
50845086
burying it.
50855087

5086-
According to information stored in WINDOW's `quit-restore' window
5087-
parameter either (1) delete WINDOW and its frame, (2) delete
5088-
WINDOW, (3) restore the buffer previously displayed in WINDOW,
5089-
or (4) make WINDOW display some other buffer than the present
5090-
one. If non-nil, reset `quit-restore' parameter to nil.
5088+
This calls the function `quit-restore-window' to delete WINDOW or
5089+
show some other buffer in it. See Info node `(elisp) Quitting
5090+
Windows' for more details.
50915091

50925092
The functions in `quit-window-hook' will be run before doing
50935093
anything else."

0 commit comments

Comments
 (0)