[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] copy/paste headlines from org-indent-mode to text mode: invisibl
From: |
Nicolas Goaziou |
Subject: |
Re: [O] copy/paste headlines from org-indent-mode to text mode: invisible stars remain invisible |
Date: |
Thu, 29 Nov 2018 20:22:26 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
address@hidden writes:
> Hello. When performing copy/paste (even with org-copy-visible) from
> org buffers with org-indent-mode turned on to buffers running, e.g.,
> fundamental or text modes, leading stars of the headlines are still
> invisible (until the file is saved and visited again).
>
> Insertions within this invisible region (minus the 1st character, plus
> the visible star) remain invisible. In the case of a level 2
> headline, one might end up with a situation like this:
>
> text already there * headline title
>
> after which, if the cursor is put on the star, insertions just results
> in everything after (and including) the star being shifted rightward
> -- very funny.
>
> In retrospect this makes some sense to me, but, as the initial shock
> was quite intense during a few seconds, I report it in case it is not
> completely normal -- besides this does not occur if the target buffer
> is running, e.g., python or matlab or fortran modes.
You may want to add `face' to `yank-excluded-properties'.
Regards,
--
Nicolas Goaziou