all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Phil Sainty <psainty@orcon.net.nz>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 10047@debbugs.gnu.org
Subject: bug#10047: Looking for help debugging an undo issue
Date: Mon, 28 Nov 2011 23:49:24 +1300	[thread overview]
Message-ID: <4ED36734.5060608@orcon.net.nz> (raw)
In-Reply-To: <jwvd3cp2v8h.fsf-monnier+emacs@gnu.org>

> Your problem doesn't ring a bell, sorry.  The best options I can think
> of are:
> - log the value of buffer-undo-list at each step in some auxiliary
>    debugging buffer, for post-mortem analysis.
> - try to come up with a reproducible test case.

As it turned out, most of my code & context was irrelevant.
You should be able to reproduce the bug like this:

emacs -Q
M-: (add-hook 'post-command-hook 'align-current) RET
<backspace> (until the scratch buffer message is gone)
C-/ (or otherwise undo, until it fails with the message
"No further undo information")

It will probably occur after deleting far fewer characters
than that, but the point of failure seems variable. However,
in a half-dozen test runs just now, I've yet to have it
get as far as restoring the first half of the first line
before failing.


-Phil






  reply	other threads:[~2011-11-28 10:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-14 10:52 bug#10047: Looking for help debugging an undo issue Phil Sainty
2011-11-18 17:36 ` Stefan Monnier
2011-11-28 10:49   ` Phil Sainty [this message]
2011-11-29 20:22     ` Stefan Monnier
2011-12-01 14:16       ` Phil Sainty
2011-12-01 16:16         ` Stefan Monnier
2012-08-09  7:35       ` Chong Yidong

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=4ED36734.5060608@orcon.net.nz \
    --to=psainty@orcon.net.nz \
    --cc=10047@debbugs.gnu.org \
    --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.