emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undo discard prompt


From: Kim F. Storm
Subject: Re: Undo discard prompt
Date: Mon, 24 Jan 2005 21:18:44 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> there was indeed a bug where Emacs generated lots of undo info during
>> a single command and crashed, and the only fix I could see was to
>> discard the undo info.  So I don't think turning off the question is a
>> good default.
>
> If "turning off the question" means "throw away the undo info", it doesn't
> seem like a big risk.  Another alternative between throwing away the info
> and not throwing it away is to split those mega-undo-step by arbitrarily
> adding some undo-boundaries in them, so that undo-limit can do its job
> (which it has always done silently, BTW).

In that case, I would rather lose the whole undo record rather than having
partial undo information -- which can fool the user.  

For example, if you kill 5000 lines from a buffer and undo that kill,
a partial undo may only re-inserts the last 2500 lines, a fact that the user
may easily miss...

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]