summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorEric S. Raymond <esr@snark.thyrsus.com>2008-05-03 13:16:19 +0000
committerEric S. Raymond <esr@snark.thyrsus.com>2008-05-03 13:16:19 +0000
commitd97d570d2c47d3a3cdf5d19c841e310042515438 (patch)
tree16ee06f11e65778d71968558725845722f99c171 /lisp
parent1bc7fa22f00a109f1803d46bbd8ee596b9741b8f (diff)
downloademacs-d97d570d2c47d3a3cdf5d19c841e310042515438.tar.gz
Another refactoring step.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/vc.el19
1 files changed, 7 insertions, 12 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 6ac3f655f4b..4f9dfee7724 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -2050,14 +2050,6 @@ specific headers."
'face 'font-lock-function-name-face
'mouse-face 'highlight))))
-(defun vc-dir-printer (fileentry)
- (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)
@@ -2110,10 +2102,13 @@ U - if the cursor is on a file: unmark all the files with the same VC state
(pop-to-buffer (vc-dir-prepare-status-buffer dir))
(if (eq major-mode 'vc-dir-mode)
(vc-dir-refresh)
- (vc-dir-mode #'vc-dir-printer
- #'vc-dir-header-maker
- #'vc-dir-mark-buffer-changed
- #'vc-dir-refresh)))
+ (let ((backend (vc-responsible-backend default-directory)))
+ (vc-dir-mode (lambda (fileentry)
+ (vc-call-backend backend 'status-printer fileentry))
+ (lambda (dir)
+ (vc-dir-headers backend default-directory))
+ #'vc-dir-mark-buffer-changed
+ #'vc-dir-refresh))))
;; This is used to that VC backends could add backend specific menu
;; items to vc-dir-menu-map.