all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Johan Andersson <johan.rejeep@gmail.com>,
	Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Unwanted undo-boundary
Date: Sun, 14 Feb 2010 01:30:21 +0100	[thread overview]
Message-ID: <e01d8a51002131630r63ce44bdu5d4062118f622412@mail.gmail.com> (raw)
In-Reply-To: <jwv3a15nf3k.fsf-monnier+emacs@gnu.org>

On Sat, Feb 13, 2010 at 7:54 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> I just got a bug report saying that a single indent-region in mumamo
>> can't be undone with a single undo command. (This is with the latest
>> nXhtml beta and I can confirm it with an Emacs from 2010-02-03.)
>
>> I assume this means that something is calling undo-boundary, but I
>> can't find out what. There is nothing in nXhtml that does it. (Yes,
>> one function does, but it is not involved here.) I tried to trace
>> undo-boundary, but I get no hit.
>
>> Does anyone have a good idea for how to find out what is happening? Am
>> I wrong assuming that undo-boundary have been called (implicitly or
>> explicitly)?
>
> It's hard to tell without more info, but yes if more than a single undo
> is needed, it's probably because of a call to undo-boundary, tho it
> might come from the C code (which you wouldn't be able to trace from
> Elisp, you'd need to put a breakpoint on Fundo_boundary from gdb).


I have not done that (yet), but looking at the where Fundo_boundary is
called I see that there is a check like this

 if (current_buffer != last_undo_buffer)
    Fundo_boundary ();
  last_undo_buffer = current_buffer;

in some places. In my case changes in two buffers are involved. (One
is just to figure out the indentation.)


I just did a fresh checkout and tried "gdb emacs" but got:

  .gdbinit:23: Error in sourced command file:
  No symbol table is loaded.  Use the "file" command.

Is this expected? For configure I have used (on w32):

    cmd /c configure --with-gcc --no-opt --cflags -Ic:/g/include
--cflags -fno-crossjumping



> Maybe if you look at the place where the undo stops, you'll get some
> hint at the culprit,
>
>
>        Stefan
>




  parent reply	other threads:[~2010-02-14  0:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-13 13:56 Unwanted undo-boundary Lennart Borgman
     [not found] ` <jwv3a15nf3k.fsf-monnier+emacs@gnu.org>
2010-02-14  0:30   ` Lennart Borgman [this message]
2010-02-14  4:14     ` Eli Zaretskii
2010-02-14  8:20       ` Lennart Borgman
2010-02-14 18:03         ` Eli Zaretskii
2010-02-14 21:31           ` Lennart Borgman
2010-02-14 22:32             ` Lennart Borgman
2010-02-14 22:49               ` Lennart Borgman
2010-02-16  0:06                 ` Lennart Borgman
2010-02-15  3:57               ` Eli Zaretskii
2010-02-15  3:56             ` Eli Zaretskii

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a51002131630r63ce44bdu5d4062118f622412@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=johan.rejeep@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.