From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Monnier Subject: bug#11774: bug#11774: bug#11774: org-mode causes undo boundaries to be lost Date: Mon, 03 Nov 2014 09:35:12 -0500 Message-ID: References: <20120703095729.GA6651@c3po> <4FF30D50.8010009@os.inf.tu-dresden.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlIjq-00084v-KQ for emacs-orgmode@gnu.org; Mon, 03 Nov 2014 09:36:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlIjj-0000ci-62 for emacs-orgmode@gnu.org; Mon, 03 Nov 2014 09:36:10 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Samuel Wales's message of "Mon, 3 Nov 2014 00:06:08 -0700") 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: Samuel Wales Cc: Bastien , 11774-done@debbugs.gnu.org, Martin Pohlack , Toby Cubitt > There is one possible bug. I have undo-boundary on self-insert-hook. > If I do newline-and-indent, for some reason both the newline and the > indent get undo boundaries. My expectation is that typing RET should > only have one undo boundary. > I don't know if that is user expectation error, but seems worth mentioning. Maybe the issue is simply that you need to be careful to put your undo-boundary "late" on the post-self-insert-hook (i.e. to use the `append' argument of add-hook). If not, then please post a new bug-report about it, so we can see on which side it should be solved. Stefan