From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11774: [O] bug#11774: bug#11774: org-mode causes undo boundaries to be lost Date: Tue, 03 Jul 2012 18:57:25 -0400 Message-ID: References: <20120703095729.GA6651@c3po> <4FF30D50.8010009@os.inf.tu-dresden.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341356309 27729 80.91.229.3 (3 Jul 2012 22:58:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Jul 2012 22:58:29 +0000 (UTC) Cc: Bastien , Martin Pohlack , Toby Cubitt , 11774@debbugs.gnu.org To: Samuel Wales Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 04 00:58:28 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 1SmC39-0000tI-Db for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Jul 2012 00:58:27 +0200 Original-Received: from localhost ([::1]:43416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmC38-000176-Fh for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jul 2012 18:58:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmC35-00011W-6P for bug-gnu-emacs@gnu.org; Tue, 03 Jul 2012 18:58:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmC33-0001VE-ME for bug-gnu-emacs@gnu.org; Tue, 03 Jul 2012 18:58:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmC30-0001UT-MK; Tue, 03 Jul 2012 18:58:18 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SmC7Z-0008Ci-OV; Tue, 03 Jul 2012 19:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier 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 23:03:01 +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.134135653231472 (code B ref 11774); Tue, 03 Jul 2012 23:03:01 +0000 Original-Received: (at 11774) by debbugs.gnu.org; 3 Jul 2012 23:02:12 +0000 Original-Received: from localhost ([127.0.0.1]:46390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmC6m-0008BZ-9F for submit@debbugs.gnu.org; Tue, 03 Jul 2012 19:02:12 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:19484) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmC6k-0008BS-Bo for 11774@debbugs.gnu.org; Tue, 03 Jul 2012 19:02:10 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09MCquH/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLDiYSFBgNJIgcBboJkEQDozOBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="192585573" Original-Received: from 76-10-171-135.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([76.10.171.135]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 03 Jul 2012 18:57:25 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id A3427AE322; Tue, 3 Jul 2012 18:57:25 -0400 (EDT) In-Reply-To: (Samuel Wales's message of "Tue, 3 Jul 2012 11:13:07 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) 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:61554 Archived-At: > The first is that it hardcodes the clustering by 20. I guess that's the problem which is not new. > This was possible to work around before Emacs 24. You could advise > self-insert-command or wrap it. This is why Org was able to control > this with a variable to support clustering or not clustering. IIUC Org's clustering was only introduced because self-insert-command's clustering only worked when it was handled by the read-eval-loop, so it was not done to "avoid" the clustering, but to make it work in more cases. So it might be unneeded in Emacs-24. > What is new in Emacs is that self-insert-command now destroys > undo-boundary. If you wrap it, it destroys all of your effort on the > next call to it. I don't have it fresh in my memory but if you can post some sample code showing what you're doing, and how self-insert-command's behavior makes it difficult, maybe we can make it work better. > self-insert-command. Even just turning that magic 20 number into a > variable would help. Providing it as a variable would be very easy, indeed. Stefan