Hi,
The Emacs C++ mode is called c++-mode. In babel C++ is C++.
Hence, the following problematic case holds.
With the block, (lowercase c)
#+begin_src c++
...
#+end_src
I can edit it in the c++-mode and get nice fontification, but I can't
execute it.
With (capital c)
Rasmus ras...@gmx.us writes:
The Emacs C++ mode is called c++-mode. In babel C++ is C++.
Hence, the following problematic case holds.
[...]
Also, shouldn't C++ be in the list of languages when running
org-babel-demarcate-block (C-c C-v C-d)?
Oh, and here's my details if relevant:
Use the `org-src-lang-modes' variable to associate a src code block name
with a major mode. This list already contains (cpp . c++) for C++
code blocks, but perhaps (C++ . c++) should be added as well.
Best,
Rasmus ras...@gmx.us writes:
Hi,
The Emacs C++ mode is called c++-mode. In babel
Eric Schulte schulte.e...@gmail.com writes:
Use the `org-src-lang-modes' variable to associate a src code block name
with a major mode. This list already contains (cpp . c++) for C++
code blocks, but perhaps (C++ . c++) should be added as well.
Thanks for the pointers!
Do you find the
Rasmus ras...@gmx.us writes:
Eric Schulte schulte.e...@gmail.com writes:
Use the `org-src-lang-modes' variable to associate a src code block name
with a major mode. This list already contains (cpp . c++) for C++
code blocks, but perhaps (C++ . c++) should be added as well.
Thanks for the
Rasmus ras...@gmx.us writes:
Rasmus ras...@gmx.us writes:
Eric Schulte schulte.e...@gmail.com writes:
Use the `org-src-lang-modes' variable to associate a src code block name
with a major mode. This list already contains (cpp . c++) for C++
code blocks, but perhaps (C++ . c++) should be
Eric Schulte schulte.e...@gmail.com writes:
Do you find the attached patch acceptable?
Scratch it, it's not working as it should.
I actually applied this patch, undid the portion in ob-C.el because we
shouldn't be modifying org-babel-load-languages from ob-* files,