emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug] org-yank in stars corrupts outline


From: Maxim Nikulin
Subject: Re: [bug] org-yank in stars corrupts outline
Date: Sat, 27 Feb 2021 18:55:54 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]