From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.bugs Subject: bug#11774: bug#11774: bug#11774: org-mode causes undo boundaries to be lost Date: Wed, 01 Aug 2012 16:26:23 +0200 Organization: GNU Message-ID: <87y5lyn0xc.fsf__47165.4918430888$1343831219$gmane$org@gnu.org> 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 1343831218 2312 80.91.229.3 (1 Aug 2012 14:26:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2012 14:26:58 +0000 (UTC) To: 11774@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 01 16:26:58 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 1SwZt2-0004R3-Ii for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Aug 2012 16:26:56 +0200 Original-Received: from localhost ([::1]:44975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwZt1-0003JD-Og for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Aug 2012 10:26:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwZsx-0003BG-U6 for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 10:26:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwZss-0003hP-6q for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 10:26:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwZsj-0003cO-QC; Wed, 01 Aug 2012 10:26:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SwZzu-0004P5-Go; Wed, 01 Aug 2012 10:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bastien Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Wed, 01 Aug 2012 14:34: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.134383159616854 (code B ref 11774); Wed, 01 Aug 2012 14:34:02 +0000 Original-Received: (at 11774) by debbugs.gnu.org; 1 Aug 2012 14:33:16 +0000 Original-Received: from localhost ([127.0.0.1]:54891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SwZzA-0004Nn-5C for submit@debbugs.gnu.org; Wed, 01 Aug 2012 10:33:16 -0400 Original-Received: from mail-wg0-f46.google.com ([74.125.82.46]:58228) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SwZz7-0004Ne-BV for 11774@debbugs.gnu.org; Wed, 01 Aug 2012 10:33:14 -0400 Original-Received: by wgbdq10 with SMTP id dq10so6230224wgb.15 for <11774@debbugs.gnu.org>; Wed, 01 Aug 2012 07:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:organization:references :user-agent:date:message-id:mime-version:content-type; bh=MOV9j/4GTXp22MCXrT2XTDV8XbaVUbKBHT4y3PTAZE0=; b=0e/wTWbiO+Q2iWC8kAjnSoaZLtzdRP1Hzlgk7ajOQx2Q6CfU6ooRub8mte32Wl1de3 Rc5ExvZ8A9/eQ3J2WtF5uT/Am8LC34k+04OYk7VXSPOuk48v1/pJPtk9k8Y0AS32Lnfo exrT/kk5KaPTewmnUC+svC7rrK5ESpESOODYlHAr2Fcqtyh7IQiTVi9Rp3AAnnhh4gli mXh2hkvoJuyhp7a7tLqEwaHwmyEYupcDXU1+x2fXbszEFoBu8ZEQYgdLMZV78AL7Spkn EGhja9sp1QftRmL5YLgczPhUVtRpWsmFkDr9kg/kC5UWnuwNk2/AeH5ljOTai1xn/4ZG 4CWA== Original-Received: by 10.216.243.203 with SMTP id k53mr9308340wer.90.1343831147547; Wed, 01 Aug 2012 07:25:47 -0700 (PDT) Original-Received: from myhost.localdomain (gob75-3-89-83-75-124.dsl.sta.abo.bbox.fr. [89.83.75.124]) by mx.google.com with ESMTPS id cu1sm28150683wib.6.2012.08.01.07.25.46 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Aug 2012 07:25:46 -0700 (PDT) Original-Received: by myhost.localdomain (Postfix, from userid 1000) id F335F8207; Wed, 1 Aug 2012 16:26:23 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Wed, 18 Jul 2012 09:21:42 -0400") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) 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:62717 Archived-At: Stefan Monnier writes: >>>> 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. >> Maybe the user should be able to set undo boundaries and >> have them work after self-insert-command? Dunno, I'm >> not familiar with internals enough to opine. > > I installed the patch below which makes self-insert-command more careful > to only remove undo boundaries that were auto-added. > So (add-hook 'post-self-insert-hook #'undo-boundary 'append) should give you > pretty much the behavior you were looking for. On Org's side, `org-self-insert-cluster-for-undo' now defaults to nil for Emacs >=24.1, t otherwise. Thanks, -- Bastien