Mercurial > emacs
changeset 94586:d5d0ca913104
Small refactoring step.
author | Eric S. Raymond <esr@snark.thyrsus.com> |
---|---|
date | Sat, 03 May 2008 12:42:54 +0000 |
parents | 16008b90ad8c |
children | 42d33dc32553 |
files | lisp/vc.el |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/vc.el Sat May 03 12:06:42 2008 +0000 +++ b/lisp/vc.el Sat May 03 12:42:54 2008 +0000 @@ -2054,6 +2054,10 @@ (let ((backend (vc-responsible-backend default-directory))) (vc-call-backend backend 'status-printer fileentry))) +(defun vc-dir-header-maker () + (let ((backend (vc-responsible-backend default-directory))) + (vc-dir-headers backend default-directory))) + (defun vc-default-extra-status-menu (backend) nil) @@ -2084,13 +2088,12 @@ (use-local-map vc-dir-mode-map) (set (make-local-variable 'tool-bar-map) vc-dir-tool-bar-map) (let ((buffer-read-only nil) - (backend (vc-responsible-backend default-directory)) entries) (erase-buffer) (set (make-local-variable 'vc-dir-process-buffer) nil) (set (make-local-variable 'vc-ewoc) (ewoc-create #'vc-dir-printer - (vc-dir-headers backend default-directory))) + #'vc-dir-header-maker)) (add-hook 'after-save-hook 'vc-dir-mark-buffer-changed) ;; Make sure that if the VC status buffer is killed, the update ;; process running in the background is also killed.