all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Alexandre Duret-Lutz <adl@lrde.epita.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: #+PROPERTY: header-args:C++ will not work
Date: Tue, 23 Apr 2019 10:28:01 +0200	[thread overview]
Message-ID: <871s1tw2ge.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CA+Xfj9R0HcpMkxfOL5N0P3OD9iHkM9YPSRD5bS7MWc1NJh2B4w@mail.gmail.com> (Alexandre Duret-Lutz's message of "Mon, 15 Apr 2019 16:08:55 +0200")

Hello,

Alexandre Duret-Lutz <adl@lrde.epita.fr> writes:

> On Mon, Apr 15, 2019 at 2:53 PM Alexandre Duret-Lutz <adl@lrde.epita.fr> wrote:
>> Unfortunately, this does not work for C++ blocks.
>
> I just noticed that I could change all my C++ blocks into cpp blocks and
> then use header-args:cpp without any problem.  The org-mode manual
> states that the identifier for the C++ language is "C++"
> (https://orgmode.org/manual/Languages.html) but the same page links to
> some babel documentation
> (https://orgmode.org/worg/org-contrib/babel/languages.html)
> where it is listed as "cpp".
>
> ORG-NEWS has one example using C++, but the test suite only has cpp examples.
>
> There is some hint on
> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-C.html#orgea7b004
> that using cpp might not fully work (?).   And clearly while lisp/org-src.el has
> many functions implemented for both cpp and C++, its not always complete.
> For instance it defines org-babel-header-args:C++
> but there is no org-babel-header-args:cpp, meaning incomplete completion for
> cpp blocks header-args.
>
> From all that it feels like the documentation wants us to use C++, and that
> the code is trying to keep cpp for backward compatibility (?), but that each
> option has different drawbacks.
>
> I'll stick to C++ and header-args:C+++...

I think we should use enforce using cpp everywhere instead of C++, since
it is more consistent. Patches welcome, of course :)

Regards,

-- 
Nicolas Goaziou

      reply	other threads:[~2019-04-23  8:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-15 12:53 #+PROPERTY: header-args:C++ will not work Alexandre Duret-Lutz
2019-04-15 14:08 ` Alexandre Duret-Lutz
2019-04-23  8:28   ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871s1tw2ge.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=adl@lrde.epita.fr \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.