emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Maus <dmaus@ictsoc.de>
To: Detlef Steuer <detlef.steuer@gmx.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug] killing and yanking _sometimes_ doesn`t indent correctly
Date: Wed, 10 Aug 2011 18:43:57 +0200	[thread overview]
Message-ID: <87bovxp67m.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <20110809161926.1a4bee2d@vknecht-intel.unibw-hamburg.de>

[-- Attachment #1: Type: text/plain, Size: 1465 bytes --]

Hi Detlef,

At Tue, 9 Aug 2011 16:19:26 +0200,
Detlef Steuer wrote:
>
> Hi!
>
> Using the following files I can reproduced a bug I encountered.
>
> [...]

Thanks for reporting. I pushed a fix for both problems, the wrong
level and eating the existing headline.

However:
> Should be
>
> ---
> ** Subheading 1
> *** TODO first
>
> ** Subheading 2
> ---

No, it should be:

** Subheading 1
** TODO first
** Subheading 2

C-h f org-paste-subtree RET

,----
| org-paste-subtree is an interactive Lisp function in `org.el'.
|
| (org-paste-subtree &optional LEVEL TREE FOR-YANK)
|
| Paste the clipboard as a subtree, with modification of headline level.
| The entire subtree is promoted or demoted in order to match a new headline
| level.
|
| If the cursor is at the beginning of a headline, the same level as
| that headline is used to paste the tree
|
| If not, the new level is derived from the *visible* headings
| before and after the insertion point, and taken to be the inferior headline
| level of the two.  So if the previous visible heading is level 3 and the
| next is level 4 (or vice versa), level 4 will be used for insertion.
| This makes sure that the subtree remains an independent subtree and does
| not swallow low level entries.
`----

To get level 3 you can call paste with numeric prefix of 3 or indicate
the desired level with three stars.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #2: Type: application/pgp-signature, Size: 230 bytes --]

  reply	other threads:[~2011-08-10 16:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-09 14:19 [bug] killing and yanking _sometimes_ doesn`t indent correctly Detlef Steuer
2011-08-10 16:43 ` David Maus [this message]
2011-08-10 19:08   ` Detlef Steuer

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=87bovxp67m.wl%dmaus@ictsoc.de \
    --to=dmaus@ictsoc.de \
    --cc=detlef.steuer@gmx.de \
    --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).