From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: undo info for *cvs-tmp* Date: Mon, 23 Jul 2007 21:09:23 -0400 Message-ID: References: <200707232122.l6NLM1BP015977@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185239371 28916 80.91.229.12 (24 Jul 2007 01:09:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Jul 2007 01:09:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 24 03:09:30 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ID8u2-0006A0-Ca for ged-emacs-devel@m.gmane.org; Tue, 24 Jul 2007 03:09:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ID8u1-0001kf-Qp for ged-emacs-devel@m.gmane.org; Mon, 23 Jul 2007 21:09:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ID8tz-0001kX-0c for emacs-devel@gnu.org; Mon, 23 Jul 2007 21:09:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ID8ty-0001kF-6l for emacs-devel@gnu.org; Mon, 23 Jul 2007 21:09:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ID8ty-0001kC-0z for emacs-devel@gnu.org; Mon, 23 Jul 2007 21:09:26 -0400 Original-Received: from bc.sympatico.ca ([209.226.175.184] helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ID8tx-0006di-LY for emacs-devel@gnu.org; Mon, 23 Jul 2007 21:09:25 -0400 Original-Received: from pastel.home ([70.53.195.145]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070724010924.ZGHQ18413.tomts22-srv.bellnexxia.net@pastel.home> for ; Mon, 23 Jul 2007 21:09:24 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id F263180DB; Mon, 23 Jul 2007 21:09:23 -0400 (EDT) In-Reply-To: <200707232122.l6NLM1BP015977@oogie-boogie.ics.uci.edu> (Dan Nicolaescu's message of "Mon\, 23 Jul 2007 14\:22\:01 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75429 Archived-At: > 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)