changeset 37358:ae55f4048b3b

(vc-cvs-print-log, vc-cvs-diff): Don't invoke CVS as an async subprocess if start-process is unavailable. Suggested by Tim Van Holder <tim.van.holder@pandora.be>.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 17 Apr 2001 05:59:57 +0000
parents ad563f9185fb
children 08167912b464
files lisp/vc-cvs.el
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc-cvs.el	Sun Apr 15 14:34:23 2001 +0000
+++ b/lisp/vc-cvs.el	Tue Apr 17 05:59:57 2001 +0000
@@ -5,7 +5,7 @@
 ;; Author:      FSF (see vc.el for full credits)
 ;; Maintainer:  Andre Spiegel <spiegel@gnu.org>
 
-;; $Id: vc-cvs.el,v 1.20 2001/02/02 07:21:21 spiegel Exp $
+;; $Id: vc-cvs.el,v 1.21 2001/03/10 10:49:05 spiegel Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -461,8 +461,10 @@
 
 (defun vc-cvs-print-log (file)
   "Get change log associated with FILE."
-  (vc-do-command nil (if (vc-cvs-stay-local-p file) 'async 0)
-                 "cvs" file "log"))
+  (vc-do-command
+   nil
+   (if (and (vc-cvs-stay-local-p file) (fboundp 'start-process)) 'async 0)
+   "cvs" file "log"))
 
 (defun vc-cvs-show-log-entry (version)
   (when (re-search-forward
@@ -509,7 +511,10 @@
                  (append diff-switches-list '("/dev/null"))))
       (setq status
             (apply 'vc-do-command "*vc-diff*"
-                   (if (vc-cvs-stay-local-p file) 'async 1)
+                   (if (and (vc-cvs-stay-local-p file)
+			    (fboundp 'start-process))
+		       'async
+		     1)
                    "cvs" file "diff"
                    (and oldvers (concat "-r" oldvers))
                    (and newvers (concat "-r" newvers))