From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: [bug] [babel] babel corrupts undo history Date: Wed, 28 Aug 2013 12:41:12 -0700 Message-ID: References: <87d2oxanct.fsf@gmail.com> <87hae9ajz2.fsf@gmail.com> <87bo4h8x63.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VElcE-0003ij-4D for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 15:41:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VElc9-0006dx-AH for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 15:41:18 -0400 Received: from mail-we0-x236.google.com ([2a00:1450:400c:c03::236]:52986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VElc9-0006ds-3d for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 15:41:13 -0400 Received: by mail-we0-f182.google.com with SMTP id q59so5731591wes.27 for ; Wed, 28 Aug 2013 12:41:12 -0700 (PDT) In-Reply-To: <87bo4h8x63.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode@gnu.org On 8/28/13, Eric Schulte wrote: > Aaron, thanks for this fix. > > Sam, does this patch fix your problem? IMO it is the right strategy. Editing does insert spaces, making the block syntactically correct for one value of org-src-preserve-indentation [it was already correct for the other value]. That's not corruption, just correction. The problem is that you can't undo the spaces. Ideally it should take you back to where you are before you edit. Maybe there is another place where undo is turned off? Still, it is a huge improvement over buffer corruption. Thanks. Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it. Denmark: free Karina Hansen NOW.