From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iK/ZFrFXpl59eAAA0tVLHw (envelope-from ) for ; Mon, 27 Apr 2020 03:55:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2DrjHblXpl6DIQAAbx9fmQ (envelope-from ) for ; Mon, 27 Apr 2020 03:55:37 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 13A239429E4 for ; Mon, 27 Apr 2020 03:55:35 +0000 (UTC) Received: from localhost ([::1]:52084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSurk-00006I-VK for larch@yhetil.org; Sun, 26 Apr 2020 23:55:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42926) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSurN-00006A-Rp for emacs-orgmode@gnu.org; Sun, 26 Apr 2020 23:55:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSurM-0003Zt-Lj for emacs-orgmode@gnu.org; Sun, 26 Apr 2020 23:55:09 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]:36352) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSurM-0003Ze-7d for emacs-orgmode@gnu.org; Sun, 26 Apr 2020 23:55:08 -0400 Received: by mail-ej1-x636.google.com with SMTP id k8so12970285ejv.3 for ; Sun, 26 Apr 2020 20:55:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=on5kFIdyjbECY5FrjwQsk4MT3th9180j/MH49xgxZeM=; b=X0XsDhdIrpjSW91chxtI3NvB7FPLDIWQlB/I3IyBaVRwdaGiqZIrD4sA4LM2Ai+wiL RH/RhjYIR4B/zmkd3H1vj1VMtbw0vqePp077amzgr1JyMNkNLky0zBPCiF8rwXLO81Uf 204a1/XAeAi+bEugV3s7pCH0itWsiH7R/TWOBetVPeOfBGz/38NkpyY48d3vom8AR0PA HpyAD58sfsjiFYV0i8i4BNjIWUDsXBhJCnu1JxlnNilCxzsgUhx/+Stw8rZx7dgWvpte GpgOBkS+qqLPq2FcfdVCvqp4lLcp5qFJ8rZsDSQxcKd8eOiXmUfQ76PLWGncsnAfKRKd j5NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=on5kFIdyjbECY5FrjwQsk4MT3th9180j/MH49xgxZeM=; b=VnmiMhwi7VKQ8goy41QiIE/nBBDaVEpE10ySNLa8AzkZ0QK2I5P9mj9dlMb7yIcaGg faXpDFgt91Nx1m1c1QWBxu844H+27FwWYWfyR93uEaTXiylwwQMsyCAuk2K0vpyQE18Q fQaLXI/O7b2sBXZe1i2nM08MAd3qkBNwVt5/tLYi0qPgLWFJpSEQfVgi1gKIdqELLdmV y6B7sJ+tv4jJY+jEKe9JbPsvNeA+Uc18/TvjPY4K9JTgMESsTZ8B/6h4SNVs8XcST0yq ugk5jUwtdTR28mC1CmJlqpFHPkSoYu1w5M83LgXCkGJkoiP7gwMMiBKzGAPTDfQs3QVH QuYg== X-Gm-Message-State: AGi0Pub8Fz86UERHVhCVgmxY9B8zVcG9vfT6mlDq5Qi0E+IiWqKRFyAY frmIdtr3CxmHiSnjE+4JeZA+2R6iuY7GJOZIM9G+oLrAjno= X-Google-Smtp-Source: APiQypJ6ZocNud4KT4kzHW6Re0CD+41rtSRq9GYeZi3o0aB1zzBFzJwsP7UY7xxzpLVlV61YLE0p4UZhokUfNsn5Twg= X-Received: by 2002:a17:906:2558:: with SMTP id j24mr18376200ejb.72.1587959705983; Sun, 26 Apr 2020 20:55:05 -0700 (PDT) MIME-Version: 1.0 From: Vladimir Nikishkin Date: Mon, 27 Apr 2020 11:54:54 +0800 Message-ID: Subject: Specifying the execution function and/or nested major mode for babel blocks To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=lockywolf@gmail.com; helo=mail-ej1-x636.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::636 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 X-Spam-Score: -0.21 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=X0XsDhdI; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [-0.21 / 13.00]; GENERIC_REPUTATION(0.00)[-0.55627698667568]; MX_INVALID(1.00)[]; DWL_DNSWL_BLOCKED(0.00)[gmail.com:dkim,209.51.188.17:from]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.20), country: US(-0.00), ip: 209.51.188.17(-0.56)]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[lockywolf@gmail.com,emacs-orgmode-bounces@gnu.org]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: 46F0iQY2475t Hello, everyone. In org.el we have the following: (require (intern (concat "ob-" lang))) This is fine most of the time, however, there are exceptions. The one I am interested in is fortran/f90. There are separate fortran-mode and f90-mode, however, afaiu, just a single ob-fortran.el, which works fine with both of those. Moreover, when I make block like: #+begin_src fortran #+end_src or turns on syntax highlighting for fortran-mode, not for f90-mode. I can make blocks like: #+begin_src f90 #+end_src This makes syntax highlighting work, but evaluation doesn't, because org doesn't know that f90 and fortran have the same evaluation (compilation) function. I feel that this is a super minor thing that can be solved in, like, one line of code. But I don't seem to be able to find which one. Any suggestions? Vlad -- Yours sincerely, Vladimir Nikishkin