Bastien <b...@gnu.org> writes: > Brandon Guttersohn <bran...@guttersohn.org> writes: > >> So this patch is sort of a >> new feature, but a trivial one. > > Agreed. Could you or Kevin propose a sentence to advertise this small > enhancement in etc/ORG-NEWS?
Here goes nothing.
>From b18f6dc66ea4a05c95a4ee6825723da4beaa1c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Le=20Gouguec?= <kevin.legoug...@gmail.com> Date: Mon, 1 Jun 2020 21:33:01 +0200 Subject: [PATCH] * etc/ORG-NEWS: Announce a recent fix in ob-C.el. --- etc/ORG-NEWS | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index c0df785d4..d3f2bb1ca 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -202,6 +202,12 @@ Org provides a new tool ~org-link-open-as-file~, useful when defining new link types similar to "file"-type links. See docstring for details. +*** =ob-C.el= allows you to include non-system header files + +In C and C++ blocks, ~:includes~ arguments that do not start with a +~<~ character will now be formatted as double-quoted ~#include~ +statements. + *** =ob-clojure.el= supports inf-clojure.el and ClojureScript evaluation You can now set ~(setq org-babel-clojure-backend 'inf-clojure)~ and -- 2.26.2
Note that IIUC, for non-system includes to work, either - the filenames must be absolute, or - the compiler must be given -I arguments through org-babel-C-compiler. This variable can be set (e.g. to "gcc -I .") with file or directory-local variables. Should we promote this method in NEWS? A downside is that the user will be warned about the variable's value being potentially unsafe, and we can't really avoid that unless we throw a blanket :safe #'stringp on this defcustom.