From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CORqDXhi1V5bQQAA0tVLHw (envelope-from ) for ; Mon, 01 Jun 2020 20:18:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yBRMCXhi1V5TUAAAB5/wlQ (envelope-from ) for ; Mon, 01 Jun 2020 20:18:00 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 657D994030A for ; Mon, 1 Jun 2020 20:17:59 +0000 (UTC) Received: from localhost ([::1]:45568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfqse-00059z-Hj for larch@yhetil.org; Mon, 01 Jun 2020 16:17:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfqrx-0004r6-0W for emacs-orgmode@gnu.org; Mon, 01 Jun 2020 16:17:13 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:34259) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jfqrv-0003AF-CU; Mon, 01 Jun 2020 16:17:12 -0400 Received: by mail-wr1-x42b.google.com with SMTP id r7so1137446wro.1; Mon, 01 Jun 2020 13:17:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=OKKkPNQt9S3NtCZ9wgQGQLReXxcwwY/QaPSPj2kPwEc=; b=hKxLwtTlljbf6znB2N+2qOVieHgOCkNqcJKMhP2/WenS4sl0BiQEgD/nTVhXv9w8Mb 60rH/PE6vT7aBZ44WkQvC2PfZeCbiIz6HgiGr830suy7MKYGQJ8/8dxvsIEJhB91JgAL eRErdvxKR4CvVcLjRhABI5YN0GT9WLeW5rIxESIBcxBla0YTk+dSP9UV6u4ZGlGKente 4gALC+hnAD8hmw6dPtlP1qv8czEW3ycTb3LV1fvlzNfxDUHIOUE3dCIy+icPdlXy+2Xo wsL01Hpq2qOkUj2BX8Ky4kadizvhGsTmizxaGaeMnsK35Nr5eo7KD/mEa6JWuWZGaPBv JVEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=OKKkPNQt9S3NtCZ9wgQGQLReXxcwwY/QaPSPj2kPwEc=; b=KrsaOzQI3sbEfG5XXDaUJ0kCnpWGspd+O1R/TMzPAcb0CRGjX9QJvI8QOeeLPSZKAq o8nPKlujYeOS19S2ZqMZMA9rhy5YNLSKBFcT5KvEwQ5wOhsbAiZLARiEHrF+vaV/6po7 zs6isYt8Nlos+pRC4IfHGu/fA5XmD+O2jcJqQeSdGH8bUlgKpYmqztdtEirhciyuNi7R BSrLe0zXpAsw3pl1k0RTYsWoKlVzzUeMzA8XZUprYCGYoyqH/l5Fg68ZIOVmC97GEfpQ d2RDN7FCKomODNtonHV+uKL5fBrphHDOfe9EPHSgQNaLONlU5P+53BS4uYUmf552bvER El1A== X-Gm-Message-State: AOAM5310mb/I7vc5wyf1Z/caWBpPSQuh1ez+cMGG6OupIVKWQ24YOwW4 AY0vW0s7gktWjAOTtXbVsYt0fBYqQSk= X-Google-Smtp-Source: ABdhPJwDQ3tzMrjk8evcBN4LpTQPImVfBt1diSeChVgDAAo+UK+NNsjDF5RXqK9LokXypbBEPfQWlg== X-Received: by 2002:a05:6000:1192:: with SMTP id g18mr24460550wrx.326.1591042629104; Mon, 01 Jun 2020 13:17:09 -0700 (PDT) Received: from my-little-tumbleweed (200.143.13.109.rev.sfr.net. [109.13.143.200]) by smtp.gmail.com with ESMTPSA id b8sm745743wrs.36.2020.06.01.13.17.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 13:17:08 -0700 (PDT) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: Bastien Subject: Re: Possible fix for :includes header argument in org-babel C source blocks References: <21b0cd85-d678-2fe6-3c22-e41abc6cf242@guttersohn.org> <87wo51jo5w.fsf@gnu.org> <875zchyq7y.fsf@gmail.com> <87imggx045.fsf@kyleam.com> <875zcgwjo7.fsf@gmail.com> <87blm8v09s.fsf@gmail.com> <87tuzzukqe.fsf@gmail.com> <1821ea63-9168-bc02-377a-5429cbbf2f7c@guttersohn.org> <877dwqzy8l.fsf@bzg.fr> Date: Mon, 01 Jun 2020 22:17:07 +0200 In-Reply-To: <877dwqzy8l.fsf@bzg.fr> (Bastien's message of "Mon, 01 Jun 2020 15:55:54 +0200") Message-ID: <87pnaiwngc.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=kevin.legouguec@gmail.com; helo=mail-wr1-x42b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Brandon Guttersohn , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=hKxLwtTl; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.21 X-TUID: 6hpmZ/diQcJV --=-=-= Content-Type: text/plain Bastien writes: > Brandon Guttersohn 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. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-etc-ORG-NEWS-Announce-a-recent-fix-in-ob-C.el.patch >From b18f6dc66ea4a05c95a4ee6825723da4beaa1c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Le=20Gouguec?= 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 --=-=-= Content-Type: text/plain 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. --=-=-=--