diff options
| author | Eli Zaretskii | 2025-03-22 14:14:22 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2025-03-22 14:14:22 +0200 |
| commit | 42e116bb1095f47cd0d57bbb6ee7b73d2d9f506e (patch) | |
| tree | 7dde65945680e5771e56ee59537b07f93be217da | |
| parent | 4266514dc88345d5c1bc1ab6dd8576dd47caf57f (diff) | |
| download | emacs-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.texi | 1 | ||||
| -rw-r--r-- | lisp/window.el | 2 |
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 |
| 7002 | saved by this function. @xref{Window Parameters}. | 7002 | saved by this function. @xref{Window Parameters}. |
| 7003 | 7003 | ||
| 7004 | @vindex window-state-normalize-buffer-name | ||
| 7004 | Bind @code{window-state-normalize-buffer-name} to non-@code{nil} to | 7005 | Bind @code{window-state-normalize-buffer-name} to non-@code{nil} to |
| 7005 | normalize buffer names under @file{uniquify} management by removing its | 7006 | normalize buffer names under @file{uniquify} management by removing its |
| 7006 | prefixes and suffixes. This helps restore window buffers across Emacs | 7007 | prefixes 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'. |
| 6310 | If BUFFER is under `uniquify' management, return its `buffer-name' with | 6310 | If BUFFER is under `uniquify' management, return its `buffer-name' with |
| 6311 | its prefixes and suffixes removed; otherwise return BUFFER | 6311 | its 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) |