From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert Krewinkel Subject: Re: bug: in source block, titles are not seen as source Date: Wed, 28 May 2014 09:02:32 +0200 Message-ID: <87wqd675dj.fsf@caffelatte.moltkeplatz.de> References: <87lhtm7d7s.fsf@treetowl.lan> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpXsu-00015Z-Gn for emacs-orgmode@gnu.org; Wed, 28 May 2014 03:02:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpXsj-0005vN-CP for emacs-orgmode@gnu.org; Wed, 28 May 2014 03:02:48 -0400 Received: from moltkeplatz.de ([85.214.95.47]:34798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpXsj-0005vH-3K for emacs-orgmode@gnu.org; Wed, 28 May 2014 03:02:37 -0400 In-Reply-To: <87lhtm7d7s.fsf@treetowl.lan> (Ian Kelling's message of "Tue, 27 May 2014 21:13:11 -0700") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ian Kelling Cc: emacs-orgmode@gnu.org Hi Ian, Ian Kelling writes: > I've had this bug me a few times when I work with here documents in bash. > > #+begin_src sh > some-command <<'EOF' > * some text > EOF > #+end_src > > the line beginning with * is treated as a title and folded. The same > goes for example blocks, and perhaps other things. You can escape leading stars by putting a comma in front of them: #+begin_src sh cat <<'EOF' ,* some text EOF #+end_src This should do what you want. HTH, Albert -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124