From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs 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 Organization: muc.de e.V. Message-ID: <20160603134947.43637.qmail@mail.muc.de> References: <20160602220629.GE4067@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1464961942 8133 80.91.229.3 (3 Jun 2016 13:52:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jun 2016 13:52:22 +0000 (UTC) Cc: Alan Mackenzie To: 23685-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 03 15:52:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b8pUS-0006xr-1U for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Jun 2016 15:50:20 +0200 Original-Received: from localhost ([::1]:55678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8pUR-0000dx-7Y for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Jun 2016 09:50:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8pUE-0000Uv-Ts for bug-gnu-emacs@gnu.org; Fri, 03 Jun 2016 09:50:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8pUA-0002Ap-O1 for bug-gnu-emacs@gnu.org; Fri, 03 Jun 2016 09:50:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8pUA-0002Aj-KR for bug-gnu-emacs@gnu.org; Fri, 03 Jun 2016 09:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b8pUA-00065J-D0 for bug-gnu-emacs@gnu.org; Fri, 03 Jun 2016 09:50:02 -0400 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jun 2016 13:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 23685 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 23685@debbugs.gnu.org, acm@muc.de, acm@muc.de Original-Received: via spool by 23685-done@debbugs.gnu.org id=D23685.146496179123364 (code D ref 23685); Fri, 03 Jun 2016 13:50:02 +0000 Original-Received: (at 23685-done) by debbugs.gnu.org; 3 Jun 2016 13:49:51 +0000 Original-Received: from localhost ([127.0.0.1]:52487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8pTy-00064m-TA for submit@debbugs.gnu.org; Fri, 03 Jun 2016 09:49:51 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:29848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8pTx-00064d-7L for 23685-done@debbugs.gnu.org; Fri, 03 Jun 2016 09:49:49 -0400 Original-Received: (qmail 43638 invoked by uid 3782); 3 Jun 2016 13:49:47 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.3.1-20141224 ("Tallant") (UNIX) (FreeBSD/10.3-RELEASE (amd64)) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:119011 Archived-At: 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 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 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).