From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Banel Subject: Re: Bug: Proposed new version of ob-C.el [8.3beta (release_8.3beta-944-g830cf3 @ /Users/snapp/.emacs.d/vendor/org/)] Date: Sun, 29 Mar 2015 22:48:39 +0200 Message-ID: <55186527.2080302@free.fr> References: <5166F4B8-A141-4968-B10E-4C25BDA72F5C@uvm.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcK8S-0000Ob-0H for emacs-orgmode@gnu.org; Sun, 29 Mar 2015 16:48:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcK8P-0003pY-HQ for emacs-orgmode@gnu.org; Sun, 29 Mar 2015 16:48:43 -0400 Received: from smtp5-g21.free.fr ([2a01:e0c:1:1599::14]:8864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcK8P-0003p7-BA for emacs-orgmode@gnu.org; Sun, 29 Mar 2015 16:48:41 -0400 Received: from [IPv6:2a01:e35:2e21:def0:50f:5567:6918:defc] (unknown [IPv6:2a01:e35:2e21:def0:50f:5567:6918:defc]) by smtp5-g21.free.fr (Postfix) with ESMTP id 93E62D48044 for ; Sun, 29 Mar 2015 22:46:55 +0200 (CEST) In-Reply-To: <5166F4B8-A141-4968-B10E-4C25BDA72F5C@uvm.edu> 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 Hi Robert Those #includes were a proposal I did long ago. The purpose was to make short scripts even shorter with default #includes that everybody uses. Your use-case is worth considering. If this cause trouble, it is easy to remove the includes. To keep existing scripts working, an :includes parameter would be required, like this: #+BEGIN_SRC C++ :includes // C++ script #+END_SRC Does everyone agree with this change? Regards Thierry Le 25/03/2015 03:28, Robert Snapp a =C3=A9crit : > I must admit I am not a fan of the proposed changes to ob-C.el which se= em to insert > > #include > #include > #include > > during a tangle operation, without option. Currently, I am using C mode= to tangle source written in GLSL (OpenGL shading language), which is syn= tactically similar to C. However the inclusion of the three includes trig= gers an error when the tangled GLSL files are compiled by OpenGL. I would= appreciate if you either required users to specify each included header = file in the #+src_begin line, or provide an option to suppress the three = include statements described above. Alternatively, one could tangle GLSL = files with the extensions (.glsl, .vert, and .frag) like C files without = inserting any unrequested "#include" statements. > > Thank you for your consideration. > Robert Snapp > >