aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/lispref/windows.texi1
-rw-r--r--lisp/window.el2
2 files changed, 2 insertions, 1 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 1ebf84c3261..417c323be6b 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -7001,6 +7001,7 @@ Together, the argument @var{writable} and the variable
7001@code{window-persistent-parameters} specify which window parameters are 7001@code{window-persistent-parameters} specify which window parameters are
7002saved by this function. @xref{Window Parameters}. 7002saved by this function. @xref{Window Parameters}.
7003 7003
7004@vindex window-state-normalize-buffer-name
7004Bind @code{window-state-normalize-buffer-name} to non-@code{nil} to 7005Bind @code{window-state-normalize-buffer-name} to non-@code{nil} to
7005normalize buffer names under @file{uniquify} management by removing its 7006normalize buffer names under @file{uniquify} management by removing its
7006prefixes and suffixes. This helps restore window buffers across Emacs 7007prefixes and suffixes. This helps restore window buffers across Emacs
diff --git a/lisp/window.el b/lisp/window.el
index 0e6090a6ec1..befbc679b23 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -6308,7 +6308,7 @@ specific buffers."
6308(defun window--state-normalize-buffer-name (buffer) 6308(defun window--state-normalize-buffer-name (buffer)
6309 "Normalize BUFFER name, accommodating `uniquify'. 6309 "Normalize BUFFER name, accommodating `uniquify'.
6310If BUFFER is under `uniquify' management, return its `buffer-name' with 6310If BUFFER is under `uniquify' management, return its `buffer-name' with
6311its prefixes and suffixes removed; otherwise return BUFFER 6311its prefixes and suffixes removed; otherwise return BUFFER's
6312`buffer-name'." 6312`buffer-name'."
6313 (or (and window-state-normalize-buffer-name 6313 (or (and window-state-normalize-buffer-name
6314 (fboundp 'uniquify-buffer-base-name) 6314 (fboundp 'uniquify-buffer-base-name)