emacs-devel
[Top][All Lists]
Advanced

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

Re: disabling undo boundaries


From: Stefan Monnier
Subject: Re: disabling undo boundaries
Date: Tue, 12 May 2015 16:15:35 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>> Then maybe you could try a hack like:
>> 
>> (with-current-buffer "*scratch*"
>>   <doyourthing>)
>> (let ((buffer-undo-list))
>>   (undo-boundary))           ; Set last_undo_buffer.
> It doesn't unfortunately.

Oh, indeed when buffer-undo-list, undo-boundary is a no-op, so you need

   (with-current-buffer "*scratch*"
     <doyourthing>)
   (let ((buffer-undo-list '("")))
     (undo-boundary))           ; Set last_undo_buffer.

> It is, and one that has been in Emacs for a long time.  How wedded to
> keeping it are you? Would it be possible to optionalize?

Not sure,


        Stefan



reply via email to

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