From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ishikawa Newsgroups: gmane.emacs.devel Subject: A new(?) warning of erase-buffer, which was not seen before. Date: Mon, 19 Mar 2007 11:20:15 +0900 Message-ID: <45FDF35F.6030605@ubin.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1174270836 21940 80.91.229.12 (19 Mar 2007 02:20:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Mar 2007 02:20:36 +0000 (UTC) Cc: ishikawa To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 19 03:20:28 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 1HT7U3-00075F-Q1 for ged-emacs-devel@m.gmane.org; Mon, 19 Mar 2007 03:20:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HT7VU-0004yh-1Q for ged-emacs-devel@m.gmane.org; Sun, 18 Mar 2007 21:21:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HT7VQ-0004yO-Gq for emacs-devel@gnu.org; Sun, 18 Mar 2007 22:21:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HT7VP-0004yB-Uk for emacs-devel@gnu.org; Sun, 18 Mar 2007 22:21:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HT7VP-0004y7-PY for emacs-devel@gnu.org; Sun, 18 Mar 2007 21:21:51 -0500 Original-Received: from post.ubin.jp ([202.32.0.84]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HT7U0-0003jh-8z for emacs-devel@gnu.org; Sun, 18 Mar 2007 22:20:24 -0400 Original-Received: from localhost (post [127.0.0.1]) by localhost.ubin.jp (Postfix) with SMTP id C850C29AC2C for ; Mon, 19 Mar 2007 11:20:19 +0900 (JST) Original-Received: from [10.254.248.233] (dell-w2k-note.ddns.member.ubin.jp [10.254.248.233]) by post.ubin.jp (Postfix) with ESMTP id D462F29AC2C; Mon, 19 Mar 2007 11:20:15 +0900 (JST) User-Agent: Thunderbird 1.5.0.10 (X11/20070221) X-detected-kernel: Linux 2.4-2.6 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:68069 Archived-At: Hi, When I ran "erase-buffer" on a buffer named "*sim*", I got the following warning, which I didn't get with older version of Emacs. Is this warning an intentional one? In the old emacs version(s), it used to be that erase-buffer intentionally discarded undo information if I recall correctly. The buffer in question, namely "*sim*", contained a voluminous output of a running simulator program and I simply want to throw away the contents from time to time. And thus, undo is not necessary for this buffer. emacs-version is a variable defined in `version.el'. Its value is "22.0.93.1" --- new warning which I see with 22.0.93.1 Warning (undo): Buffer `*sim*' undo info was 4766843 bytes long. The undo info was discarded because it exceeded `undo-outer-limit'. This is normal if you executed a command that made a huge change to the buffer. In that case, to prevent similar problems in the future, set `undo-outer-limit' to a value that is large enough to cover the maximum size of normal changes you expect a single command to make, but not so large that it might exceed the maximum memory allotted to Emacs. If you did not execute any such command, the situation is probably due to a bug and you should report it. You can disable the popping up of this buffer by adding the entry (undo discard-info) to the user option `warning-suppress-types'.