From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [ob][bug] C++-mode is unknown Date: Sat, 13 Jul 2013 12:39:19 -0600 Message-ID: <87vc4ewbhk.fsf@gmail.com> References: <87ehb2fvsr.fsf@pank.lan> <87ip0ey3z5.fsf@gmail.com> <87zjtqed4f.fsf@pank.lan> <87r4f2e3yh.fsf@pank.lan> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uy4l4-0005rH-8h for emacs-orgmode@gnu.org; Sat, 13 Jul 2013 14:41:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uy4l3-00089A-5L for emacs-orgmode@gnu.org; Sat, 13 Jul 2013 14:41:26 -0400 Received: from mail-pd0-x229.google.com ([2607:f8b0:400e:c02::229]:58010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uy4l2-000896-UK for emacs-orgmode@gnu.org; Sat, 13 Jul 2013 14:41:25 -0400 Received: by mail-pd0-f169.google.com with SMTP id y10so9642472pdj.28 for ; Sat, 13 Jul 2013 11:41:24 -0700 (PDT) In-Reply-To: <87r4f2e3yh.fsf@pank.lan> (rasmus@gmx.us's message of "Sat, 13 Jul 2013 19:59:18 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org 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 the pointers! >> >> 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, and added another change which include the org-src-lang-mode languages to the options in org-babel-demarcate-block. Let me know if this leaves anything out. Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte