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 2A0jHxIGJGSfVAEASxT56A (envelope-from ) for ; Wed, 29 Mar 2023 11:34:10 +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 kLD1HhIGJGQtIQEAauVa8A (envelope-from ) for ; Wed, 29 Mar 2023 11:34:10 +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 EFBC01E81D for ; Wed, 29 Mar 2023 11:34:08 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phSBe-00009J-MO; Wed, 29 Mar 2023 05:33:46 -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 1phSBc-000095-U4 for Emacs-orgmode@gnu.org; Wed, 29 Mar 2023 05:33:44 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phSBa-0002Z5-RK for Emacs-orgmode@gnu.org; Wed, 29 Mar 2023 05:33:44 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 310FD24044F for ; Wed, 29 Mar 2023 11:33:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1680082420; bh=3HAHSDPOk7xR8izM83wlMYisyor+9s2/TqlA0wNuUWE=; h=From:To:Cc:Subject:Date:From; b=gcuQfgZplsEmHldfXMeIF+Ol2/XCnUxkVWfqK5X+52SXgumdSp5sH+J4GfoKz8vqp AapQc1RZOXwhZripjB0KAEM991J2M3UJfkwxuvP/AdDF8tW+QhAIgeB+McCnwg3vxH YoLgsGn8KRvn3vEUvKnS6Wyi7Po+8tgrEQvyGSY2qO3yzYWKHI/HPYncb/zuiUnc7K bJOpqmuIlK711WyXCBfakuhz6UNM+NFloDo2Th+noVxSOF7MwkDtmxpXbfX/mWDE4I /KdKL9xDss72icxg/RvHHrH6/qgDsoQu4hbcgFUK4sAkNjLX/ExAODa8L1ywxlXm+e OsRmNycahaE3g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PmhFH2c6nz9rxG; Wed, 29 Mar 2023 11:33:39 +0200 (CEST) From: Ihor Radchenko To: Matt Cc: Derek Chen-Becker , Emacs-orgmode 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?) In-Reply-To: <1872a35eeec.dcff8bea422796.5356383202108217532@excalamus.com> References: <1872a35eeec.dcff8bea422796.5356383202108217532@excalamus.com> Date: Wed, 29 Mar 2023 09:35:44 +0000 Message-ID: <87pm8rx5lb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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=1680082450; a=rsa-sha256; cv=none; b=HspPxI+60R7mY1qvzSsJmL7vFK4swyEr3ajIAdxqbbI42jMIu28B5K2s3fm8dSi360kZ6S SVmADW/d2HSsFZPbK5D0S3T8AzFtAIjzj/0uwX5EnY4Ii/tGIO5yBBHvhXf6QNCnA0aGdr vf9TFPajYYeXkTasI3hA8BjvnH+t/srEt5PHfCn3LlGCT0s/C1QfVoGQXko8Y5dZS15vob EY0eQOjfO1RZPHaUiDPMnUAOaMWKeDzBvCkINwLVLGI6m9s7nVzdg6AjkG92vWErmO5k4L 2VOJ8pvqc3OCNYdnjP8CsCMBPGJP439qDB7mE4mKhVxkIf2jPQ7kLtwRxkzmZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gcuQfgZp; dmarc=pass (policy=none) header.from=posteo.net; 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=1680082450; 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=S8kdAAq42Kg3ol1M9y8ihqQZBacAw2nx9PVG4J2ctfM=; b=dBm97KYYy89bQzQpytsd1yc2AZt8r/Qrci4z3z3amvCHkBeRvGhR5NY2CyhfboX4uOuSsU DcNDgm4K/zdXe8SYgnG6IAPTQ5mF85t2i/NTAS6ovA5r+PjRAn6S9mwgFzmRsbe/NugI+f Cq9WRAlhXoK4AQX8ymRv3fn4zjfdccJsJFdQPf+clMQySWo+RriHcvnxJlXOTI+zTbU7qd lUic3oXE7J91Skqh1vNSRj2DE4je6aB6ph0i6AFWyjYa8VAwHk94BOP6ftEKDPiYk9a2ih uUot9hgc0r6F6GCp8QKQ65iUBBQyE0lxeDPdGmjgZpUYO4PpPu2GFSDKmYSZMw== X-Migadu-Spam-Score: -6.54 X-Spam-Score: -6.54 X-Migadu-Queue-Id: EFBC01E81D X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gcuQfgZp; dmarc=pass (policy=none) header.from=posteo.net; 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: MT2YvbXoxvwE 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