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

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

Re: Undo discard prompt (was: [T. V. Raman] read-only modes should be us


From: Luc Teirlinck
Subject: Re: Undo discard prompt (was: [T. V. Raman] read-only modes should be using buffer-disable-undo?)
Date: Sun, 23 Jan 2005 11:35:46 -0600 (CST)

T. V. Raman wrote:

   Also, it might be useful to create a robust with-buffer-undo-disabled
   macro that authors can wrap around their code at points where they
   dont care about undo. 

If you want to get rid of undo completely, there is `buffer-disable-undo'.
If you want to disable it temporarily, there is:

(let ((buffer-undo-list t)) ...)

Also, the correct solution to the problem causing the prompt is not
always to disable undo, completely or temporarily.  We have seen
actual examples where the problem was caused by repeatedly appending
undo info to the same old undo entry, whereas the correct solution was
either to delete the old entry or put in an undo boundary.

Sincerely,

Luc.





reply via email to

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