From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alain.Cochard@unistra.fr Subject: copy/paste headlines from org-indent-mode to text mode: invisible stars remain invisible Date: Thu, 29 Nov 2018 15:00:04 +0100 Message-ID: <23551.61668.270481.690148@frac.u-strasbg.fr> Reply-To: alain.cochard@unistra.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSMrZ-0001XS-3I for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 09:00:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSMrT-0001XE-EV for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 09:00:16 -0500 Received: from smr1.u-strasbg.fr ([130.79.222.217]:50492 helo=mailhost.u-strasbg.fr) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSMrT-0001UO-0m for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 09:00:11 -0500 Received: from local-mr.u-strasbg.fr (lmr4.u-strasbg.fr [172.30.21.4]) by smr1.u-strasbg.fr (Postfix) with ESMTP id BF06D60A3A for ; Thu, 29 Nov 2018 15:00:05 +0100 (CET) Received: from local-mr.u-strasbg.fr (localhost [127.0.0.1]) by antivirus (Postfix) with ESMTP id 9738A92 for ; Thu, 29 Nov 2018 15:00:05 +0100 (CET) Received: from frac.u-strasbg.fr (frac.u-strasbg.fr [130.79.10.22]) (Authenticated sender: alain.cochard) by lmr4.u-strasbg.fr (Postfix) with ESMTPSA id 82204222 for ; Thu, 29 Nov 2018 15:00:04 +0100 (CET) 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: emacs-orgmode@gnu.org 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. =20 Regards --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue Ren=E9 Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44=20 F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 =20=