aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/vc-hooks.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 1ae9ecfe642..65b2599e2c4 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -280,15 +280,20 @@ value of this flag.")
280 ;; command, because that would change its default directory 280 ;; command, because that would change its default directory
281 (save-excursion (set-buffer (get-buffer-create "*vc-info*")) 281 (save-excursion (set-buffer (get-buffer-create "*vc-info*"))
282 (erase-buffer)) 282 (erase-buffer))
283 (let ((exec-path (append vc-path exec-path)) 283 (let ((exec-path (append vc-path exec-path)) exec-status
284 ;; Add vc-path to PATH for the execution of this command. 284 ;; Add vc-path to PATH for the execution of this command.
285 (process-environment 285 (process-environment
286 (cons (concat "PATH=" (getenv "PATH") 286 (cons (concat "PATH=" (getenv "PATH")
287 path-separator 287 path-separator
288 (mapconcat 'identity vc-path path-separator)) 288 (mapconcat 'identity vc-path path-separator))
289 process-environment))) 289 process-environment)))
290 (apply 'call-process "cvs" nil "*vc-info*" nil 290 (setq exec-status
291 (list "status" file))) 291 (apply 'call-process "cvs" nil "*vc-info*" nil
292 (list "status" file)))
293 (cond ((> exec-status 0)
294 (switch-to-buffer (get-file-buffer file))
295 (display-buffer "*vc-info*")
296 (error "Couldn't find version control information"))))
292 (set-buffer (get-buffer "*vc-info*")) 297 (set-buffer (get-buffer "*vc-info*"))
293 (set-buffer-modified-p nil) 298 (set-buffer-modified-p nil)
294 (auto-save-mode nil) 299 (auto-save-mode nil)