]> git.eshelyaron.com Git - emacs.git/commit
Support transforming the dirname used by uniquify
authorSpencer Baugh <sbaugh@catern.com>
Mon, 10 Jul 2023 02:21:03 +0000 (22:21 -0400)
committerEli Zaretskii <eliz@gnu.org>
Wed, 26 Jul 2023 14:41:48 +0000 (17:41 +0300)
commit2aec67f4deb1a7dfd87f7da8479be4b2784bcc39
tree30f1ffd66cc9385a42d7c34bf4f0bbe4dd269347
parent4ef9cc5a5ded7156e573a67474f3f48da6c7afe4
Support transforming the dirname used by uniquify

By transforming the buffer's directory name, we can add
additional information to use during uniquifying.  A basic
one: uniquifying buffer names based on the project name.
* lisp/progmodes/project.el (project-uniquify-dirname-transform): Add.
* lisp/uniquify.el (uniquify-dirname-transform-default)
(uniquify-dirname-transform): Add.  (Bug#62621)
(uniquify-rationalize-file-buffer-names, uniquify-buffer-file-name):
Use 'uniquify-dirname-transform'.
* test/lisp/uniquify-tests.el (uniquify-home)
(uniquify-project-transform): Add tests.
lisp/progmodes/project.el
lisp/uniquify.el
test/lisp/uniquify-tests.el