From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Source blocks confused by Org syntax Date: Thu, 14 Feb 2019 15:57:04 -0500 Message-ID: References: <713BB3F4-0E39-4C67-B76E-18826CE39D3F@utexas.edu> <56A99DA2-9E21-4B65-AF3E-4344D8D1C9A8@utexas.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003e451a0581e0e73a" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guOC3-0005wh-S1 for emacs-orgmode@gnu.org; Thu, 14 Feb 2019 16:05:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guO4Z-0000kQ-Kc for emacs-orgmode@gnu.org; Thu, 14 Feb 2019 15:57:33 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:46536) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1guO4X-0008Gj-CT for emacs-orgmode@gnu.org; Thu, 14 Feb 2019 15:57:29 -0500 Received: by mail-wr1-x432.google.com with SMTP id l9so7997721wrt.13 for ; Thu, 14 Feb 2019 12:57:16 -0800 (PST) In-Reply-To: <56A99DA2-9E21-4B65-AF3E-4344D8D1C9A8@utexas.edu> 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: Galen Menzel Cc: Org Mode List --0000000000003e451a0581e0e73a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That is considered the proper way to do it as far as I know. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Thu, Feb 14, 2019 at 3:55 PM Galen Menzel wrote: > Ah, thanks =E2=80=94 using C-c ' is a functional work around for most of = my needs. > > Still, is there no way to create a proper verbatim text block in org? > > Galen > > On 14 Feb 2019, at 12:37, John Kitchin wrote: > > you can escape those by putting a , in front of them. You may have to typ= e > C-q , to get it put in if you see strange messages about user-error: > Priority must be between =E2=80=98A=E2=80=99 and =E2=80=98C=E2=80=99. > > In fact org-mode will do that for you if you are in special edit mode whe= n > you exit it. You may not be able to use C-c ' to get into this mode thoug= h > with the * in the block until you put , in front of them. > > John > > ----------------------------------- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > > > > On Thu, Feb 14, 2019 at 3:15 PM Galen Menzel > wrote: > >> Hi all, >> >> I=E2=80=99m finding that org source blocks are getting confused if their= text >> contains org syntax. For example, in the text below, org considers all t= he >> lines beginning with asterisks in the text below to be org headers, and >> will fold them accordingly: >> >> #+BEGIN_SRC text >> This source block folds just fine >> #+END_SRC >> >> #+BEGIN_SRC text >> This source block doesn't fold properly because it contains an org headl= ine >> * See? >> #+END_SRC >> >> #+BEGIN_SRC emacs-lisp >> (surely this problem doesnt apply in emacs-lisp mode) >> * Does it? >> ** Sadly it does >> #+END_SRC >> >> #+BEGIN_QUOTE >> The problem also pertains to quotes >> * as you can see >> #+END_QUOTE >> >> #+BEGIN_EXAMPLE >> And examples are no exception >> * As you can see again >> #+END_EXAMPLE >> >> Since all these =E2=80=9Cheadlines=E2=80=9D occur inside source, quote, = or example >> blocks, they shouldn=E2=80=99t be considered org headlines. In addition,= the blocks >> that contain lines beginning with asterisks won=E2=80=99t fold properly. >> >> I=E2=80=99m seeing this behavior in both 9.2.1 and 9.1.9. Are others see= ing this? >> Please let me know if I can provide any further information! >> >> Best, >> >> Galen >> > --0000000000003e451a0581e0e73a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That is considered the proper way to do it as far as I kno= w.

Joh= n

-----------------------------------
Professor John Kitchin=C2= =A0
Doherty Hall A207F
Department of Chemical Engineering
Carnegie= Mellon University
Pittsburgh, PA 15213
412-268-7803
=


On Thu, Feb 14, 2019 at 3:55 PM Galen Menzel <galen.menzel@utexas.edu> wrot= e:

Ah, tha= nks =E2=80=94=C2=A0using C-c ' is a functional work around for most of = my needs.

Still, is there no way to create a proper verbatim text blo= ck in org?

Galen

On 14 Feb 2019, at 12:37, John Kitchin wrote:

=
you can escape those by putting a , in front of them. You = may have to type C-q , to get it put in if you see strange messages about u= ser-error: Priority must be between =E2=80=98A=E2=80=99 and =E2=80=98C=E2= =80=99.

In fact org-mode will do that for you if you are= in special edit mode when you exit it. You may not be able to use C-c '= ; to get into this mode though with the * in the block until you put , in f= ront of them.

John

-----------------------------------
Professor John Kit= chin=C2=A0
Doherty Hall A207F
Department of Chemical Engineering
C= arnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

=


On Thu, Feb 14, 2019 at 3:15 PM Galen Men= zel <galen.= menzel@utexas.edu> wrote:

Hi all,

I=E2=80=99m finding that org source blocks are getting conf= used if their text contains org syntax. For example, in the text below, org= considers all the lines beginning with asterisks in the text below to be o= rg headers, and will fold them accordingly:

#+BEGIN_SRC text
This source block folds just fine
#+END_SRC

#+BEGIN_SRC text
This source block doesn't fold properly because it contains an org head=
line
* See?
#+END_SRC

#+BEGIN_SRC emacs-lisp
(surely this problem doesnt apply in emacs-lisp mode)
* Does it?
** Sadly it does
 #+END_SRC

 #+BEGIN_QUOTE
 The problem also pertains to quotes
* as you can see
#+END_QUOTE

#+BEGIN_EXAMPLE
And examples are no exception
* As you can see again
#+END_EXAMPLE

Since all these =E2=80=9Cheadlines=E2=80=9D occur inside so= urce, quote, or example blocks, they shouldn=E2=80=99t be considered org he= adlines. In addition, the blocks that contain lines beginning with asterisk= s won=E2=80=99t fold properly.

I=E2=80=99m seeing this behavior in both 9.2.1 and 9.1.9. A= re others seeing this? Please let me know if I can provide any further info= rmation!

Best,

Galen

--0000000000003e451a0581e0e73a--