[O] [ob][bug] C++-mode is unknown

2013-07-13 Thread Rasmus
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)

Re: [O] [ob][bug] C++-mode is unknown

2013-07-13 Thread Rasmus
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:

Re: [O] [ob][bug] C++-mode is unknown

2013-07-13 Thread Eric Schulte
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

Re: [O] [ob][bug] C++-mode is unknown

2013-07-13 Thread Rasmus
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

Re: [O] [ob][bug] C++-mode is unknown

2013-07-13 Thread Rasmus
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

Re: [O] [ob][bug] C++-mode is unknown

2013-07-13 Thread Eric Schulte
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

Re: [O] [ob][bug] C++-mode is unknown

2013-07-13 Thread Rasmus
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,