From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: emacs-devel@gnu.org
Cc: help-gnu-emacs@gnu.org
Subject: Re: undo boundaries
Date: Sat, 15 Mar 2008 14:19:29 +0100 [thread overview]
Message-ID: <yoijfxusi0pq.fsf@remote2.student.chalmers.se> (raw)
In-Reply-To: yoijod9gi37z.fsf@remote2.student.chalmers.se
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.
bojohan+news@dd.chalmers.se (Johan Bockgård) writes:
> 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
next prev parent reply other threads:[~2008-03-15 13:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.8949.1205581280.18990.help-gnu-emacs@gnu.org>
2008-03-15 12:25 ` undo boundaries Johan Bockgård
2008-03-15 13:19 ` Johan Bockgård [this message]
2008-03-15 11:39 Nikolaj Schumacher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yoijfxusi0pq.fsf@remote2.student.chalmers.se \
--to=bojohan+news@dd.chalmers.se \
--cc=emacs-devel@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).