aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/vc.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index e1d00d59d59..09966322933 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -2054,6 +2054,10 @@ specific headers."
2054 (let ((backend (vc-responsible-backend default-directory))) 2054 (let ((backend (vc-responsible-backend default-directory)))
2055 (vc-call-backend backend 'status-printer fileentry))) 2055 (vc-call-backend backend 'status-printer fileentry)))
2056 2056
2057(defun vc-dir-header-maker ()
2058 (let ((backend (vc-responsible-backend default-directory)))
2059 (vc-dir-headers backend default-directory)))
2060
2057(defun vc-default-extra-status-menu (backend) 2061(defun vc-default-extra-status-menu (backend)
2058 nil) 2062 nil)
2059 2063
@@ -2084,13 +2088,12 @@ U - if the cursor is on a file: unmark all the files with the same VC state
2084 (use-local-map vc-dir-mode-map) 2088 (use-local-map vc-dir-mode-map)
2085 (set (make-local-variable 'tool-bar-map) vc-dir-tool-bar-map) 2089 (set (make-local-variable 'tool-bar-map) vc-dir-tool-bar-map)
2086 (let ((buffer-read-only nil) 2090 (let ((buffer-read-only nil)
2087 (backend (vc-responsible-backend default-directory))
2088 entries) 2091 entries)
2089 (erase-buffer) 2092 (erase-buffer)
2090 (set (make-local-variable 'vc-dir-process-buffer) nil) 2093 (set (make-local-variable 'vc-dir-process-buffer) nil)
2091 (set (make-local-variable 'vc-ewoc) 2094 (set (make-local-variable 'vc-ewoc)
2092 (ewoc-create #'vc-dir-printer 2095 (ewoc-create #'vc-dir-printer
2093 (vc-dir-headers backend default-directory))) 2096 #'vc-dir-header-maker))
2094 (add-hook 'after-save-hook 'vc-dir-mark-buffer-changed) 2097 (add-hook 'after-save-hook 'vc-dir-mark-buffer-changed)
2095 ;; Make sure that if the VC status buffer is killed, the update 2098 ;; Make sure that if the VC status buffer is killed, the update
2096 ;; process running in the background is also killed. 2099 ;; process running in the background is also killed.