emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Maxim Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [bug] org-yank in stars corrupts outline
Date: Sat, 27 Feb 2021 18:55:54 +0700	[thread overview]
Message-ID: <s1dc0b$udf$1@ciao.gmane.io> (raw)
In-Reply-To: <CAJcAo8uF=JrtYWfe2HCPpgXcbD5kbGT78wtn67zXB8V_-SGWpg@mail.gmail.com>

On 27/02/2021 07:52, Samuel Wales wrote:
> 
> i have org-yank-adjusted-subtrees t
> 
> * org-yank is funny
> *** kill this line (with newline) then try yanking at ^ places (remove
> the ^ first)
> the fault lies in the stars
> insertion above and arbitrary demotion
> *** x
> asdfnaksdj fnkadsn fkjans df
> ^a^sdkfjnaksdfn kajsndfk ajdnsf
> askdjfkasjdn fkajfdns
> *^*^* y
> *** [[https://go^ogle.com]]

from [[help:org-yank]]

> If it passes the test, and if the
> cursor is at the beginning of a line or after the stars of a currently
> empty headline, then the yank is handled specially.  How exactly depends
> on the value of the following variables.

In my opinion, your "^" marks do not satisfy the specified criteria.

Personally I use [[help:org-paste-subtree]] C-c C-x C-y directly. It has 
a minor issue however. First time after emacs start it refuses to yank 
subtree from X clipboard (prepared externally). Regular paste with undo 
C-y C-/ is enough to convince the function that there is a subtree in 
the clipboard. Next time it works without such dance.




      parent reply	other threads:[~2021-02-27 11:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-27  0:52 [bug] org-yank in stars corrupts outline Samuel Wales
2021-02-27  0:54 ` Samuel Wales
2021-02-27 11:55 ` Maxim Nikulin [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='s1dc0b$udf$1@ciao.gmane.io' \
    --to=manikulin@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).