diff options
| -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) |