diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2010-03-12 00:04:54 -0800 |
---|---|---|
committer | Dan Nicolaescu <dann@ics.uci.edu> | 2010-03-12 00:04:54 -0800 |
commit | 8117868f0ce67b6db33081f77b6715a6c10e45b8 (patch) | |
tree | aa88ce85bb40558a9d726141b2bf9a3cebccba5e /lisp/vc-dir.el | |
parent | 49a62e8aad8eee350511104415062f6b82f51973 (diff) |
Add .dir-locals.el support for file-less buffers.
* files.el (hack-local-variables): Split out code to apply local
variable settings ...
(hack-local-variables-apply): ... here. New function.
(hack-dir-local-variables): Use the default directory for when the
buffer does not have an associated file.
(hack-dir-local-variables-non-file-buffer): New function.
* diff-mode.el (diff-mode):
* vc-annotate.el (vc-annotate-mode):
* vc-dir.el (vc-dir-mode):
* log-edit.el (log-edit-mode):
* log-view.el (log-view-mode): Call hack-dir-local-variables-non-file-buffer.
Diffstat (limited to 'lisp/vc-dir.el')
-rw-r--r-- | lisp/vc-dir.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/vc-dir.el b/lisp/vc-dir.el index 2f661e8bec..a0350eb301 100644 --- a/lisp/vc-dir.el +++ b/lisp/vc-dir.el @@ -938,6 +938,7 @@ the *vc-dir* buffer. ;; Make sure that if the directory buffer is killed, the update ;; process running in the background is also killed. (add-hook 'kill-buffer-query-functions 'vc-dir-kill-query nil t) + (hack-dir-local-variables-non-file-buffer) (vc-dir-refresh))) (defun vc-dir-headers (backend dir) |