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: Thu, 2 Jun 2016 22:06:29 +0000 Message-ID: <20160602220629.GE4067@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1464905679 16970 80.91.229.3 (2 Jun 2016 22:14:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2016 22:14:39 +0000 (UTC) To: 23685@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 03 00:14:27 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 1b8ase-0002kY-H8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Jun 2016 00:14:20 +0200 Original-Received: from localhost ([::1]:50660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8asY-0006xj-A1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jun 2016 18:14:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8asS-0006xd-8r for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 18:14:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8asM-0001Ja-6k for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 18:14:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8asM-0001JW-3B for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 18:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b8asL-0002OT-Tk for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 18:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jun 2016 22:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23685 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14649056019141 (code B ref -1); Thu, 02 Jun 2016 22:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Jun 2016 22:13:21 +0000 Original-Received: from localhost ([127.0.0.1]:52159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8arh-0002NN-4H for submit@debbugs.gnu.org; Thu, 02 Jun 2016 18:13:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8arg-0002NC-Bc for submit@debbugs.gnu.org; Thu, 02 Jun 2016 18:13:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8ara-00015n-Ew for submit@debbugs.gnu.org; Thu, 02 Jun 2016 18:13:15 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49958) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8ara-00014j-Bm for submit@debbugs.gnu.org; Thu, 02 Jun 2016 18:13:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8arY-0006va-5v for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 18:13:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8arS-0000ze-3v for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 18:13:11 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:48482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8arR-0000yH-Pk for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 18:13:06 -0400 Original-Received: (qmail 68364 invoked by uid 3782); 2 Jun 2016 22:06:23 -0000 Original-Received: from acm.muc.de (p4FC469F0.dip0.t-ipconnect.de [79.196.105.240]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 03 Jun 2016 00:06:22 +0200 Original-Received: (qmail 6079 invoked by uid 1000); 2 Jun 2016 22:06:29 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:118998 Archived-At: 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).