aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2024-03-15 14:22:14 +0200
committerEli Zaretskii2024-03-15 14:22:14 +0200
commitbf3d296d24ea24fb707a9410fccd745523347d2a (patch)
tree3a17f7cde11c18889eaa638881e90621bc7fac09 /src
parent3858e4f22946dc49d2d3dde5f45a65eab83fd7aa (diff)
downloademacs-bf3d296d24ea24fb707a9410fccd745523347d2a.tar.gz
emacs-bf3d296d24ea24fb707a9410fccd745523347d2a.zip
; Fix documentation of a recent change (bug#68235)
* etc/NEWS: * doc/lispref/windows.texi (Window Configurations): Improve wording of 'window-restore-killed-buffer-windows's doc. * src/window.c (syms_of_window) <window-restore-killed-buffer-windows>: Doc fix. * etc/NEWS: * doc/lispref/buffers.texi (Buffer Names): Document 'buffer-last-name'.
Diffstat (limited to 'src')
-rw-r--r--src/window.c54
1 files changed, 28 insertions, 26 deletions
diff --git a/src/window.c b/src/window.c
index 928c4ae02a8..2c002418605 100644
--- a/src/window.c
+++ b/src/window.c
@@ -8675,30 +8675,32 @@ call is performed with the frame temporarily selected. */);
8675 doc: /* Control restoring windows whose buffer was killed. 8675 doc: /* Control restoring windows whose buffer was killed.
8676This variable specifies how the functions `set-window-configuration' and 8676This variable specifies how the functions `set-window-configuration' and
8677`window-state-put' shall handle a window whose buffer has been killed 8677`window-state-put' shall handle a window whose buffer has been killed
8678since the corresponding configuration or state was made. Any such 8678since the corresponding configuration or state was recorded. Any such
8679window may be live - in which case it shows some other buffer - or dead 8679window may be live -- in which case it shows some other buffer -- or
8680at the time one of these functions is called. 8680dead at the time one of these functions is called.
8681 8681
8682As a rule, `set-window-configuration' leaves the window alone if it is 8682By default, `set-window-configuration' leaves the window alone if it is
8683live while `window-state-put' deletes it. The following values can be 8683live, while `window-state-put' deletes it. The following values can be
8684used to override the default behavior for dead windows in the case of 8684used to override the default behavior for dead windows in the case of
8685`set-window-configuration' and for dead and live windows in the case of 8685`set-window-configuration' and for dead and live windows in the case of
8686`window-state-put'. 8686`window-state-put'.
8687 8687
8688- t means to restore the window and show some other buffer in it. 8688 - t means to restore the window and show some other buffer in it.
8689 8689
8690- `delete' means to try to delete the window. 8690 - `delete' means to try to delete the window.
8691 8691
8692- `dedicated' means to try to delete the window if and only if it is 8692 - `dedicated' means to try to delete the window if and only if it is
8693 dedicated to its buffer. 8693 dedicated to its buffer.
8694 8694
8695- nil, the default, means that `set-window-configuration' will try to 8695 - nil, the default, which means that `set-window-configuration' will
8696 delete the window if and only if it is dedicated to its buffer while 8696 try to delete the window if and only if it is dedicated to its
8697 `window-state-put' will unconditionally try to delete it. 8697 buffer while `window-state-put' will unconditionally try to delete
8698 it.
8698 8699
8699- a function means to restore the window, show some other buffer in it 8700 - a function means to restore the window and show some other buffer in
8700 and add an entry for that window to a list that will be later passed 8701 it, like if the value were t, but also to add an entry for that
8701 as argument to that function. 8702 window to a list that will be later passed as argument to that
8703 function.
8702 8704
8703If a window cannot be deleted (typically, because it is the last window 8705If a window cannot be deleted (typically, because it is the last window
8704on its frame), show another buffer in it. 8706on its frame), show another buffer in it.
@@ -8709,19 +8711,19 @@ third argument is the constant `configuration' if the windows are
8709restored by `set-window-configuration' and the constant `state' if the 8711restored by `set-window-configuration' and the constant `state' if the
8710windows are restored by `window-state-put'. 8712windows are restored by `window-state-put'.
8711 8713
8712The second argument specifies a list of entries for @emph{any} window 8714The second argument specifies a list of entries for all windows
8713whose previous buffer has been encountered dead at the time 8715whose previous buffers have been found dead at the time
8714`set-window-configuration' or `window-state-put' tried to restore it in 8716`set-window-configuration' or `window-state-put' tried to restore it in
8715that window (minibuffer windows are excluded). This means that the 8717that window (minibuffer windows are excluded). This means that the
8716function specified by this variable may also delete windows encountered 8718function specified by this variable may also delete windows which were
8717live by `set-window-configuration'. 8719found to be alive by `set-window-configuration'.
8718 8720
8719Each entry is a list of six values - the window whose buffer was found 8721Each entry is a list of six values: the window whose buffer was found
8720dead, the dead buffer or its name, the positions of start and point of 8722dead, the dead buffer or its name, the positions of window-start and
8721the buffer in that window, the dedicated status of the window as 8723window-point of the buffer in that window, the dedicated state of the
8722reported by `window-dedicated-p' and a boolean - t if the window was 8724window as reported by `window-dedicated-p', and a boolean -- t if the
8723live when `set-window-configuration' tried to restore it and nil 8725window was live when `set-window-configuration' tried to restore it,
8724otherwise. */); 8726and nil otherwise. */);
8725 window_restore_killed_buffer_windows = Qnil; 8727 window_restore_killed_buffer_windows = Qnil;
8726 8728
8727 DEFVAR_LISP ("recenter-redisplay", Vrecenter_redisplay, 8729 DEFVAR_LISP ("recenter-redisplay", Vrecenter_redisplay,