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
parent reply other threads:[~2008-03-15 13:19 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <yoijod9gi37z.fsf@remote2.student.chalmers.se>]
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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).