aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/pcvs.el
diff options
context:
space:
mode:
authorStefan Monnier2003-05-23 19:31:02 +0000
committerStefan Monnier2003-05-23 19:31:02 +0000
commit8a769de647ddb0780a5fdb475fd945d205c6ddcb (patch)
tree14a2640ba9813d3a3957d84f6c3c81c9cd6e34a4 /lisp/pcvs.el
parent319830ce91ac9b99ce9a3781abe9f6c3d67ce24b (diff)
downloademacs-8a769de647ddb0780a5fdb475fd945d205c6ddcb.tar.gz
emacs-8a769de647ddb0780a5fdb475fd945d205c6ddcb.zip
(cvs-temp-buffer): Kill running process in displayed buffers.
(cvs-make-cvs-buffer): Fix up format of the header.
Diffstat (limited to 'lisp/pcvs.el')
-rw-r--r--lisp/pcvs.el12
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/pcvs.el b/lisp/pcvs.el
index a15ecc5ccb8..1fd4d90d60b 100644
--- a/lisp/pcvs.el
+++ b/lisp/pcvs.el
@@ -369,7 +369,14 @@ from the current buffer."
369 (let ((proc (get-buffer-process buf))) 369 (let ((proc (get-buffer-process buf)))
370 (when (and (not normal) (processp proc) 370 (when (and (not normal) (processp proc)
371 (memq (process-status proc) '(run stop))) 371 (memq (process-status proc) '(run stop)))
372 (error "Can not run two cvs processes simultaneously"))) 372 (if cmd
373 ;; When CMD is specified, the buffer is normally shown to the
374 ;; user, so interrupting the process is not harmful.
375 ;; Use `delete-process' rather than `kill-process' otherwise
376 ;; the pending output of the process will still get inserted
377 ;; after we erase the buffer.
378 (delete-process proc)
379 (error "Can not run two cvs processes simultaneously"))))
373 380
374 (if (not name) (kill-local-variable 'other-window-scroll-buffer) 381 (if (not name) (kill-local-variable 'other-window-scroll-buffer)
375 ;; Strangely, if no window is created, `display-buffer' ends up 382 ;; Strangely, if no window is created, `display-buffer' ends up
@@ -454,7 +461,8 @@ If non-nil, NEW means to create a new buffer no matter what."
454 (concat "\nTag : " (substring tag 1))) 461 (concat "\nTag : " (substring tag 1)))
455 ((string-match "\\`D" tag) 462 ((string-match "\\`D" tag)
456 (concat "\nDate : " (substring tag 1))) 463 (concat "\nDate : " (substring tag 1)))
457 (""))))) 464 ("\n"))))
465 "\n")
458 (setq buffer-read-only t) 466 (setq buffer-read-only t)
459 (cvs-mode) 467 (cvs-mode)
460 (set (make-local-variable 'list-buffers-directory) buffer-name) 468 (set (make-local-variable 'list-buffers-directory) buffer-name)