From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: org-babel-load-file support elisp Date: Tue, 04 Feb 2020 17:29:50 +1100 Message-ID: <87v9om6f1d.fsf@gmail.com> References: <87tv47mq59.fsf@gnu.org> <871rrbb85a.fsf@gmail.com> <877e12dh3q.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55956) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyrig-0007jL-FQ for emacs-orgmode@gnu.org; Tue, 04 Feb 2020 01:29:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyrif-0007VN-B8 for emacs-orgmode@gnu.org; Tue, 04 Feb 2020 01:29:58 -0500 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:38131) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyrif-0007Ti-30 for emacs-orgmode@gnu.org; Tue, 04 Feb 2020 01:29:57 -0500 Received: by mail-pl1-x62c.google.com with SMTP id t6so6847770plj.5 for ; Mon, 03 Feb 2020 22:29:57 -0800 (PST) In-reply-to: <877e12dh3q.fsf@gmail.com> 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Jack Kamm Cc: emacs-orgmode@gnu.org Well there are exceptions to all rules aren't there? Yes, strictly speaking, for shell scripts, only 'sh' fits with the -mode rule. However, that mode is also slightly different from other language modes in that it supports many shell 'dialects'. The thing is, the more 'liberal' we are with what we allow as the name of the source block language, the more complex any additional functionality becomes - I think your original issue is an example of this. Allowing 'elisp' seem reasonable, but then other functions which work with source blocks now also need to know that 'elisp' is an alias for 'emacs-lisp'. There are probably other inconsistencies which will 'fail' in some situations. For example, I wonder about 'javascript' and 'js2'. Jack Kamm writes: > Tim Cross writes: > >> All other language specifiers comply to the pattern of source block >> languages being the language major mode name without the '-mode', but >> there is no elisp-mode. > > Sorry to be pedantic, but I think shell source blocks are another > exception here. They can use various synonyms for the source language, > such as "shell", "sh", or any other name in org-babel-shell-names. Also, > while "shell-mode" is a major-mode, it is not the mode used by the > source buffer -- it is the mode used for the interactive shell created > by the `shell' command. -- Tim Cross