From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id cFxJJk0yymZAOwEA62LTzQ:P1 (envelope-from ) for ; Sat, 24 Aug 2024 19:19:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id cFxJJk0yymZAOwEA62LTzQ (envelope-from ) for ; Sat, 24 Aug 2024 21:19:41 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=cATeS7+C; dmarc=pass (policy=none) header.from=posteo.de; 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=1724527181; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=T0pYW8TLwvsMqdPgS04ZbsGRwiOmZx7ZS+SqUIHEPjI=; b=NyNk76BRhiZ8svckFTjWdUVmrC9994w2hksaxcLreJqwAyt7BogoRQ6vFs2MxdwJWcApl2 rxN6zvMoWw4sSJV3/95MA2I+w4a5n/gCNEHPTKDdzBIvAKkJfwvQH2S8XdfXV/pNzpvTvx qcqcjWxuH9cHsuHi/3UkErDX6WwLFqmPpKiJ0Uw7NLzj6lJ/DozPaWVWOXPU8BsfOH3fj0 xlwAU2m1RpCuGJ57J3e4S8euUmRdkcfy4Ecj47LjvRiX5mCZX6UEtAYj8qS4K6WObNsNAR Hd+56DVxREame9sfXiMOA/xywm9axHQT/s48l7TVdTH63j2RqDyeF+MFuCYyTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724527181; a=rsa-sha256; cv=none; b=Wm1qlSm1bYQwJ/wj7BDcI+sISn2p7isGYp3NHzdswge57oOyq8XiVpgUaiMpbN6r5Ftg/T 1udYIVhNoC8Yt1kEBi5S+CKmpSduj5LNQ290koEhVgZxe4nBrV9/rxpreQV7UBZGd6R3MQ zfX7CLexjshBY4JVegw7mZ+y4D1FCCt6ZRfeJxBmUAbN6UwYVir9QkUbcvo5ZmpHq1aqHG tgW/6dnCWG7RpXUEawn+hOYkQs8nzGsC0SQYM13EzXy+TZvSSdnhQ3pjCLRmgu7WZ05hd5 h06hb+BDOhsV/my56+A2VkJ/TONw+ilU+QDfxNjMxaRxCcx3/ZrD5mPiOSX1eQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=cATeS7+C; dmarc=pass (policy=none) header.from=posteo.de; 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" 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 EAC757C4F8 for ; Sat, 24 Aug 2024 21:19:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shwHe-00033F-NE; Sat, 24 Aug 2024 15:18: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 1shwHa-00032y-OH for emacs-orgmode@gnu.org; Sat, 24 Aug 2024 15:18:42 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shwHY-0002kp-1J for emacs-orgmode@gnu.org; Sat, 24 Aug 2024 15:18:42 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5E2C2240027 for ; Sat, 24 Aug 2024 21:18:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1724527115; bh=GByZnrg8VCpVuktk55K5/Ng76AAAnMhSKi2mukXuvg4=; h=Message-ID:Date:MIME-Version:From:To:Subject:Content-Type: Content-Transfer-Encoding:From; b=cATeS7+CYb2yS2uJHpK6kgpvcO+/VKZUh7dtqowQIQU8SIjXnL4u0KYLe5cTrUo65 ZwhKnHlA9eRreau7e++fLAKo24DunRC+XZEnDno+bEUKuEiCk6WIlZ01arzE1V2II0 O+LlnEVne093VLqPq5E1dVT1R1JL+qEd9FyP4K4X4wG8DAMqs+ON2fa8o3M/8hDuuk 94yfcuW7HUWVkoxAHoGexgEAc/roKVntrdI7RxqADw53Ug/+DRhpWBCugFG2Ybpf3/ RJVWfy6jMTiyhKmrY1S134Lpz6EVf9rkTLs6iH5XPlnrFRbqYmmjfE08O/EfWEekxL ZLsVkRqXpkOew== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Wrmty6YFpz9rxD for ; Sat, 24 Aug 2024 21:18:34 +0200 (CEST) Message-ID: Date: Sat, 24 Aug 2024 19:18:34 +0000 MIME-Version: 1.0 From: Zelphir Kaltstahl Content-Language: en-US To: Org Mode List Subject: Question regarding org-babel-eval and ob-erlang Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.20 X-Spam-Score: -8.20 X-Migadu-Queue-Id: EAC757C4F8 X-Migadu-Scanner: mx11.migadu.com X-TUID: FJrrxrjSEa1b Hello! I have questions regarding `org-babel-eval'. Does `org-babel-eval' take into account the `PATH' or `exec-path' variables, when searching for executables/binaries to run source blocks? More specifically in my experiments with `ob-erlang' it seems not to pick up/find binaries, which are in the first directory on the `PATH' and Emacs variable `exec-path'. `ob-erlang' calls `org-babel-eval' at https://github.com/xfwduke/ob-erlang/blob/a029c23902b4ad73b84f262a7fc5b98d87b63dfd/ob-erlang.el#L63-L68. That is how I came to `org-babel-eval'. I am trying to get `ob-erlang' to work with an `emacs' and an `erlang' installed inside a guix profile. There is a repository, where I have a kind of example: https://codeberg.org/ZelphirKaltstahl/learn-you-some-erlang-workthrough/src/commit/daa84469286c05c9c4854c71e34f26b42da7b7c1. The readme has instructions of how I create a guix profile and in the following github issue of `ob-erlang' I describe my finding: https://github.com/xfwduke/ob-erlang/issues/1. In short: Even though a directory `guix-profile/bin' is the first thing on the `PATH' and `exec-path' of Emacs, `org-babel-eval' does not seem to find `erlc' and `erl'. What more do I need to do, in order to make org-babel find the Erlang executables? Or is this a fault in `ob-erlang' and it shouldn't call `org-babel-eval' like that? I see in the source code of org-mode, that `org-babel-eval' calls `org-babel--shell-command-on-region', but I failed to identify so far, where the portions of the code are, that are responsible for looking up binaries on the `PATH' directories. I would like to create a merge request for `ob-erlang', fixing this behavior, possibly introducing a new defcustom, as someone mentioned in the above linked issue. I found the part where "erl" is in the code of `ob-erlang', but now I don't know how to proceed and whether it is really necessary, or there is a simple solution to make org-babel find the binaries on the `PATH' or `exec-path'. My goal is to make the project self-contained. I do not want to install Erlang system-wide and hard-code `PATH' or similar things. I intentionally use guix profile to have things local in the project directory. I am using guix profile instead of guix shell, in order to have a predictable bin directory, that I can add to `PATH'. Best regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl, https://codeberg.org/ZelphirKaltstahl