emacs-devel
[Top][All Lists]
Advanced

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

Re: undo boundaries


From: Johan Bockgård
Subject: Re: undo boundaries
Date: Sat, 15 Mar 2008 14:19:29 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

The likely suspect is this change:

undo.c
revision 1.55
date: 2002-04-04 22:42:56 +0200;  author: monnier;
(record_point): New fun.
(record_delete, record_insert): Use it.


address@hidden (Johan Bockgård) writes:

> Nikolaj Schumacher <address@hidden> writes:
>
>> I'm trying to use undo boundaries, but I'm unable to explain its
>> behavior.
>>
>> For example:
>>
>> (defun test ()
>>   (interactive)
>>   (insert "a")
>>   (undo-boundary)
>>   (insert "b"))
>>
>> If I do M-x test, I get:
>> ab
>>   ^
>>
>> But if I undo once, I get:
>> a
>> ^
>>
>> What I was expecting:
>> a
>>  ^
>>
>> Is this a bug or is there a reason for this behavior?
>
> A bug, IMO.  Emacs 21 does what you expect.

-- 
Johan Bockgård





reply via email to

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