]> git.eshelyaron.com Git - emacs.git/commit
Allow specifying the dir locals file to edit (Bug#66663)
authorMauro Aranda <maurooaranda@gmail.com>
Sat, 21 Oct 2023 14:02:36 +0000 (11:02 -0300)
committerJuri Linkov <juri@linkov.net>
Sun, 22 Oct 2023 17:54:15 +0000 (20:54 +0300)
commit9be8011217b8824659c8c69679b33756e240b013
treed01b6d802d31cef07189375cb2acfae0b50400e9
parentf39cd59ed477628be20353bf921b0afb423165b9
Allow specifying the dir locals file to edit (Bug#66663)

* lisp/files-x.el (modify-dir-local-variable): Take a 5th optional
argument, the filename of the dir locals file to modify.
(read-dir-locals-file): New function.
(add-dir-local-variable, delete-dir-local-variable)
(copy-file-locals-to-dir-locals): Optionally read the filename to
modify, and pass it to modify-dir-local-variable.
* etc/NEWS: Announce the change.
* doc/emacs/custom.texi (Directory Variables): Document the new
functionality.
doc/emacs/custom.texi
etc/NEWS
lisp/files-x.el