From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 ULQXB503MGR+jAAASxT56A (envelope-from ) for ; Fri, 07 Apr 2023 17:32:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SFcEB503MGR2fwAA9RJhRA (envelope-from ) for ; Fri, 07 Apr 2023 17:32:45 +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 822D819F6E for ; Fri, 7 Apr 2023 17:32:44 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pko4f-0006wj-JP; Fri, 07 Apr 2023 11:32:25 -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 1pko4e-0006wZ-2b for Emacs-orgmode@gnu.org; Fri, 07 Apr 2023 11:32:24 -0400 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pko4b-0002hW-RL for Emacs-orgmode@gnu.org; Fri, 07 Apr 2023 11:32:23 -0400 Received: by mail-qt1-x82f.google.com with SMTP id t19so40930244qta.12 for ; Fri, 07 Apr 2023 08:32:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-becker.org; s=google; t=1680881540; x=1683473540; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=t0Ld/QIwm41mjGaqKedpsR3zhtYVKZ3dtDeGNBBH4tg=; b=WPrPExbbpQgDAiWNJm7exnAhhdgOR+DVX41fjeMJzd1CXLBU5GI31wHW5o6NZkS4H7 uNnzq1M1qwzUpg1j3/wDzzsGnWq+1Le5VSnT4fr2j6MeQGYbfTGm9+eUDQSlcHhT6CAt j+N51OGqUA3N2AESPsDiO/n/ZnYz48vxchCDAag+GW8XySzBR8Hb9YKYpzzCri+m2AxR g4Mj3PDOG+ePfwyEIh+KOZNlHkAwoQ1Eavz+w76kEIXAgSibJCbUWY3pyJQp6UsUIiG/ dH/nYWRaMnTNHVdr+sv2O94wXQN0UeQ7Awxs/VDeEFXpKhsMHroPjfEXpjNZRtgSo0mt kpIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680881540; x=1683473540; 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=t0Ld/QIwm41mjGaqKedpsR3zhtYVKZ3dtDeGNBBH4tg=; b=jvUZKUfr7veNaqbamhcb70qM5bsB4I5JD3bojiTwtqfv11/fldh/nHtfpWA50Z02a5 ioh8dN8amF/Wmi/tNcCLn8VwfEcvl/gPL2GOasIb0SjU2lZQNnWITOvFdfEdFUmee7/3 c2HriNStRE53Q6WrhC6xGWRi+5/1VMgE2pUBwxNgtSdvMprj7ctOQMUzqVFoVuyzqpS0 DHtqDr3MEqd6ilE4zN62Thk+9gpzpLAHvLN8Y4yHc/EEY8ESHAvS+WCxtr4XVszyqAnz mgBQLo7j15fmJxsUQBZSw75Sb9h0gUX9abJH7Ola1B/ajuhCH5pc1XPvORGfRl6TyyIs 4Qlw== X-Gm-Message-State: AAQBX9c49j5SnPEXaQkCRZZFPZNmy1Sbhhw9aTJzTP+Dar5iXm5twe/s jcWHQ7ldDxGFX1rU4y75ejQG2PRUSWdwBZB1K+eMUA== X-Google-Smtp-Source: AKy350ZsymXioyyRapu1rWlCxTRdXEf9eayM5dAc4jV+xeQyKUsm8i1ysScv5lNR85mxDETynzpRY3UMxvfszrrFJto= X-Received: by 2002:ac8:7d16:0:b0:3d2:8d87:6710 with SMTP id g22-20020ac87d16000000b003d28d876710mr844916qtb.12.1680881540025; Fri, 07 Apr 2023 08:32:20 -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> <1875c56b5e6.b4b2a1a9286576.6377384349811038153@excalamus.com> In-Reply-To: <1875c56b5e6.b4b2a1a9286576.6377384349811038153@excalamus.com> From: Derek Chen-Becker Date: Fri, 7 Apr 2023 09:32:09 -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: Matt Cc: Ihor Radchenko , Emacs-orgmode Content-Type: multipart/alternative; boundary="0000000000001a666705f8c0bb5c" Received-SPF: pass client-ip=2607:f8b0:4864:20::82f; envelope-from=derek@chen-becker.org; helo=mail-qt1-x82f.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=1680881564; a=rsa-sha256; cv=none; b=WzeQV4SjSoxjDt7EyUOPIkjwXCIlBEZCFeQt88HaeiXX+/m/S8rxb3w2083/lia2SvIv// 0FxT0I/06d0eIj0qKFvjlubCchlcIVkXhSOVZ1tzuDgmyveKiuaoTptjhQkz5LlQYnlABt Za5DrcXGqUT1o9y5JpV5UPuUO8KxA/GFZgEsNHAAPVDx2UkmWb9pXw91N3ON2uTiH7hEk5 JSqS52Qr1CLzSkNYD+95IsL+eEL212UF6C4qCHRyW+oCaJN8rLBuiOdu+j7+WqBhd6XDQq 9FHnEv+ZErCxjHZ5BUtERVAxdRG/fr5NCQDXQGPm99GxQ06atpr+3bSyBThUSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=chen-becker.org header.s=google header.b=WPrPExbb; 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=1680881564; 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=t0Ld/QIwm41mjGaqKedpsR3zhtYVKZ3dtDeGNBBH4tg=; b=QWyBPF6o6C/bZtrK9QTzJWTK+ThdX7iQkwBGr8V0YI2HFR79Lur5vphG7qm8NmJtsUebZ3 SH5/mZGQXx3VjTUlL14g9sXjpiiqayVuMoQygYNtTdZ+/LPoMCLwxreptwmfmAfZ/IkbDr X8NIo8/05jDuxh7Mmix00sFRXmsZ9GjtmaGk/BIvxB+KuUyC5g7qdI0muewbkw1419k6uz dVMiKpARHWdzeHDt+WnBM5wl2/Ff8xcZF0iXsXVGRwi0IUexh54mA+I3epn9qkXyrElriN PxpFdQvEbFJMslXG+2+bZWBluipy9AuU/9K+H7HEfXAtzthmv72L7Ovx4lUANQ== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=chen-becker.org header.s=google header.b=WPrPExbb; 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.01 X-Spam-Score: -4.01 X-Migadu-Queue-Id: 822D819F6E X-TUID: Lj1RrzH71Axa --0000000000001a666705f8c0bb5c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable In the code I posted, I had to explicitly (require 'sh-script) to ensure that the sh-ancestor-alist is loaded before the code. I'm not enough of an elisp guru to know if there's a way to defer that. Cheers, Derek On Fri, Apr 7, 2023 at 9:30=E2=80=AFAM Matt wrote: > > ---- On Tue, 04 Apr 2023 08:30:34 -0400 Ihor Radchenko wrote --- > > > See the attached tentative patch. > > After applying the patch, I get the following error when trying to load > Emacs: > > Warning (comp): /home/ahab/Projects/org-mode/lisp/org.el: Error: Symbol's > value as variable is void sh-ancestor-alist > > I wasn't able to resolve it. I suspect the issue is on my end, such as a > mixed install or the need to re-byte-compile `sh-script.el'. > > To run Org from source I do one of the following: > > ;; When using my init > (use-package org :straight (:local-repo "/home/ahab/Projects/org-mode")) > > ;; When running emacs -q > (add-to-list 'load-path "/home/ahab/Projects/org-mode/lisp") > (require 'org-loaddefs) > > If I need to recompile Emacs byte code, I'm not sure how I'd do that sinc= e > I'm running Guix and those files live in the write protected /gnu/store. > --=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 | +---------------------------------------------------------------+ --0000000000001a666705f8c0bb5c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In the code I posted, I had to explicit= ly (require 'sh-script) to ensure that the sh-ancestor-alist is loaded = before the code. I'm not enough of an elisp guru to know if there's= a way to defer that.

= Cheers,

Derek

On Fri, Apr 7, 2023 at 9:30=E2=80=AFAM Matt <matt@excalamus.com> wrote:

=C2=A0---- On Tue, 04 Apr 2023 08:30:34 -0400=C2=A0 Ihor Radchenko=C2=A0 wr= ote ---

=C2=A0> See the attached tentative patch.

After applying the patch, I get the following error when trying to load Ema= cs:

Warning (comp): /home/ahab/Projects/org-mode/lisp/org.el: Error: Symbol'= ;s value as variable is void sh-ancestor-alist

I wasn't able to resolve it.=C2=A0 I suspect the issue is on my end, su= ch as a mixed install or the need to=C2=A0 re-byte-compile=C2=A0 `sh-script= .el'.=C2=A0

To run Org from source I do one of the following:

;; When using my init
(use-package org :straight (:local-repo "/home/ahab/Projects/org-mode&= quot;))

;; When running emacs -q
(add-to-list 'load-path "/home/ahab/Projects/org-mode/lisp")<= br> (require 'org-loaddefs)

If I need to recompile Emacs byte code, I'm not sure how I'd do tha= t since I'm running Guix and those files live in the write protected /g= nu/store.


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

=
--0000000000001a666705f8c0bb5c--