emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] org-yank in stars corrupts outline
@ 2021-02-27  0:52 Samuel Wales
  2021-02-27  0:54 ` Samuel Wales
  2021-02-27 11:55 ` Maxim Nikulin
  0 siblings, 2 replies; 3+ messages in thread
From: Samuel Wales @ 2021-02-27  0:52 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [bug] org-yank in stars corrupts outline
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Samuel Wales @ 2021-02-27  0:54 UTC (permalink / raw)
  To: emacs-orgmode

*** 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 <samologist@gmail.com> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [bug] org-yank in stars corrupts outline
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Maxim Nikulin @ 2021-02-27 11:55 UTC (permalink / raw)
  To: emacs-orgmode

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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-27 11:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this 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).