aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/pcvs.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/pcvs.el b/lisp/pcvs.el
index 12ad6f5e2a0..901110bbfa3 100644
--- a/lisp/pcvs.el
+++ b/lisp/pcvs.el
@@ -19,7 +19,7 @@
19 19
20;; GNU Emacs is free software; you can redistribute it and/or modify 20;; GNU Emacs is free software; you can redistribute it and/or modify
21;; it under the terms of the GNU General Public License as published by 21;; it under the terms of the GNU General Public License as published by
22;; the Free Software Foundation; either version 2, or (at your option) 22;; the Free Software Foundation; either version 3, or (at your option)
23;; any later version. 23;; any later version.
24 24
25;; GNU Emacs is distributed in the hope that it will be useful, 25;; GNU Emacs is distributed in the hope that it will be useful,
@@ -392,7 +392,11 @@ from the current buffer."
392 (with-current-buffer buf 392 (with-current-buffer buf
393 (setq buffer-read-only nil) 393 (setq buffer-read-only nil)
394 (setq default-directory dir) 394 (setq default-directory dir)
395 (unless nosetup (erase-buffer)) 395 (unless nosetup
396 ;; Disable undo before calling erase-buffer since it may generate
397 ;; a very large and unwanted undo record.
398 (buffer-disable-undo)
399 (erase-buffer))
396 (set (make-local-variable 'cvs-buffer) cvs-buf) 400 (set (make-local-variable 'cvs-buffer) cvs-buf)
397 ;;(cvs-minor-mode 1) 401 ;;(cvs-minor-mode 1)
398 (let ((lbd list-buffers-directory)) 402 (let ((lbd list-buffers-directory))
@@ -400,7 +404,8 @@ from the current buffer."
400 (when lbd (set (make-local-variable 'list-buffers-directory) lbd))) 404 (when lbd (set (make-local-variable 'list-buffers-directory) lbd)))
401 (cvs-minor-mode 1) 405 (cvs-minor-mode 1)
402 ;;(set (make-local-variable 'cvs-buffer) cvs-buf) 406 ;;(set (make-local-variable 'cvs-buffer) cvs-buf)
403 (unless normal 407 (if normal
408 (buffer-enable-undo)
404 (setq buffer-read-only t) 409 (setq buffer-read-only t)
405 (buffer-disable-undo)) 410 (buffer-disable-undo))
406 buf))) 411 buf)))