emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* copy/paste headlines from org-indent-mode to text mode: invisible stars remain invisible
@ 2018-11-29 14:00 Alain.Cochard
  2018-11-29 19:22 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Alain.Cochard @ 2018-11-29 14:00 UTC (permalink / raw)
  To: emacs-orgmode



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.   

Regards

-- 
EOST (École et Observatoire des Sciences de la Terre) 
IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr
5 rue René Descartes   [bureau 106] | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France    | Fax:   +33 (0)3 68 85 01 25     

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

* Re: copy/paste headlines from org-indent-mode to text mode: invisible stars remain invisible
  2018-11-29 14:00 copy/paste headlines from org-indent-mode to text mode: invisible stars remain invisible Alain.Cochard
@ 2018-11-29 19:22 ` Nicolas Goaziou
  2018-11-29 20:14   ` Alain.Cochard
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2018-11-29 19:22 UTC (permalink / raw)
  To: Alain.Cochard; +Cc: emacs-orgmode

Hello,

Alain.Cochard@unistra.fr 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

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

* Re: copy/paste headlines from org-indent-mode to text mode: invisible stars remain invisible
  2018-11-29 19:22 ` Nicolas Goaziou
@ 2018-11-29 20:14   ` Alain.Cochard
  0 siblings, 0 replies; 3+ messages in thread
From: Alain.Cochard @ 2018-11-29 20:14 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode, Alain.Cochard


 > You may want to add `face' to `yank-excluded-properties'.

Great.  Thanks a lot.
-- 
EOST (École et Observatoire des Sciences de la Terre) 
IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr
5 rue René Descartes   [bureau 106] | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France    | Fax:   +33 (0)3 68 85 01 25     

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

end of thread, other threads:[~2018-11-29 20:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-29 14:00 copy/paste headlines from org-indent-mode to text mode: invisible stars remain invisible Alain.Cochard
2018-11-29 19:22 ` Nicolas Goaziou
2018-11-29 20:14   ` Alain.Cochard

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).