From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id eJnZGeRvJGR3bAEASxT56A (envelope-from ) for ; Wed, 29 Mar 2023 19:05:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aPGvGeRvJGQHQwAAauVa8A (envelope-from ) for ; Wed, 29 Mar 2023 19:05:40 +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 B5213142E4 for ; Wed, 29 Mar 2023 19:05:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phZE8-00067E-9m; Wed, 29 Mar 2023 13:04:48 -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 1phZE6-00065c-Pc for Emacs-orgmode@gnu.org; Wed, 29 Mar 2023 13:04:47 -0400 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phZE4-0004Po-Mw for Emacs-orgmode@gnu.org; Wed, 29 Mar 2023 13:04:46 -0400 Received: by mail-qv1-xf2f.google.com with SMTP id oe8so12014756qvb.6 for ; Wed, 29 Mar 2023 10:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-becker.org; s=google; t=1680109483; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=s53uPoM7SXHGhW4cWyfj+ALMVEi8NEntd5acHTP0Vuw=; b=OnSX3zwKuA4kIkxnySQTob36cQI2DViJ/YRhTNp3dJCdrxgsG6tOt5t4Dz2XFET7hm edCLxAHwKRrmLc8Ov9LmUGcyJKZVDWjBmxjA2zsvwPIlyKMuIYDn3N5jfqdvWsteT2TJ J2epM8LTp5YxDXl7vSZK66IDbmivobWYkvxOx4F5p3Er13IE5XN+Nk4NRYBlKgEcKuth qZgquo5DdJxC2puW7h+w5BbiTtqrO4ct8M6DJgFIv9U27wBvSZb3VqAg4yc9vW3MCRPJ RKOUBnXoecLI3yUHozNRt6ZMUleBXc+CLW6FqvisWohuenLVU3J9k9wO9N99Z5zF8/zx aVEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680109483; 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=s53uPoM7SXHGhW4cWyfj+ALMVEi8NEntd5acHTP0Vuw=; b=YJ42o/viPEbZuJJ1oj/l01Hs3E8n9PZ/2D5PfP000AMeY/fE4jwSAU+AGA+tq3HdpA bhCCE9FNNbmzr1CBz0uDxROR8Voz6XVUUcKP+Oa67HSzYOlgWhP/izeCxDizTz8XJa1w Fyw8tzvvEkdHQwcb/4/jAsuuDJJNTbq8zjEl9gUcPOQWJCsfoDjDrP1vd1Opx6fOyquN aohUv/TSwfIzJ6y3vJhdjccj6cj3PnoByg7+UWZ/Ag9Y+UVy6Z1wlipiUuCY7kEJZRty yhNjLsmflNwBsHVxAt1PioAWdI13maVIqAxx2I55dYTceU7xWdck8/bfjWBUb/mC55tS P5Bg== X-Gm-Message-State: AAQBX9cghfjkjcxMkfR3pgvI5BA2i6yXTsKYNTHusgQ2JpMKyIRiViFc hsx1Wv1H6ENy88BSbKgEZaEuzIyazarTTO1VVfMsxQSekuqCnrR7 X-Google-Smtp-Source: AKy350YCm94hAmy3Qc38Jg3cVSc1OQKhab320/tzdguqLc64tEXCKEeWsJprXa67kE3nWMJhyNImP7Vzekdv3TdFgwI= X-Received: by 2002:a05:6214:174e:b0:5bb:ca1d:f042 with SMTP id dc14-20020a056214174e00b005bbca1df042mr3438820qvb.0.1680109483076; Wed, 29 Mar 2023 10:04:43 -0700 (PDT) MIME-Version: 1.0 References: <1872a35eeec.dcff8bea422796.5356383202108217532@excalamus.com> <87pm8rx5lb.fsf@localhost> In-Reply-To: <87pm8rx5lb.fsf@localhost> From: Derek Chen-Becker Date: Wed, 29 Mar 2023 11:04:31 -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="000000000000ec4c2005f80cf827" Received-SPF: pass client-ip=2607:f8b0:4864:20::f2f; envelope-from=derek@chen-becker.org; helo=mail-qv1-xf2f.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=1680109540; a=rsa-sha256; cv=none; b=R4VNlPo9tCnneFCLTgEQ1qqAVMOfzkVZ1RKfgO2pJylzaSLh3htldJyUyBFB88cGC0RqBg QW5gKXxQoPu+UXRmS3TpEcx5/dpWJkhpXrkdoI8bL9eUjyvyz0VnAZ490ugoTzXVCMvTEE Txmy4P9lol3YtHFm6n6uDaSuDHSRVAZQI4B4gKgMqlxk9YCjNkPKDcPRKPPwk9dbc8C/Pv HEwttBJPKVXhxwPO3Fc135jUbXHE7u/MSLUsvCtuvIXYdX4lC49FQj+JUu2beMBUeC2GnU 9g+NVFMw7aGP3GuqS+fkX2BU+it2TMqvFJJVG5ZOMqCKyHpifrLVfK0eS1wFkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=chen-becker.org header.s=google header.b=OnSX3zwK; 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=1680109540; 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=s53uPoM7SXHGhW4cWyfj+ALMVEi8NEntd5acHTP0Vuw=; b=D0beg9G4jqN0WmmEnSOymlbWyJFrIYpOiyEFXVq24w8uluZ8fcTOoKdi/GM6+YofZvLAt1 KS0u62j5A461FQhCD6Hg/3/dc4x1ja+a00rgXPaZDDpsxiv5hO+u9AiYE4mwKWACG7Z3sc cW06td4jjZZvkEchjhNiY3cDmLzPcdQZv+lqFu4T2mXa9Umuyy3LIiAKwFie5H1xeB2tfK nMm8KW1+BGma38P2AxE8xbHIGkJWaTT+0jqolXNgWyTNhX/0prpJNDtt11OA6MF3a9/H4C 1U5Y5BQBFWpC9IYfM2usdeLmjEUQx0j83VZ2KjJcUt6hUDXImCtasQLtDb+2ow== X-Migadu-Spam-Score: -3.73 X-Spam-Score: -3.73 X-Migadu-Queue-Id: B5213142E4 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=chen-becker.org header.s=google header.b=OnSX3zwK; 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-TUID: oTRLho20sWay --000000000000ec4c2005f80cf827 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cool, I would be happy to submit a patch! Thanks, Derek On Wed, Mar 29, 2023 at 3:33=E2=80=AFAM Ihor Radchenko wrote: > Matt writes: > > > Does anyone know which function is responsible for re-fontifing source > blocks? > > `org-src-font-lock-fontify-block', which is using major-mode's native > fontification. The major mode is determined by `org-src-get-lang-mode', > which can be customized using `org-src-lang-modes'. > > Org provides some defaults for bash in `org-src-lang-modes' but not for > other shell flavours. I guess we can add more defaults to > `org-src-lang-modes', if we know for sure that e.g. zsh can be fontified > sh-mode. > > -- > 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 | +---------------------------------------------------------------+ --000000000000ec4c2005f80cf827 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Cool, I would be happy to submit a patc= h!

Thanks,

Derek

On Wed, Mar 29, 20= 23 at 3:33=E2=80=AFAM Ihor Radchenko <yantar92@posteo.net> wrote:
Matt <matt@excalamus.com> writes:

>=C2=A0 Does anyone know which function is responsible for re-fontifing = source blocks?

`org-src-font-lock-fontify-block', which is using major-mode's nati= ve
fontification. The major mode is determined by `org-src-get-lang-mode',=
which can be customized using `org-src-lang-modes'.

Org provides some defaults for bash in `org-src-lang-modes' but not for=
other shell flavours. I guess we can add more defaults to
`org-src-lang-modes', if we know for sure that e.g. zsh can be fontifie= d
sh-mode.

--
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 |
+-----------------------------------= ----------------------------+

=
--000000000000ec4c2005f80cf827--