[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 13:25:20 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) |
Nikolaj Schumacher <n_schumacher@web.de> 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
- undo boundaries, Nikolaj Schumacher, 2008/03/15
- Re: undo boundaries,
Johan Bockgård <=