From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Emerick Rogul" Newsgroups: gmane.emacs.bugs Subject: bug#1501: Emacs 22 loses undo buffer Date: Sun, 7 Dec 2008 07:36:01 -0500 Message-ID: References: <8763lwn541.fsf@cyd.mit.edu> <87hc5g7cxm.fsf@cyd.mit.edu> Reply-To: Emerick Rogul , 1501@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1228654277 22660 80.91.229.12 (7 Dec 2008 12:51:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2008 12:51:17 +0000 (UTC) Cc: 1501@emacsbugs.donarmstrong.com To: "Chong Yidong" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 07 13:52:23 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L9J7W-0007Td-67 for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Dec 2008 13:52:22 +0100 Original-Received: from localhost ([127.0.0.1]:52036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9J6L-00042j-8x for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Dec 2008 07:51:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9J5Z-0003mv-5V for bug-gnu-emacs@gnu.org; Sun, 07 Dec 2008 07:50:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9J5V-0003ic-HI for bug-gnu-emacs@gnu.org; Sun, 07 Dec 2008 07:50:20 -0500 Original-Received: from [199.232.76.173] (port=46696 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9J5V-0003iO-D4 for bug-gnu-emacs@gnu.org; Sun, 07 Dec 2008 07:50:17 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34188) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L9J5U-0001lm-O0 for bug-gnu-emacs@gnu.org; Sun, 07 Dec 2008 07:50:17 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB7CoEaA020977; Sun, 7 Dec 2008 04:50:14 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB7Ce4qH017077; Sun, 7 Dec 2008 04:40:04 -0800 X-Loop: don@donarmstrong.com Resent-From: "Emerick Rogul" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 07 Dec 2008 12:40:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1501 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1501-submit@emacsbugs.donarmstrong.com id=B1501.122865336416700 (code B ref 1501); Sun, 07 Dec 2008 12:40:04 +0000 Original-Received: (at 1501) by emacsbugs.donarmstrong.com; 7 Dec 2008 12:36:04 +0000 Original-Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.173]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB7Ca1oO016685 for <1501@emacsbugs.donarmstrong.com>; Sun, 7 Dec 2008 04:36:02 -0800 Original-Received: by wf-out-1314.google.com with SMTP id 26so826025wfd.13 for <1501@emacsbugs.donarmstrong.com>; Sun, 07 Dec 2008 04:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=m8p8HUcQrpn/50W/yQEoUeEZky84Al415AIbGHBrSPk=; b=egqaao7EmjJ8x7RznaIsSrszDkrwLxbJfhcVpHxnTGd+O5KyKJimswew4j371Ci21M 5SH26vi9wfHpg+Sa6X9gOmONPQlUnR5yRh7aCL8WNKneetTADxXQ4FaD6M1cE83sg4b9 TkHVQHRcTutOjwe/pkA6Ah1ITje3bmh/g/mb8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=WFRxup5QmFIccEBpRkxj0Qybrv8r/it/mDgFgiDhB07hjZUjy/fu0l1NsTkbWFguJR IAhWDwH0cboWMFKI8YMj3J94pTUrGAL9ejCmQufSeivqr7x/Jd7XIWRjz08wVtShi2tn uDcWbPFn2g7iK01r5VbojfH7tvmkI3jzjbJjI= Original-Received: by 10.142.178.2 with SMTP id a2mr950623wff.306.1228653361152; Sun, 07 Dec 2008 04:36:01 -0800 (PST) Original-Received: by 10.143.3.17 with HTTP; Sun, 7 Dec 2008 04:36:01 -0800 (PST) In-Reply-To: <87hc5g7cxm.fsf@cyd.mit.edu> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 07 Dec 2008 07:50:20 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23033 Archived-At: No, I didn't enable any other major or minor modes before testing. I also ran emacs with -q --no-site-file. Your theory about it being related to font-lock-mode appears to be correct, however! I started emacs, loaded the header file, disabled font-lock-mode, and ran my test again and it behaved as expected (i.e., it retained all of my undo records). Is font-lock-mode using up more records (or more record space) than expected? I wonder if it's also Windows-specific in some way? On Sun, Dec 7, 2008 at 12:48 AM, Chong Yidong wrote: > Actually, I went back and tried again. Using the file you supplied, I > had to do C-/ about 100 times before Emacs reached its undo-limit. That > implies 200 bytes per undo limit, which is about right. > > So there does seem to be something strange about the behavior you're > seeing, where Emacs keeps only 20 or so undo records. > > Did you enable any other major or minor modes before testing this? > > Also, does turning font-lock-mode off change anything? >