[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
- disabling undo boundaries, Phillip Lord, 2015/05/10
- Re: disabling undo boundaries, Stefan Monnier, 2015/05/10
- Re: disabling undo boundaries, Phillip Lord, 2015/05/11
- Re: disabling undo boundaries, Stefan Monnier, 2015/05/11
- Re: disabling undo boundaries, Phillip Lord, 2015/05/11
- Re: disabling undo boundaries, Stefan Monnier, 2015/05/11
- Re: disabling undo boundaries, Phillip Lord, 2015/05/11
- Re: disabling undo boundaries, Stefan Monnier, 2015/05/11
- Re: disabling undo boundaries, Phillip Lord, 2015/05/12
- Re: disabling undo boundaries,
Stefan Monnier <=
- Re: disabling undo boundaries, Phillip Lord, 2015/05/12
- Re: disabling undo boundaries, Stefan Monnier, 2015/05/13
- Re: disabling undo boundaries, Phillip Lord, 2015/05/13
- Re: disabling undo boundaries, Stefan Monnier, 2015/05/14
- Re: disabling undo boundaries, Phillip Lord, 2015/05/15
- Re: disabling undo boundaries, Stefan Monnier, 2015/05/15
- Re: disabling undo boundaries, Phillip Lord, 2015/05/15
- Re: disabling undo boundaries, Stefan Monnier, 2015/05/15
- Re: disabling undo boundaries, Phillip Lord, 2015/05/16
- Re: disabling undo boundaries, Phillip Lord, 2015/05/19