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:37:50 -0500 Message-ID: References: <713BB3F4-0E39-4C67-B76E-18826CE39D3F@utexas.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008f1ac60581e0a2c1" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:47089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guNlm-0002AR-Fu for emacs-orgmode@gnu.org; Thu, 14 Feb 2019 15:38:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guNll-0004aB-Ag for emacs-orgmode@gnu.org; Thu, 14 Feb 2019 15:38:06 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:54880) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1guNlk-0004XL-Sf for emacs-orgmode@gnu.org; Thu, 14 Feb 2019 15:38:05 -0500 Received: by mail-wm1-x32c.google.com with SMTP id a62so7767556wmh.4 for ; Thu, 14 Feb 2019 12:38:04 -0800 (PST) In-Reply-To: <713BB3F4-0E39-4C67-B76E-18826CE39D3F@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 --0000000000008f1ac60581e0a2c1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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 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 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 th= e > 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 headli= ne > * 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, o= r example blocks, > they shouldn=E2=80=99t be considered org headlines. In addition, the bloc= ks 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 seei= ng this? > Please let me know if I can provide any further information! > > Best, > > Galen > --0000000000008f1ac60581e0a2c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
you can escape those by putting a , in fr= ont of them. You may have to type 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 an= d =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 front of them.

John
-----------------------------------
Professor John Kitchin=C2=A0Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mell= on University
Pittsburgh, PA 15213
412-268-7803
=


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

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

--0000000000008f1ac60581e0a2c1--