summaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2024-03-15 10:35:27 +0100
committerMartin Rudalics <rudalics@gmx.at>2024-03-15 10:35:27 +0100
commit5bba1b95b8088048808b306bf8b00eb9b342ce92 (patch)
tree0320ea25b5ea77cd7224134a69dd73dcf8996753 /src/buffer.h
parent1c4233b9a391ba5d5746acf6b6fd4b352b8c3a58 (diff)
downloademacs-5bba1b95b8088048808b306bf8b00eb9b342ce92.tar.gz
Further adjustments for restoring killed buffer windows (Bug#68235)
* etc/NEWS: Announce 'window-restore-killed-buffer-windows'. * src/buffer.h (struct buffer) : New field last_name_. * src/buffer.c (Fbuffer_last_name): New function to return last name of buffer before it was killed or renamed. (bset_last_name, Fget_buffer_create, Fmake_indirect_buffer) (Frename_buffer, Fkill_buffer, init_buffer_once): Set buffer's last_name_ field accordingly. * src/window.c (window_restore_killed_buffer_windows): New variable replacing Vwindow_kept_windows_functions. (Fset_window_configuration): Use window_restore_killed_buffer_windows instead of Vwindow_kept_windows_functions. * lisp/window.el (window--state-put-2, window-state-put): Use 'window-restore-killed-buffer-windows' instead of 'window-kept-windows-functions'. * doc/lispref/windows.texi (Window Configurations): Describe 'window-restore-killed-buffer-windows' which replaces 'window-kept-windows-functions'.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 87ba2802b39..bbe1aeff668 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -309,6 +309,9 @@ struct buffer
/* The name of this buffer. */
Lisp_Object name_;
+ /* The last name of this buffer before it was renamed or killed. */
+ Lisp_Object last_name_;
+
/* The name of the file visited in this buffer, or nil. */
Lisp_Object filename_;