From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: The *Warnings* buffer and undo Date: Sat, 31 Mar 2007 16:43:00 -0400 Message-ID: References: <460583AD.7010002@gmail.com> <85abxxw46j.fsf@lola.goethe.zz> <87y7lf1z6t.fsf@catnip.gol.com> <87ejn6z6qr.fsf@catnip.gol.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1175374141 32665 80.91.229.12 (31 Mar 2007 20:49:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 31 Mar 2007 20:49:01 +0000 (UTC) Cc: rgm@gnu.org, lennart.borgman@gmail.com, emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 31 22:48:54 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 1HXkVK-0001yi-3m for ged-emacs-devel@m.gmane.org; Sat, 31 Mar 2007 22:48:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HXkYA-0006Mb-5g for ged-emacs-devel@m.gmane.org; Sat, 31 Mar 2007 15:51:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HXkUd-0004ap-6Z for emacs-devel@gnu.org; Sat, 31 Mar 2007 16:48:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HXkUc-0004ad-MY for emacs-devel@gnu.org; Sat, 31 Mar 2007 16:48:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HXkUc-0004aa-IF for emacs-devel@gnu.org; Sat, 31 Mar 2007 15:48:10 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HXkRl-0008Hs-SP for emacs-devel@gnu.org; Sat, 31 Mar 2007 16:45:13 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HXkPc-0003eR-R2; Sat, 31 Mar 2007 16:43:00 -0400 In-reply-to: <87ejn6z6qr.fsf@catnip.gol.com> (message from Miles Bader on Sat, 31 Mar 2007 07:50:04 +0900) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:68857 Archived-At: I don't know about the *Warning* buffer (I don't think I've ever even seen it), but in the case of comint: (1) If you use `comint-truncate-buffer' (in comint-output-filter-functions) to keep comint buffers from getting too big (and in many cases it's a very good idea), a line gets deleted at the beginning of the buffer for every new line that gets inserted at the end, which can use massive amounts of space in the undo list. Perhaps `comint-truncate-buffer' should discard its own undo entries. It could use `inhibit-undo', if we add such a feature. Alternatively we could add a feature which says, "discard this undo entry, and fix up the older entries so that they still work." That could be written in Lisp.