aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2025-03-22 14:14:22 +0200
committerEli Zaretskii2025-03-22 14:14:22 +0200
commit42e116bb1095f47cd0d57bbb6ee7b73d2d9f506e (patch)
tree7dde65945680e5771e56ee59537b07f93be217da
parent4266514dc88345d5c1bc1ab6dd8576dd47caf57f (diff)
downloademacs-42e116bb1095f47cd0d57bbb6ee7b73d2d9f506e.tar.gz
emacs-42e116bb1095f47cd0d57bbb6ee7b73d2d9f506e.zip
; Fix last change (bug#76980)
* lisp/window.el (window--state-normalize-buffer-name): Doc fix. * doc/lispref/windows.texi (Window Configurations): Add indexing.
-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)