From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: copy/paste headlines from org-indent-mode to text mode: invisible stars remain invisible Date: Thu, 29 Nov 2018 20:22:26 +0100 Message-ID: <87d0qnr8nh.fsf@nicolasgoaziou.fr> References: <23551.61668.270481.690148@frac.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSRsb-0007zT-Vy for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 14:21:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSRsY-0008IH-S6 for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 14:21:41 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:51327) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSRsY-0008Dm-Kp for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 14:21:38 -0500 In-Reply-To: <23551.61668.270481.690148@frac.u-strasbg.fr> (Alain Cochard's message of "Thu, 29 Nov 2018 15:00:04 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Alain.Cochard@unistra.fr Cc: emacs-orgmode@gnu.org 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