emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undo info for *cvs-tmp*


From: Stefan Monnier
Subject: Re: undo info for *cvs-tmp*
Date: Mon, 23 Jul 2007 21:09:23 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

> Not sure what is the right solution here, completely disable undo for
> *cvs-tmp* or up the limit. Can somebody please take a look at this? 

Thanks.
The buffer name is " *cvs-tmp*" by default, so the leading space should turn
off undo, i.e. I'm not sure why your undo wasn't turned off.

In any case, I explicitly disabled undo in the buffer with the patch below
(which I installed in the 22 branch).


        Stefan


--- pcvs.el     23 jui 2007 01:28:44 -0400      1.98.2.3
+++ pcvs.el     23 jui 2007 21:05:47 -0400      
@@ -396,7 +396,9 @@
       (set (make-local-variable 'cvs-buffer) cvs-buf)
       ;;(cvs-minor-mode 1)
       (let ((lbd list-buffers-directory))
-       (if (fboundp mode) (funcall mode) (fundamental-mode))
+       (if (fboundp mode) (funcall mode)
+          (fundamental-mode)
+          (buffer-disable-undo))
        (when lbd (set (make-local-variable 'list-buffers-directory) lbd)))
       (cvs-minor-mode 1)
       ;;(set (make-local-variable 'cvs-buffer) cvs-buf)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]