From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SILJIC8cJ2RlCwEASxT56A (envelope-from ) for ; Fri, 31 Mar 2023 19:45:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0PrNIC8cJ2SlWQEA9RJhRA (envelope-from ) for ; Fri, 31 Mar 2023 19:45:19 +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 26BB8132B5 for ; Fri, 31 Mar 2023 19:45:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piIne-00030F-GT; Fri, 31 Mar 2023 13:44:30 -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 1piInc-000305-FO for Emacs-orgmode@gnu.org; Fri, 31 Mar 2023 13:44:28 -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 1piIna-0004it-FN for Emacs-orgmode@gnu.org; Fri, 31 Mar 2023 13:44:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 29B5A240248 for ; Fri, 31 Mar 2023 19:44:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1680284664; bh=I8W/uFLpUji5FlNsQ2madETyszAIkpyP0nj/1KEIZJE=; h=From:To:Cc:Subject:Date:From; b=neUL+cNMDNG2a0LPy45CnLH5Kx2YdQ5G4UDPs9bpO4slv9XRL7zkHRzuEqkVZaS/I gEA1Ii03j1dY3kCnPzmDOa3+oQP5Xm0cGtKlKQ7sHzip5w3PJcGfNa1KyA1RSfAz47 kIzWLFWXQEvLixrRBazm5Deeskkr+Fn0g4h5qSl1jmbOIHi9LU6yUr5Oczb6Q12N1M A4MwhxGK07yZmOFSvB0hLdfgBnulXDjgam9E/5XE/TFjPMrBSBnGL+uq/esydF/MTb +2b+HICJvTrtRjYfu2BwyKVQkQa+Qx8QGd+Y45GxDy1xMHDcAcQQDqR3k+KtmODc+1 fS3+M3/c9cJ1Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Pp72b482Wz6twB; Fri, 31 Mar 2023 19:44:23 +0200 (CEST) From: Ihor Radchenko To: Derek Chen-Becker Cc: Matt , 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: References: <1872a35eeec.dcff8bea422796.5356383202108217532@excalamus.com> <87pm8rx5lb.fsf@localhost> <1872f04dea1.12a910409155047.1986659191838711991@excalamus.com> <87jzyyehwr.fsf@localhost> <87sfdl9igk.fsf@localhost> Date: Fri, 31 Mar 2023 17:46:23 +0000 Message-ID: <87ilegak5s.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=1680284719; a=rsa-sha256; cv=none; b=a3+C/A7JkkYJfjoUeqU6MlmrsrRRQupLqj9NphpIpMwj5b848PUZDU+20BcXm/5OV+LRl0 96OYaydKyQ2X3KLyT9h2Asa8bir/wZ/WbjivP3PmyJG1223TJ6tp6l6A0Bm5tP4CNYRXgu Yd5k94D8oEUx9i7j2rBJXORQsoFNhrT9N/UlzbtE6fqB3SMYCci8GrU/RPJWL5gqgZxT+u 17zT0Z0S2ylmS1yWQgZGzokMXH+sfL9ifKastPmGd3sGZsm8G2Kg4FUJSPETr119CUL3Qx rJdmY+9V3i6VSDeugmT7HdnUFm0hOCmfpjzMQ31OU6BE3Vcns5KBoWRHn9kCRg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=neUL+cNM; 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=1680284719; 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=1+M5+8CraxkzSoXNbg4jd8ACAQ+Mr0NBCKLXDv+ac04=; b=luAjezIt98QuOPqy+LaZ/dVP1ESeKZuYoN4E1fXaT05Aj06mQ8ztLi2FFh03qhFxSm8Vic sL4kP3GHboBMu3vAgGYHgjCfacGXnAigT5IxHQkiaZYqR2oNSvo7fgzLTlQhb5OYZSdRbL 1SkvTTX80OTZz3GXCLNaXfn4E6NwVJtTiot029YXVD7y9eOhmgYmr9IPl2+tCNPHjBIejJ I7N46aOXT9Pg+GFqhzIbjLhrHLuWKHt657pz46lT7S4xvkTLhC0Q//wpmw5iev489RTh2F U+72lgqiXbABDRtQpL7AtmjZ1R5q2TttsyKPbcLPrqHvLNI2g2r2jFwn1ZvDMw== X-Migadu-Spam-Score: -6.23 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=neUL+cNM; 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-Spam-Score: -6.23 X-Migadu-Queue-Id: 26BB8132B5 X-TUID: GP1SX53QQCEP Derek Chen-Becker writes: > When I asked the question I was just thinking of using it as a reference > for expanding the current org-src-lang-modes values, but now that you've > asked the question, perhaps we could dynamically amend org-src-lang-modes > based on the contents of sh-ancestor-alist. Does that make sense? Nope, it does not. May you elaborate how exactly can we derive major mode for an src block using sh-ancestor-alist? >From my reading of sh-script.el, we may simply use bash-ts-mode for all the shells. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at