emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Max Mikhanosha <max@openchat.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: BUG: blank lines when cutting and pasting
Date: Wed, 16 Jan 2008 11:05:14 +0100	[thread overview]
Message-ID: <9ECC99FB-D14A-4BEA-8705-B335D724CE52@gmail.com> (raw)
In-Reply-To: <878x2zaspn.wl%max@openchat.com>

Hi Max

maybe you have sen the recent thread about the behavior of whitespace
when moving outline subtrees through the file.  It was my impression
that the conclusion was that the whitespace *before* the tree should
be moved with the tree.  Therefore I modified the cut and past of
subtrees to do just that.  I do agree that this feels a bit odd in
interactive use, and I certainly could make this configurable or so.

The alternative is that you develop the habit to move the cursor to the
first empty line after the subtree where you want to paste, not to
the beginning of the subtree before you want to paste.

This is an issue difficult to handle right.  I am inviting more  
contributions
to this discussion!

- Carsten

On Jan 9, 2008, at 5:07 PM, Max Mikhanosha wrote:

> Given the following top level heading
>
>
> * test
> ** one
> *** one.one
>
> some text
>
> ** two
> *** two.two
>
> some text
>
> ** three
> *** three.three
>
> some text
>
>
> If one goes to the beginning of heading ** two and use C-M-w to cut
> the heading, the cut buffer starts with "\n\n** two", ie contains two
> extra blank lines before the actual start of the heading.  It does
> not matter if children are expanded or not.
>
> If you paste that heading with C-M-y the extra blank line is inserted
> before the heading.
>
> IMHO if user cuts a heading, cut buffer should contain the text
> starting with asterisk, without any extra new lines.
>
> Regards,
>  Max
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2008-01-16 10:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-09 16:07 BUG: blank lines when cutting and pasting Max Mikhanosha
2008-01-16 10:05 ` Carsten Dominik [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=9ECC99FB-D14A-4BEA-8705-B335D724CE52@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=max@openchat.com \
    /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).