all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: 23685-done@debbugs.gnu.org
Cc: Alan Mackenzie <acm@muc.de>
Subject: bug#23685: Emacs 25.0.94.1; Undo is clumping together delete-forward-char commands from distant	parts of the buffer.
Date: 3 Jun 2016 13:49:47 -0000	[thread overview]
Message-ID: <20160603134947.43637.qmail@mail.muc.de> (raw)
In-Reply-To: <mailman.733.1464905650.1216.bug-gnu-emacs@gnu.org>

This isn't a bug, so closing.
The problems below only occur in some (undetermined) circumstances,
possibly when edebug is active.

-- 
Alan Mackenzie (Nuremberg, Germany).

In article <mailman.733.1464905650.1216.bug-gnu-emacs@gnu.org> you wrote:
> Hello, Emacs.

> I'm using Emacs 25.0.94.1, built as follows:

> In GNU Emacs 25.0.94.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.7)
>  of 2016-05-24 built on acm
> Repository revision: 2671179b11a9423792aaf2439a26a2562679c086
> Configured using:
>  'configure --with-tiff=no --with-gif=no --with-gpm'

> Configured features:
> XPM JPEG PNG RSVG SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2
> FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11

> I have the following in a buffer:
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> #define FOO(bar) char bar [] = R"bar(bar)bar"

> char baz [] = R"baz(baz)foo";
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

> I delete the "a" from Line 1 col 34 with `delete-forward-char' (bound to
> the <deletechar> key).  Then I move to Line 3, and likewise delete the
> "o" in column 25.

> Now I attempt to undo the last deletion with C-_.  Maddeningly, this
> undoes both of the two last disjoint deletions.  It appears to be
> impossible to undo only the last of these deletions.  This has caused me
> some inconvenience in testing.  There is no customizable option by which
> this irritating behaviour can be disabled.  It is surely a bug.

> I can understand coalescing a sequence of undos in the same place, much
> as consecutive `self-insert-command's are coalesced into a single group
> for undo.  However, coalescing two deletions separated by movement
> commands into a single undo group is going too far.

> Can we possibly have a rethink on this before Emacs 25 goes out?

> -- 
> Alan Mackenzie (Nuremberg, Germany).








      parent reply	other threads:[~2016-06-03 13:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-02 22:06 bug#23685: Emacs 25.0.94.1; Undo is clumping together delete-forward-char commands from distant parts of the buffer Alan Mackenzie
     [not found] ` <mailman.733.1464905650.1216.bug-gnu-emacs@gnu.org>
2016-06-03 13:49   ` Alan Mackenzie [this message]

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=20160603134947.43637.qmail@mail.muc.de \
    --to=acm@muc.de \
    --cc=23685-done@debbugs.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 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.