GNU bug report logs - #1501
Emacs 22 loses undo buffer

Previous Next

Package: emacs;

Reported by: "Emerick Rogul" <emerick <at> gmail.com>

Date: Fri, 5 Dec 2008 17:00:03 UTC

Severity: wishlist

Tags: patch, wontfix

Merged with 530

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Chong Yidong <cyd <at> stupidchicken.com>
To: "Emerick Rogul" <emerick <at> gmail.com>
Cc: 1501 <at> debbugs.gnu.org
Subject: bug#1501: Emacs 22 loses undo buffer
Date: Sun, 07 Dec 2008 00:36:32 -0500
"Emerick Rogul" <emerick <at> gmail.com> writes:

> That's clearly not the issue at all, since the header file is only 8k
> in total size.  What's more, I get the message after hitting the undo
> key sequence a couple of times.  Also, this works perfectly fine in
> Emacs 21.2, as I mentioned in my initial report.

In the key sequence you reported:

... C-k C-k C-k C-k C-k C-k C-k C-k C-k
C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k
[snip]
C-k C-k C-k C-k C-k C-k C-/ C-/ C-/ C-/ C-/ C-/ C-/
C-/ C-/ C-/ C-/ C-/ C-/ C-/ C-/ C-/ C-/ C-/ C-/ C-/
C-/ ESC x r e p o r t - e m a <tab> <return>

it appears that you hit C-/ 22 times.  If Emacs kept 22 undo records,
and each undo record takes about 1 kilobyte, that is enough to hit the
default undo limit.  It might be that each undo record takes more space
in Emacs 23 than in Emacs 21, which is why you don't see the problem in
Emacs 21 (there are several reasons why this could happen, which could
be investigated).

I do observe the same behavior that you reported, using the key sequence
you supplied; furthermore, if I increase undo-limit to a larger number,
I find that Emacs can undo all the way back to the buffer's original
state.




This bug report was last modified 3 years and 272 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.