From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Galen Menzel" Subject: Re: Source blocks confused by Org syntax Date: Thu, 14 Feb 2019 12:55:26 -0800 Message-ID: <56A99DA2-9E21-4B65-AF3E-4344D8D1C9A8@utexas.edu> References: <713BB3F4-0E39-4C67-B76E-18826CE39D3F@utexas.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_MailMate_9C368FBC-9430-492A-AECC-FCA78E16E0DC_=" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guOC5-0005yy-Sr for emacs-orgmode@gnu.org; Thu, 14 Feb 2019 16:05:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guO2z-0004ru-Ro for emacs-orgmode@gnu.org; Thu, 14 Feb 2019 15:55:56 -0500 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:35413) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1guO2l-0004MQ-Jq for emacs-orgmode@gnu.org; Thu, 14 Feb 2019 15:55:44 -0500 Received: by mail-pf1-x42b.google.com with SMTP id z15so3703926pfa.2 for ; Thu, 14 Feb 2019 12:55:30 -0800 (PST) In-Reply-To: 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: John Kitchin Cc: Org Mode List --=_MailMate_9C368FBC-9430-492A-AECC-FCA78E16E0DC_= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Ah, thanks — 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 > type C-q , to get it put in if you see strange messages about > user-error: > Priority must be between ‘A’ and ‘C’. > > 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’m finding that org source blocks are getting confused 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 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 >> headline >> * 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 “headlines” occur inside source, quote, or >> example blocks, >> they shouldn’t be considered org headlines. In addition, the blocks >> that >> contain lines beginning with asterisks won’t fold properly. >> >> I’m seeing this behavior in both 9.2.1 and 9.1.9. Are others seeing >> this? >> Please let me know if I can provide any further information! >> >> Best, >> >> Galen >> --=_MailMate_9C368FBC-9430-492A-AECC-FCA78E16E0DC_= Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Ah, thanks =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 b= lock 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 user-error: Priority m= ust 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 mo= de when you exit it. You may not be able to use C-c ' to get into thi= s mode though with the * in the block until you put , in front of them.

John

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

=

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

Hi all,

I=E2=80=99m finding that org source blocks are getting co= nfused if their text contains org syntax. For example, in the text below,= org considers all the lines beginning with asterisks in the text below t= o 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 he=
adline
* 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 or= g headlines. In addition, the blocks that contain lines beginning with as= terisks won=E2=80=99t fold properly.

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

Best,

Galen

--=_MailMate_9C368FBC-9430-492A-AECC-FCA78E16E0DC_=--