From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [babel] Purpose of :results raw Date: Sat, 20 Apr 2013 09:14:53 +0200 Message-ID: <868v4d3c7m.fsf@somewhere.org> References: <86txn2i312.fsf@somewhere.org> <878v4ep362.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello Nicolas, Nicolas Goaziou wrote: > "Sebastien Vauban" writes: > >> Now that ":results drawer" has been introduced, I wonder why we still have >> ":results raw". >> >> As once stated in this ML: >> >> The sole purpose of raw results is to allow inserting an headline (I >> mean a real headline, not comma protected) in the buffer, because >> headlines cannot be contained in anything else than headlines. >> >> But drawer does the same. > > What makes you think drawers do the same? The fact that the following output a normally behaving headline[1], AFAICS. --8<---------------cut here---------------start------------->8--- #+begin_src sh :results drawer :exports both echo "* Unescaped headline" #+end_src #+results: :RESULTS: * Unescaped headline :END: --8<---------------cut here---------------end--------------->8--- Though, effectively, when exported, it's not right: --8<---------------cut here---------------start------------->8--- \lstset{language=sh,numbers=none} \begin{lstlisting} echo "* Unescaped headline" \end{lstlisting} :RESULTS: \section*{Unescaped headline} \label{sec-7} :END: --8<---------------cut here---------------end--------------->8--- as ":RESULTS:" and ":END:" words aren't removed from the export. > Drawers cannot contain headlines. Do you mean it, because of the wrong export? By wrong, I don't mean "buggy", but "not foreseen as I (= me) thought". Best regards, Seb [1] Correct face used in the Org buffer, correct folding when TAB'ing, etc. -- Sebastien Vauban