From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OIJfO0M5LGTjZgAASxT56A (envelope-from ) for ; Tue, 04 Apr 2023 16:50:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6J0lO0M5LGTNXQAAauVa8A (envelope-from ) for ; Tue, 04 Apr 2023 16:50:43 +0200 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 3576E8BDC for ; Tue, 4 Apr 2023 16:50:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjhyj-0006bf-9Z; Tue, 04 Apr 2023 10:49:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjhyg-0006bS-FI for Emacs-orgmode@gnu.org; Tue, 04 Apr 2023 10:49:42 -0400 Received: from mail-qv1-xf2a.google.com ([2607:f8b0:4864:20::f2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pjhye-0007sL-ES for Emacs-orgmode@gnu.org; Tue, 04 Apr 2023 10:49:42 -0400 Received: by mail-qv1-xf2a.google.com with SMTP id dw2so6449637qvb.11 for ; Tue, 04 Apr 2023 07:49:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-becker.org; s=google; t=1680619778; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Gmesd8/QRWTdR+hPSTRoR4LcA4akkejHYJ6mZT38ilA=; b=S+nYAsVnbZgMlWO/edxy7rmCVl1qmpEcs47FHarNqjUdRk6W+S9u0YN1RDeUE1y/6H EkNZuJomAtw0ws2yrHDizD08DlKJgq+zLx8mX0mQbQla6NFRkCXXS1GiR7OhP1DE73+q wMMupkTsFLOZ+fvkRE66tIUxVFyVHqC+PX3+5IOw2CMEvCLCGJAs1V6KiNKjBA5IK3Cb 2LpxFK2b5DjvTl6EmQmiFZAgILf66L2XNccbRAWWitalBOonEbOS2ABpga+Kv15nEoVS G44/EjTVLsreuDX7es9UZZdoCU6hN2zvTrCP4PpzNytRnsTza2rGen/rivdUZoeQKJF7 9naA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680619778; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Gmesd8/QRWTdR+hPSTRoR4LcA4akkejHYJ6mZT38ilA=; b=wYb3n7/ed05Tva1EdKDdPmYzcE9N9PSX9rhVP1BUt2xvN8sfpsCLEqnjuW8l55ewOz UKGNhJ5nDrVjjYOXkMQ8sxIJxhrjia0xMOiX6jwV1JR8EUvMlP35HkNou7L6uPWGvr2e Z5Ms3q1JIzgNBc6sCW5x4UtVQ24dgwL+3g/CGTXxt/DQ1iMAlBb7dfugoEuEr4gnLaRr inOFQG0uUgIoOfN+dSgJD9EbgWhMqmzLJgazqmdLcpd/BkOypsiT6LFnhVQeqlfMVPu9 C/3C+RCpDkussX7oUCbt+11+moGMav8eCfG7xafofPdMmG2dz4JGA2kj0d0o9PldNqab DTsg== X-Gm-Message-State: AAQBX9cyTH+IYulwzaDdK60VdkzrM7JcESFFaI7KL76tvMtu4Tju1aEJ K71jrC8WGFjuVtDQbhichWUWuJYyt1gC8ETaQuIID5vuoc4piaHu X-Google-Smtp-Source: AKy350ZCXQeAUHD8FAnudCz+ok8XuieblYfQvfZ9O+5ilJfC35HLs4PG3bVaXa0cndQqoFeteAz9Ed6McjJH9xtY+fg= X-Received: by 2002:a05:6214:a4f:b0:56e:fbce:6159 with SMTP id ee15-20020a0562140a4f00b0056efbce6159mr481413qvb.0.1680619778007; Tue, 04 Apr 2023 07:49:38 -0700 (PDT) MIME-Version: 1.0 References: <1872a35eeec.dcff8bea422796.5356383202108217532@excalamus.com> <87pm8rx5lb.fsf@localhost> <1872f04dea1.12a910409155047.1986659191838711991@excalamus.com> <87jzyyehwr.fsf@localhost> <1873f20a792.fcfc6bcd54095.5358297633673942037@excalamus.com> <87sfdfakv8.fsf@localhost> In-Reply-To: <87sfdfakv8.fsf@localhost> From: Derek Chen-Becker Date: Tue, 4 Apr 2023 08:49:27 -0600 Message-ID: Subject: Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?) To: Ihor Radchenko Cc: Matt , Emacs-orgmode Content-Type: multipart/alternative; boundary="000000000000defc4e05f883c820" Received-SPF: pass client-ip=2607:f8b0:4864:20::f2a; envelope-from=derek@chen-becker.org; helo=mail-qv1-xf2a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680619843; a=rsa-sha256; cv=none; b=TGk873P+LR7N1t0qPA0lj3m544ONqB6UzaUb/vbpIEPC5EYEcd8OBM5My5MdrI8n0m0G1G 5/OSC3+MLDPmqc9C7KC6g68VfPaXJ/1MvfX0PMgyAWzTlu5U+ko+dE/fjdmRvIBdlgGRMI LXdbDwJGL/gi+cMGrm+0/bOi2OJM5h2dRc1BpWR63uRkkAw5FAIOxVcg8bep6PLqqNuYqc Ui1DyM0I1hBdpRljf0a05XG5EVM516Yj4Wmd3H+ejAThBAcPnTZU8rSuCu2GtwFV64klyi 1W/8WJAVrSDOifQN2oMg4Y5LC1OA/tXW6EiVZcyDGrz1TaE7JeqBkqy1E0NgCA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=chen-becker.org header.s=google header.b=S+nYAsVn; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680619843; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Gmesd8/QRWTdR+hPSTRoR4LcA4akkejHYJ6mZT38ilA=; b=tfdyjJHkqBEsUQ/wkvfisjiwaO8wNta62dfDHcyI+OQ2gtvgZdVDbzq19zuo540K2cNTCV zmVOhYg9LKMHPMHaIOynHLYQTjJd1hit+r8IoIKH+T0/dx9sgUYLDOvsFta64hs8MXaI4z dVMWNatEMGG5HpsvILg3AS06ZLBvKcZMqL/yAKGRp3HwINQTaRLnZldfo5hKAHzjAsl1aq pVP2/yjKiQEXokgv+RsJXf0U7ERJexbjjeHhHBKnkoTSWwG43K1RaaEH0FgQF/R6xDFjeU uSRcPz87gPGaMfH2GifmdPFz23F4Ig65Gu0xjqRlwVyOza3EvBAFB5JZuYWyOw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=chen-becker.org header.s=google header.b=S+nYAsVn; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.00 X-Spam-Score: -4.00 X-Migadu-Queue-Id: 3576E8BDC X-TUID: 7iR6O9LKhU/W --000000000000defc4e05f883c820 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The patch looks good to me! Thanks, Derek On Tue, Apr 4, 2023 at 6:30=E2=80=AFAM Ihor Radchenko = wrote: > Derek Chen-Becker writes: > > > I fiddled around a little bit this weekend and confirmed that this > (sloppy) > > code makes highlighting work for all shell types that sh-script support= s: > > > > ;;A quick hack to try and support more shells syntax highlight in org > babel > > (require 'sh-script) > > (require 'ob-shell) > > (let ((shells (seq-filter (lambda (shell) (not (eq shell 'sh))) > > (flatten-tree sh-ancestor-alist)))) > > See the attached tentative patch. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --=20 +---------------------------------------------------------------+ | Derek Chen-Becker | | GPG Key available at https://keybase.io/dchenbecker and | | https://pgp.mit.edu/pks/lookup?search=3Dderek%40chen-becker.org | | Fngrprnt: EB8A 6480 F0A3 C8EB C1E7 7F42 AFC5 AFEE 96E4 6ACC | +---------------------------------------------------------------+ --000000000000defc4e05f883c820 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The patch looks good to me!

Thanks,
<= br>
Derek

On Tue, Apr 4, 2023 at 6:30=E2= =80=AFAM Ihor Radchenko <yantar92= @posteo.net> wrote:
Derek Chen-Becker <derek@chen-becker.org> writes:

> I fiddled around a little bit this weekend and confirmed that this (sl= oppy)
> code makes highlighting work for all shell types that sh-script suppor= ts:
>
> ;;A quick hack to try and support more shells syntax highlight in org = babel
> (require 'sh-script)
> (require 'ob-shell)
> (let ((shells (seq-filter (lambda (shell) (not (eq shell 'sh))) > (flatten-tree sh-ancestor-alist))))

See the attached tentative patch.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>


--
+-------= --------------------------------------------------------+
= | Derek Chen-Becker=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|<= /div>
| GPG Key availab= le at https://keybase.io/dchenbecker= and=C2=A0 =C2=A0 =C2=A0 = =C2=A0|
| Fngrprnt: EB8= A 6480 F0A3 C8EB C1E7=C2=A0 7F42 AFC5 AFEE 96E4 6ACC=C2=A0 |
+-----------------------------------= ----------------------------+

=
--000000000000defc4e05f883c820--