Consider an org mode buffer with this content:

    * A
    * B
    # Local Variables:
    # fill-column: 120
    # End:
    * C

Then, when point is at C, and when doing M-<up>, I would expect Org to move C
up above B. What I see instead is that B is moved higher than A.

This can be very confusing, especially if C and B are far apart. Imagine many
more headings after C and doing M-<up> to move W above V. Then B will still be
moved above A, in a very different part of the buffer than point.

Local Variables should exist at the end of a file (I believe they should be in
the last page, which in this case they are), so this might be intended / not a
bug. However, this example is rather easy to replicate. Given a buffer with
this contents:

    * A
    * B
    # Local Variables:
    # fill-column: 120
    # End:

and when doing C-<return> when point is at B, a new heading will be created 
after the Local Variables.

Reply via email to