]> git.eshelyaron.com Git - emacs.git/commit
'window-state-normalize-buffer-name' option for `uniquify' buffers
authorshipmints <shipmints@gmail.com>
Wed, 12 Mar 2025 16:14:50 +0000 (12:14 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sun, 23 Mar 2025 19:25:10 +0000 (20:25 +0100)
commitc3d00cb3bc5f4aac2d76c56b6481d817e3c29845
tree1ff45253a9fc28e77108e268eecb0a8d29b1903b
parentca821e3e7c3898923cd070161ba471d20670fc32
'window-state-normalize-buffer-name' option for `uniquify' buffers

If 'window-state-normalize-buffer-name' is non-nil, 'window-state-get'
will normalize stored buffer names, making them easier to restore for
users that use 'uniquify' buffer naming.
* doc/lispref/windows.texi (Window Configurations): Document
'window-state-normalize-buffer-name'.
* lisp/window.el (window-state-normalize-buffer-name): New defvar.
(window--state-normalize-buffer-name): New function.
(window--state-get-1): Call 'window--state-normalize-buffer-name'
rather than 'buffer-name'.
* etc/NEWS: Announce 'window-state-normalize-buffer-name'.
(Bug#76980)

(cherry picked from commit 4266514dc88345d5c1bc1ab6dd8576dd47caf57f)
doc/lispref/windows.texi
lisp/window.el