From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Changing Modes and Headline Closing Date: Fri, 27 Apr 2018 08:36:57 +0100 Message-ID: <871sf1rtgm.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBxwH-0000kd-UF for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 03:37:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBxwC-0005e9-Ta for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 03:37:05 -0400 Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]:36968) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fBxwC-0005dr-Lx for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 03:37:00 -0400 Received: by mail-wr0-x232.google.com with SMTP id c14-v6so775620wrd.4 for ; Fri, 27 Apr 2018 00:37:00 -0700 (PDT) In-Reply-To: (42's message of "Tue, 27 Mar 2018 00:00:53 +0200") 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: 42 147 Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tuesday, 27 Mar 2018 at 00:00, 42 147 wrote: > Hello, > > I'm editing a large document, mostly text, that is intended for a > website -- thus html is interspersed throughout, though not enough to > justify editing the document as a dedicated .html file. [...] > Is there a way to switch back to org-mode via M-x org-mode while > preserving the state of the open / closed headlines? Can you not put the HTML within #+begin_export HTML ... #+end_export blocks and then use org-edit-special (C-c ') to edit the HTML? That will put the block in HTML mode and leaving the edit buffer (C-c ') will return you to your org file as it was when you invoked org-edit-special. =2D-=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-474-g92785f --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWuLTGQAKCRDIkZPY//z2 fbe6AJ9gHLMS/QCiArUGjt9ncDSGOIfKFgCeOlqHb9csF5DYV1LdGNxhTxb5PKw= =ZiG5 -----END PGP SIGNATURE----- --=-=-=--