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: Tue, 31 Mar 2015 21:52:58 +0200 Message-ID: <551AFB1A.9020504@free.fr> References: <5166F4B8-A141-4968-B10E-4C25BDA72F5C@uvm.edu> <55186527.2080302@free.fr> <87wq1y35yn.fsf@alphaville.usersys.redhat.com> <5519A9D2.8020502@free.fr> <87mw2tzdhr.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd2Df-000831-W3 for emacs-orgmode@gnu.org; Tue, 31 Mar 2015 15:53:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yd2Dc-00075r-Ko for emacs-orgmode@gnu.org; Tue, 31 Mar 2015 15:53:03 -0400 Received: from smtp5-g21.free.fr ([212.27.42.5]:35991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd2Dc-00075g-Ey for emacs-orgmode@gnu.org; Tue, 31 Mar 2015 15:53:00 -0400 Received: from [IPv6:2a01:e35:2e21:def0:c96e:d335:a9ef:c38a] (unknown [IPv6:2a01:e35:2e21:def0:c96e:d335:a9ef:c38a]) by smtp5-g21.free.fr (Postfix) with ESMTP id 86835D48087 for ; Tue, 31 Mar 2015 21:51:09 +0200 (CEST) In-Reply-To: <87mw2tzdhr.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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Le 31/03/2015 12:07, Nicolas Goaziou a =E9crit : > >> IMO, it would be better than the current situation, but I wonder if >> it makes sense to have a global default setting containing the >> three files, but one which the user can customize; any :includes >> parameters would augment the default. >> >> That would satisfy the OP's requirements, but would also allow for >> a shorter #+BEGIN_SRC line. > I think this suggestion makes sense. While you're at it, would you mind > implementing it? > > Well, actually the global default setting feature may already be availabl= e 1) through properties in drawers 2) through the org-babel-default-header-args global variable * Property in drawer :PROPERTIES: :includes: :END: Any C++ babel block below this tree will inherit the and #includes * The org-babel-default-header-argsvariable This variable holds global defaults. For C++ do something like that: (add-to-list 'org-babel-default-header-args '(:includes "" "")) Any babel C++ block anywhere will inherit from the global variable. Nick, are those the kinds of settings you were thinking about? The "augment" feature may be missing though: local :includes overwrite global ones. Thierry