From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Pohlack Newsgroups: gmane.emacs.bugs Subject: bug#11774: [O] bug#11774: org-mode causes undo boundaries to be lost Date: Tue, 03 Jul 2012 20:33:35 +0200 Message-ID: <4FF33AFF.10302@os.inf.tu-dresden.de> References: <20120624212755.GA14501@c3po.home> <20120625113529.GA15913@c3po.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341340490 5925 80.91.229.3 (3 Jul 2012 18:34:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Jul 2012 18:34:50 +0000 (UTC) Cc: Bastien , 11774@debbugs.gnu.org To: Toby Cubitt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 03 20:34:49 2012 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 1Sm7vx-00060h-3J for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jul 2012 20:34:45 +0200 Original-Received: from localhost ([::1]:60276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm7vw-0001uE-3I for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jul 2012 14:34:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm7vl-0001RC-5d for bug-gnu-emacs@gnu.org; Tue, 03 Jul 2012 14:34:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sm7vj-00054B-8Y for bug-gnu-emacs@gnu.org; Tue, 03 Jul 2012 14:34:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm7vY-00051v-Dv; Tue, 03 Jul 2012 14:34:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sm806-000075-BX; Tue, 03 Jul 2012 14:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Martin Pohlack Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Tue, 03 Jul 2012 18:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11774 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: Original-Received: via spool by 11774-submit@debbugs.gnu.org id=B11774.1341340708393 (code B ref 11774); Tue, 03 Jul 2012 18:39:02 +0000 Original-Received: (at 11774) by debbugs.gnu.org; 3 Jul 2012 18:38:28 +0000 Original-Received: from localhost ([127.0.0.1]:45732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sm7zY-00006H-96 for submit@debbugs.gnu.org; Tue, 03 Jul 2012 14:38:28 -0400 Original-Received: from os.inf.tu-dresden.de ([141.76.48.99]:40817) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sm7zV-00006A-VP for 11774@debbugs.gnu.org; Tue, 03 Jul 2012 14:38:26 -0400 Original-Received: from [84.179.222.151] (helo=[192.168.2.111]) by os.inf.tu-dresden.de with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80) id 1Sm7uu-0007na-Ql; Tue, 03 Jul 2012 20:33:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 In-Reply-To: <20120625113529.GA15913@c3po.home> X-Enigmail-Version: 1.4.2 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61544 Archived-At: On 25.06.2012 13:35, Toby Cubitt wrote: > On Sun, Jun 24, 2012 at 11:52:41PM +0200, Toby Cubitt wrote: >> On Sun, Jun 24, 2012 at 11:39:08PM +0200, Bastien wrote: >>> Hi Toby, >>> >>> Toby Cubitt writes: >>> >>>> For some unknown reason, org-mode is causing the undo boundary between >>>> the (2 . 4) and (1 . 2) entries to be removed from `buffer-undo-list'. >>> >>> Can you try again with >>> >>> (setq org-self-insert-cluster-for-undo nil) >>> >>> and report? >> >> Yup, that fixes the problem. >> >> I don't fully understand the purpose of >> `org-self-insert-cluster-for-undo', given that the Emacs command loop >> already groups consecutive undo entries together, but presumably it >> enables a more aggressive form of clustering. Just to clarify this little piece here: I originally introduces this clustering code to mimic emacs' behavior in text mode. Org-mode's aggressive interception seemed to prevent that and undoing in org-mode felt unnatural compared to vanilla text mode. It was never meant to be *more* aggressive than emacs' original behavior. The grouping did not happen at the time. The original thread is here: http://lists.gnu.org/archive/html/emacs-orgmode/2009-02/msg00691.html Martin