From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: problem with example block and headings Date: Mon, 12 Oct 2009 15:09:31 +0200 Message-ID: <688BFE44-6F6D-4EE7-8659-D7C3825B5A53@gmail.com> References: <87vdikyjmr.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxKej-0002QT-6I for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 09:09:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxKee-0002N7-QZ for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 09:09:40 -0400 Received: from [199.232.76.173] (port=34066 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxKee-0002N4-Jh for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 09:09:36 -0400 Received: from mail-ew0-f228.google.com ([209.85.219.228]:37500) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxKee-00021t-6O for emacs-orgmode@gnu.org; Mon, 12 Oct 2009 09:09:36 -0400 Received: by ewy28 with SMTP id 28so16088796ewy.42 for ; Mon, 12 Oct 2009 06:09:35 -0700 (PDT) In-Reply-To: <87vdikyjmr.wl%ucecesf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: emacs-orgmode@gnu.org Hi Eric, please move the cursor into the example block and press "C-c '" (that is C-c followed by the single quote. This will get you into a special editing buffer for this snippet. When you exit by pressing the same keys again, you will see what Org does to quote such headlines. Also, you might enjoy your example even better if you use #+begin_src org instead of #+begin_example HTH - Carsten On Oct 12, 2009, at 12:46 PM, Eric S Fraga wrote: > Hello, > > This is not a critical problem but I thought I would highlight it. > > If you have an example block which includes lines that look like > org-mode headings, the show/collapse commands get confused. The two > images attached show the erroneous behaviour for a file with these > contents: > > --8<---------------cut here---------------start------------->8--- > * example blocks > The following is an example of the contents of a simple org-mode > file: > #+begin_example problem with org interpretation of contents > This is an example of a simple org-mode file > * The main heading > ** A sub-heading > ** another sub-heading > - a list > - second entry > #+end_example > That example shows the hierarchical structure and the use of > lists. > ** Further text here > This is more text that is in a sub-section > --8<---------------cut here---------------end--------------->8--- > > Although a contrived example, this arose from my use of org-babel-sh > and having output generated that happened to have lines starting with > '* '. > > Note also the indentation of the line immediately after the end of the > example. > > thanks, > eric > > < > expanded > .jpg>_______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten