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

2021-02-27 Thread Maxim Nikulin

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.






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

2021-02-26 Thread Samuel Wales
*** kill any header (with newline) then try yanking in various places
in the stars of any indented header that has things above it.  you
should get multiple demotions that do not conform to outline.

On 2/26/21, Samuel Wales  wrote:
> it is neither raw yank behavior nor org syntax
>
> in recent maint
>
> 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]]
>


-- 
The Kafka Pandemic

Please learn what misopathy is.
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html



[bug] org-yank in stars corrupts outline

2021-02-26 Thread Samuel Wales
it is neither raw yank behavior nor org syntax

in recent maint

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]]