]> git.eshelyaron.com Git - emacs.git/commit
Add easy customization for dir-locals files (Bug#66702)
authorMauro Aranda <maurooaranda@gmail.com>
Mon, 23 Oct 2023 12:45:12 +0000 (09:45 -0300)
committerJuri Linkov <juri@linkov.net>
Sat, 28 Oct 2023 17:02:13 +0000 (20:02 +0300)
commitc79ea103efd6fa3004c14f373305a17c49d6462d
tree10f2867d4b387e2991f90d720381c26f267261f9
parente81e625ab895f1bd3c5263f5b66251db0fd38bd6
Add easy customization for dir-locals files (Bug#66702)

* lisp/cus-edit.el (custom--editable-field-p): New utility function.
(custom-dirlocals-widget, custom-dirlocals-file-widget)
(custom-dirlocals-commands, custom-dirlocals-tool-bar-map): New
variables.
(custom-dirlocals-map, custom-dirlocals-field-map): New keymaps.
(Custom-dirlocals-menu): New menu.
(custom-dirlocals-key, custom-dynamic-cons, custom-dirlocals): New
widgets.
(custom-dirlocals-maybe-update-cons, custom-dirlocals-symbol-action)
(custom-dirlocals-change-file, custom-dirlocals--set-widget-vars)
(custom-dirlocals-get-options, custom-dirlocals-validate): New
functions.
(custom-dirlocals-with-buffer): New macro.
(Custom-dirlocals-revert-buffer, Custom-dirlocals-save)
(customize-dirlocals): New commands.

* doc/emacs/custom.texi (Directory Variables): Document
customize-dirlocals.

* etc/NEWS: Announce.
doc/emacs/custom.texi
etc/NEWS
lisp/cus-edit.el