[Top][All Lists]

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

Re: Big desktop undo buffer crashes Emacs

From: Stefan Monnier
Subject: Re: Big desktop undo buffer crashes Emacs
Date: Fri, 12 May 2006 09:25:46 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> !       (when (consp buffer-undo-list)
>> !    (setq buffer-undo-list nil))
>> !       (let ((buffer-undo-list t))
>> !    (erase-buffer)

>    Why not just (buffer-disable-undo) ??

> Because I want to allow people who visit the buffer to undo any
> changes they deliberately or inadvertently make to it.

That's what I understood, but why?
Actually, a better question is: why is it called "*desktop*" rather
than " *desktop*"?
Calling it " *desktop*" would not just hide the buffer but would also
disable undo.  It's an internal buffer, after all, that normal users aren't
supposed to display or edit.


reply via email to

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