emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Empty lines in subtrees (was: [bug] misbehavior of org-shiftmetaup)
Date: Fri, 13 Apr 2007 10:50:26 +0100	[thread overview]
Message-ID: <m24pnkk3h9.fsf@sl392.st-edmunds.cam.ac.uk> (raw)
In-Reply-To: m21wipriaq.fsf@sl392.st-edmunds.cam.ac.uk

----- Me (2007-04-12) wrote:-----

> Dear Carsten,
>
> I think this bug has been there for quite some time as it is also in
> 4.67c.
>
> To reproduce:
>    o  Open the attached file and set it in org-mode
>    o  Go to "* Heading 1" and issue 'C-x n s'
>    o  Move cursor to subtree: "** Item 2"
>    o  M-x org-shiftmetaup
[...]

This bug is now fixed in org 4.71.

However, it will now add an empty line to the subtree, and then bring
all empty lines along when org-shiftmetaup. So after shuffling a few
times, users can be left with:

,----
| * Heading 1
| ** Item 1
|    Read this book.
| ** Item 2
|    Go to supermarket and get a printer
| 
| 
| 
| 
| * Heading 2
`----

I guess this is because:

When narrowing to subtree, the "newline" at the end of the last subtree
is left out and thus org-shiftmetaup introduce another one.

Regards,
-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

      reply	other threads:[~2007-04-13  9:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-12 10:36 [bug] misbehavior of org-shiftmetaup Leo
2007-04-13  9:50 ` Leo [this message]

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=m24pnkk3h9.fsf@sl392.st-edmunds.cam.ac.uk \
    --to=sdl.web@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).