@code{window-persistent-parameters} specify which window parameters are
saved by this function. @xref{Window Parameters}.
+@vindex window-state-normalize-buffer-name
Bind @code{window-state-normalize-buffer-name} to non-@code{nil} to
normalize buffer names under @file{uniquify} management by removing its
prefixes and suffixes. This helps restore window buffers across Emacs
(defun window--state-normalize-buffer-name (buffer)
"Normalize BUFFER name, accommodating `uniquify'.
If BUFFER is under `uniquify' management, return its `buffer-name' with
-its prefixes and suffixes removed; otherwise return BUFFER
+its prefixes and suffixes removed; otherwise return BUFFER's
`buffer-name'."
(or (and window-state-normalize-buffer-name
(fboundp 'uniquify-buffer-base-name)