aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2007-07-26 05:18:03 +0000
committerMiles Bader2007-07-26 05:18:03 +0000
commit4382021fc15f8a52c9dd12bacb7c75dbeb562302 (patch)
treed5ac443bcbd3394f71e3750ea1b103344064d90e
parent212b26818b420bc2b52aaac5184daf7d8362313a (diff)
parentef2805c29bb03f0c8c0d4b37a65f511123dcab1c (diff)
downloademacs-4382021fc15f8a52c9dd12bacb7c75dbeb562302.tar.gz
emacs-4382021fc15f8a52c9dd12bacb7c75dbeb562302.zip
Merge from emacs--rel--22
Patches applied: * emacs--rel--22 (patch 70-73) - Update from CVS 2007-07-25 Glenn Morris <rgm@gnu.org> * Relicense all FSF files to GPLv3 or later. 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca> * lisp/pcvs.el (cvs-temp-buffer): Undo last ill-conceived change. Replace it with another one which disables undo before calling erase-buffer and then turns it back on if needed. 2007-07-24 Stefan Monnier <monnier@iro.umontreal.ca> * lisp/pcvs.el (cvs-temp-buffer): Disable undo in temp buffers. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
-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)))