emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] [babel] babel corrupts undo history
@ 2013-08-28  1:13 Samuel Wales
  2013-08-28 14:42 ` Eric Schulte
  0 siblings, 1 reply; 26+ messages in thread
From: Samuel Wales @ 2013-08-28  1:13 UTC (permalink / raw)
  To: emacs-orgmode

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.

-- 
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.

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2014-03-22  8:57 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-28  1:13 [bug] [babel] babel corrupts undo history Samuel Wales
2013-08-28 14:42 ` Eric Schulte
2013-08-28 16:03   ` Aaron Ecay
2013-08-28 18:52     ` Eric Schulte
2013-08-28 19:41       ` Samuel Wales
2013-08-28 19:43         ` Samuel Wales
2013-08-28 19:51           ` Samuel Wales
2013-10-28 19:17             ` Aaron Ecay
2013-10-28 19:45               ` Samuel Wales
2013-10-28 20:07                 ` Aaron Ecay
2013-10-28 21:26                   ` Samuel Wales
2014-03-10  2:46                     ` Samuel Wales
2014-03-18 20:48                       ` Bastien
2014-03-21 21:34                         ` Samuel Wales
2014-03-21 22:07                           ` Bastien
2014-03-21 22:42                             ` Samuel Wales
2014-03-21 22:45                               ` Samuel Wales
2014-03-21 23:40                               ` Bastien
2014-03-22  0:11                                 ` Samuel Wales
2014-03-22  0:18                                   ` Bastien
2014-03-22  0:37                                     ` Samuel Wales
2014-03-22  0:44                                       ` Samuel Wales
2014-03-22  8:43                                         ` Bastien
2014-03-22  8:57                                           ` Samuel Wales
2013-08-28 17:08   ` Samuel Wales
2013-08-28 17:18     ` Samuel Wales

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).