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

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

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

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

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

2013-07-13 Thread Rasmus
Rasmus writes: > Eric Schulte 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 f

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

2013-07-13 Thread Rasmus
Eric Schulte 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 attached patch accept

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 writes: > Hi, > > The Emacs C++ mode is called c++-mode. In babel C++ is C+

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

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

[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) #+begin_src