summaryrefslogtreecommitdiff
path: root/lisp/log-view.el
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2010-03-12 00:04:54 -0800
committerDan Nicolaescu <dann@ics.uci.edu>2010-03-12 00:04:54 -0800
commit8117868f0ce67b6db33081f77b6715a6c10e45b8 (patch)
treeaa88ce85bb40558a9d726141b2bf9a3cebccba5e /lisp/log-view.el
parent49a62e8aad8eee350511104415062f6b82f51973 (diff)
downloademacs-8117868f0ce67b6db33081f77b6715a6c10e45b8.tar.gz
emacs-8117868f0ce67b6db33081f77b6715a6c10e45b8.tar.bz2
emacs-8117868f0ce67b6db33081f77b6715a6c10e45b8.zip
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/log-view.el')
-rw-r--r--lisp/log-view.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/log-view.el b/lisp/log-view.el
index 6fbe8429671..5c454ead5fc 100644
--- a/lisp/log-view.el
+++ b/lisp/log-view.el
@@ -255,7 +255,8 @@ The match group number 1 should match the revision number itself.")
'log-view-beginning-of-defun)
(set (make-local-variable 'end-of-defun-function)
'log-view-end-of-defun)
- (set (make-local-variable 'cvs-minor-wrap-function) 'log-view-minor-wrap))
+ (set (make-local-variable 'cvs-minor-wrap-function) 'log-view-minor-wrap)
+ (hack-dir-local-variables-non-file-buffer))
;;;;
;;;; Navigation