]> git.eshelyaron.com Git - emacs.git/commit
Make locate-user-emacs-file accept a list too
authorStefan Kangas <stefankangas@gmail.com>
Sat, 8 Mar 2025 12:02:58 +0000 (13:02 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Mar 2025 18:47:25 +0000 (19:47 +0100)
commitfc4764eac56a503c16ea639f4c62a2f513179ac5
treeefdc9472171203b1d0e4e07008fdbaf751fe9046
parent6bbfc69f4f0539dc8b4fdd54aba9eee4bc5e30a6
Make locate-user-emacs-file accept a list too

This can be used to migrate to a new name, while also keeping
backwards-compatible support for an old name.

* lisp/files.el (locate-user-emacs-file): Accept a list as the
NEW-NAME argument.
* test/lisp/files-tests.el (files-test-locate-user-emacs-file): New
test for the above.

(cherry picked from commit 87db670d045bea2d90139b1f741eea8db7c193ea)
lisp/files.el
test/lisp/files-tests.el