From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Export (sometimes) skips sections without preceding blank line Date: Sat, 25 Nov 2017 18:44:22 +0100 Message-ID: References: <87zi7atqui.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIeVC-000276-Sb for emacs-orgmode@gnu.org; Sat, 25 Nov 2017 12:44:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIeV8-0008Ub-DM for emacs-orgmode@gnu.org; Sat, 25 Nov 2017 12:44:30 -0500 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:40284) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eIeV8-0008UO-55 for emacs-orgmode@gnu.org; Sat, 25 Nov 2017 12:44:26 -0500 Received: by mail-lf0-x234.google.com with SMTP id d10so17402067lfj.7 for ; Sat, 25 Nov 2017 09:44:25 -0800 (PST) In-reply-to: <87zi7atqui.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Org Mode Hi Nicolas, I'm not sure we ran the same test. The version I thought I posted and that I see in GMail, my mu4e sent-mail, and the mailing list archives on gmane does not have an empty line between "#+END_SRC" and "#+RESULTS:". The version you replied to appears to have a blank line I did not post. On 2017-11-25 at 13:44, Nicolas Goaziou wrote: >> * Skipping Exports >> ** One :noexport: >> >> #+BEGIN_SRC sh :results verbatim :eval no-export >> echo "hello, world" >> #+END_SRC >> >> #+RESULTS: >> : hello, world >> ** Two >> Good bye cruel world >> If I run your version it does work. I need a blank line either before "#+RESULTS:" or before "** Two". Or as previously stated no RESULTS section and no blank line also works. I'm testing this with the following MWE: 1) Launching Emacs -Q with this: open -n -a EmacsMac.app --args --debug-init -Q --eval="(add-to-list 'load-path \"~/.emacs.d/elpa/org-20171120\")" 2) Visiting test.org which contains this: #+BEGIN_SRC emacs-lisp :results value (org-version nil t) #+END_SRC #+RESULTS: : Org mode version 9.1.3 (9.1.3-2-g322612-elpa @ /Users/kdm/.emacs.d/elpa/org-20171120/) * Skipping Exports ** One :noexport: #+BEGIN_SRC sh :results verbatim :eval no-export echo "hello, world" #+END_SRC #+RESULTS: : hello, world ** Two Good bye cruel world 3) Exporting via C-e l L to a LaTeX buffer which contains the header plus this: \begin{document} \tableofcontents \begin{verbatim} (org-version nil t) \end{verbatim} \section{Skipping Exports} \label{sec:orge984613} \end{document}