]> git.eshelyaron.com Git - emacs.git/commit
Add uniquify-get-unique-names (bug#77312)
authorSpencer Baugh <sbaugh@janestreet.com>
Thu, 27 Mar 2025 13:32:47 +0000 (09:32 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 20:01:25 +0000 (22:01 +0200)
commit11f0071ad32ce58c514e32e0fd76a36a1057ceaf
tree1740ae4c386a5e722f34e2b3cf809c06998f1e23
parentc5b1d0b954ad89792e3359303e2eb95b48bb72ae
Add uniquify-get-unique-names (bug#77312)

This new function provides an interface to uniquify.el which doesn't
change the actual names of the buffers.  This is useful for any commands
which deal with a subset of all buffers; for example, project.el.

* lisp/uniquify.el (uniquify-rationalize--generic): Add.
(uniquify-rationalize, uniquify-rationalize-a-list)
(uniquify-rationalize-conflicting-sublist): Explicitly pass
RENAME-BUFFER-FN and GET-BUFFER-FN.
(uniquify--stateless-curname, uniquify-get-unique-names): Add.

(cherry picked from commit 79cd1cc30e0c9a5f058279dc6f618e5dc22a1945)
lisp/uniquify.el