From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: [RFC] Association list between major-mode-names and babel identifiers Date: Fri, 14 Mar 2014 10:27:20 +0100 Message-ID: <87vbvhm8p3.fsf@gmail.com> References: <87ob1apusq.fsf@gmail.com> <874n325gck.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOONs-00075w-KW for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 05:26:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOONl-0005nj-BW for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 05:26:32 -0400 Received: from plane.gmane.org ([80.91.229.3]:48313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOONl-0005nL-4P for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 05:26:25 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WOONi-0000wA-Vq for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 10:26:22 +0100 Received: from g231107118.adsl.alicedsl.de ([92.231.107.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Mar 2014 10:26:22 +0100 Received: from tjolitz by g231107118.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Mar 2014 10:26:22 +0100 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: emacs-orgmode@gnu.org Eric Schulte writes: > Thorsten Jolitz writes: > >> Hi List, >> >> due to the relatively frequent mismatches between language names >> extracted from major-mode names and language identifiers used by >> Org-Babel I try to build the definite translation alist between both >> names. >> > > The `org-src-lang-modes' variable should hold this list, elements not in > the list simply append "-mode" to the end of the source name. Oh, I see ... then I don't have to replicate this. But what about R vs ess? I started to deal with this because R-mode is actually just a dialect of ess-mode and returns 'ess-mode' when doing M-: major-mode. OTOH putting a buffer in ess-mode makes no sense either, its kind of an abstract super-mode, one has to call R-mode to get something functional. And what about upper/lower case? Only "C" for c-mode, or "c" too? ,--------------------- | `org-src-lang-modes' `--------------------- ,---------------------------- | Original value was | (("ocaml" . tuareg) | ("elisp" . emacs-lisp) | ("ditaa" . artist) | ("asymptote" . asy) | ("dot" . fundamental) | ("sqlite" . sql) | ("calc" . fundamental) | ("C" . c) | ("cpp" . c++) | ("C++" . c++) | ("screen" . shell-script)) `---------------------------- -- cheers, Thorsten