[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [bug] [babel] babel corrupts undo history
From: |
Eric Schulte |
Subject: |
Re: [O] [bug] [babel] babel corrupts undo history |
Date: |
Wed, 28 Aug 2013 08:42:10 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
I don't understand. Is the problem that edits made in the indirect
buffer are not spliced into the undo history of the Org-mode buffer?
Samuel Wales <address@hidden> writes:
> c-c ' c-c ' on this. then undo or undo-tree-undo.
>
> what happens is data corruption. to me, undo is a low-level
> operation that should always work, even with a syntactically
> invalid block.
>
> a relevant variable is org-src-preserve-indentation. it is
> possible to change it without changing a block.
>
> ===
>
> #+BEGIN_SRC sh :noweb yes :results verbatim output
> (
> cat <<EOF
> test
> EOF
> ) 2>&1
> :
> #+END_SRC
>
> ===
>
> Emacs 24.2, recent Org, recent undo-tree-mode.
>
> Thanks.
>
> Samuel
>
> P.S. You might be wondering why I use a subshell and a
> redirection followed by a null command. This is because I
> prefer to bypass Babel's error mechanism, which I find
> confusing. Doing exactly as above is the only way I know to
> get Babel to work the way I prefer (although {} might or
> might not work also). I always do this for every block. IMO it would
> be great for newcomers if there were options in Babel sh blocks for
> exactly this.
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
Re: [O] [bug] [babel] babel corrupts undo history, Samuel Wales, 2013/08/28