From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [bug] [babel] babel corrupts undo history Date: Sat, 22 Mar 2014 00:40:38 +0100 Message-ID: <87bnwzktmx.fsf@bzg.ath.cx> References: <87d2oxanct.fsf@gmail.com> <87hae9ajz2.fsf@gmail.com> <87bo4h8x63.fsf@gmail.com> <877gcx19zc.fsf@gmail.com> <871u3517no.fsf@gmail.com> <87lhw7cjws.fsf@bzg.ath.cx> <87r45vkxxm.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR93R-00068I-Op for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 19:40:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WR93L-00020J-PP for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 19:40:49 -0400 Received: from rs249.mailgun.us ([209.61.151.249]:34414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR93L-00020A-BV for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 19:40:43 -0400 In-Reply-To: (Samuel Wales's message of "Fri, 21 Mar 2014 15:42:49 -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: emacs-orgmode@gnu.org, Eric Schulte Hi Samuel, Samuel Wales writes: > c-c ' > edit > c-c ' > edit > undo > undo OOPS the source edit is skipped over what just happened? > c-c ' > undo OOPS the undo changes are all gone where did they go? The changes happen in different buffers, there is no reason to expect undo to let you undo changes you made from another buffer. Or is it something something you see elsewhere in Emacs? Agenda undo is different: manipulations in the agenda modify the source buffer, so undo in the agenda should undo in the source buffer. In *Org Src*, manipulation are reflected in the source buffer only when you save the *Org Src* buffer or when you exit it. When you save, you can undo in the *Org Src* buffer, and changes will be be reflected in the source buffer at the time you exit the temporary buffer. When you exit the buffer, there is no undo problem left. > and at worst there is buffer corruption. Sorry to ask it again, but please let me know about a reprocible recipe, I could not reproduce the problem you have. > it is much better to not skip an entire set of changes + no bugs than > "the user will never want to see the indentation adding so let's > pretend it doesn't exist". That's not my reasoning, which is "undo applies to manual changes. -- Bastien