From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: bug#11774: Emacs 24.3: newline-and-indent has two undo boundaries Date: Mon, 3 Nov 2014 12:25:30 -0700 Message-ID: References: <20120624212755.GA14501@c3po.home> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlNGT-0002OS-F2 for emacs-orgmode@gnu.org; Mon, 03 Nov 2014 14:26:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlNGN-00058z-35 for emacs-orgmode@gnu.org; Mon, 03 Nov 2014 14:26:09 -0500 In-Reply-To: <20120624212755.GA14501@c3po.home> Sender: "Debbugs-submit" Resent-Message-ID: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: 11774@debbugs.gnu.org, monnier@iro.umontreal.ca Cc: Bastien , 11774-done@debbugs.gnu.org, Martin Pohlack , Toby Cubitt Reporting as suggested by Stefan. In order to bunch up undos by 1 instead of the hardcoded 20, I do this: (add-hook 'post-self-insert-hook #'undo-boundary 'append) This or advice used to work, then around Emacs 24.1 it stopped working. Stefan patched it in 24.3. It now works in most cases. The history is in this Debian bug: Re: [O] bug#11774: bug#11774: org-mode causes undo boundaries to be lost I use undo-tree 0.6.6. The bug also occurs with it turned off. When I press RET when it is bound to newline-and-indent, the newline and the indentation are undone separately. I expected the RET to be undone. This is a minor issue for me, but might point to other cases. Thanks. Samuel