Re: [O] Babel blocks get unindented when making changes outside the blocks

2015-02-14 Thread Nicolas Goaziou
Hello,

Mark Edgington edgi...@gmail.com writes:

 Given the following code:
 - BEGIN CODE -
 * some headline
 - blah
   - blah
 - blah
   - blah
 - blah
 #+begin_src octave
 first line

 if (num = 2)
 stuff
 end
 #+end_src

 - blah
   # some comments
   #   more comments
   1. item 1
 - END CODE -

 If I go to the end of the 'item 1' line, and do 'M-x org-meta-return',
 the code in the preceding source-block gets un-indented, so that it
 looks like:

 #+begin_src octave
 first line

 if (num = 2)
 stuff
 end
 #+end_src

This should be fixed. Thank you.


Regards,

-- 
Nicolas Goaziou



[O] Babel blocks get unindented when making changes outside the blocks

2015-02-13 Thread Mark Edgington
Hello all,

Given the following code:
- BEGIN CODE -
* some headline
- blah
  - blah
- blah
  - blah
- blah
#+begin_src octave
first line

if (num = 2)
stuff
end
#+end_src

- blah
  # some comments
  #   more comments
  1. item 1
- END CODE -

If I go to the end of the 'item 1' line, and do 'M-x org-meta-return',
the code in the preceding source-block gets un-indented, so that it
looks like:

#+begin_src octave
first line

if (num = 2)
stuff
end
#+end_src

This behavior has been confirmed by another via IRC, and supposedly
the problem lies somewhere in org-list-struct-apply-struct.

I just wanted to report this strange behavior in the hope that someone
might have an idea on how to remedy it.

Regards,

Mark