emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mark Edgington <edgimar@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Babel blocks get unindented when making changes outside the blocks
Date: Fri, 13 Feb 2015 11:46:45 -0500	[thread overview]
Message-ID: <CAMsBe8qF6DdD8epTd-yYmdYEnR9=9GNNbi9jFU-2ZGfNy2ZdGw@mail.gmail.com> (raw)

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

             reply	other threads:[~2015-02-13 16:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-13 16:46 Mark Edgington [this message]
2015-02-14 11:52 ` Babel blocks get unindented when making changes outside the blocks Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMsBe8qF6DdD8epTd-yYmdYEnR9=9GNNbi9jFU-2ZGfNy2ZdGw@mail.gmail.com' \
    --to=edgimar@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).