From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniele Pizzolli Subject: [BUG] org-babel-tangle fails with :comments org and missing comment Date: Thu, 26 Feb 2015 15:06:34 +0100 Message-ID: <86a900kbrp.fsf@me.localhost.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQz5S-0006ce-7A for emacs-orgmode@gnu.org; Thu, 26 Feb 2015 09:06:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQz5N-000767-9T for emacs-orgmode@gnu.org; Thu, 26 Feb 2015 09:06:46 -0500 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:42499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQz5N-00073o-4F for emacs-orgmode@gnu.org; Thu, 26 Feb 2015 09:06:41 -0500 Received: from mfilter11-d.gandi.net (mfilter11-d.gandi.net [217.70.178.131]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id C2F1141C0B5 for ; Thu, 26 Feb 2015 15:06:36 +0100 (CET) Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter11-d.gandi.net (mfilter11-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id SG29XxUDdta2 for ; Thu, 26 Feb 2015 15:06:35 +0100 (CET) Received: from localhost.invalid (unknown [193.206.22.97]) (Authenticated sender: me@toel.it) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id EC1B941C078 for ; Thu, 26 Feb 2015 15:06:34 +0100 (CET) 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: emacs-orgmode@gnu.org Hello, this is the last bug report about the errors I encountered while trying to write a presentation with org-mode few days ago. Let me know if you need further info on this or previous reports. The following snippet will make M-x org-babel-tangle to fail and write a partial demo.sh because of ":comments org" and no comment between the two first source blocks. I see no reason for this failure. Maybe a warning about the missing comment is a nice to have, but a failure because of a missing comment does not make sense to me. #+PROPERTY: header-args:sh :tangle demo.sh :comments org * tangle this file to get an error Org-mode version 8.3beta (release_8.3beta-866-gc1da4d @ /home/vagrant/.emacs.d/el-get/org-mode/lisp/) Let's see the difference between two commands: #+BEGIN_SRC sh ls | wc #+END_SRC #+BEGIN_SRC sh ls | wc -l #+END_SRC comment for next block: #+BEGIN_SRC sh ls -a | wc -l #+END_SRC Thanks in advance, Daniele