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 ms5.migadu.com with LMTPS id kBIJJ0uua2JeIAAAbAwnHQ (envelope-from ) for ; Fri, 29 Apr 2022 11:22:19 +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 GEIuJ0uua2IDXwEA9RJhRA (envelope-from ) for ; Fri, 29 Apr 2022 11:22: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 484BE1DFD6 for ; Fri, 29 Apr 2022 11:22:19 +0200 (CEST) Received: from localhost ([::1]:48434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkMpO-0002D5-6o for larch@yhetil.org; Fri, 29 Apr 2022 05:22:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkMmv-0000lK-3k for emacs-orgmode@gnu.org; Fri, 29 Apr 2022 05:19:46 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:37597) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkMmt-0003xG-0f for emacs-orgmode@gnu.org; Fri, 29 Apr 2022 05:19:44 -0400 Received: by mail-pl1-x631.google.com with SMTP id b12so6644909plg.4 for ; Fri, 29 Apr 2022 02:19:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=QH9JT6q4o1q4nYDNd2UWCeOtlPWbdfZzfjQnRC9ZCa0=; b=fwprOZSdUdZez4hGDicJXcmJKDmk3HKq4o/LUpgrQ51fGK9PL1PPiT7n+Wj9GOAQt8 03x4fy9LVMvsdH15atUnWpJAV+EivQSxKBkW8EoxlYB66N78LGRJTgOM9IA2ytawMQmb 5m6Gap7+YJIrhu8KtNeAwRiOjOkPlsmkbSn3S4qauFD8ac9LFIhzZcHD37BzkBba4yen Q5TGoVb+m3Kcd8Q5rrG91R5jeb4bMeDbzB6meAF53sO+1ly+u6mEyNpeUyTXz3UG+fuY Ts6e21vs71viG8yU9+mLh3oOOrHqHXkkFJcHXApNZgJ4z28wW66cirTXeZtKkOBS050b AIFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=QH9JT6q4o1q4nYDNd2UWCeOtlPWbdfZzfjQnRC9ZCa0=; b=v9ZJZ/0uvN5OECunihJ6xSWjTbKnPNqkhTmSTIPpUWPBsWpomWgyjMpkKl4SY7G0On xwqKwR9e4f3brW07RSCKudChPkVASoNOakIWUOCYMrguhzMhlLgEXB15K+Tfc2VLQkdA m8QdT/tDjGFuclXZtI80hqQIBGAXhu1L6SVVMpEmVKO5EXzGPQaHCiHXoXQrhYzaqOzj crXzN8Cpk6vHgXr3o+VNRzMy2ZYRxrdLN2y+YC+imOJXF4ImryvithQcaYilf1ugKl5m IvO+v2YJcAYJHHGP17XfSJjGSjl2ytBGfCVrbQNSqPNwcOAeVkoIq1pRkIsjcjSIjVE7 tNkg== X-Gm-Message-State: AOAM530iKModwsemEGtxw7K/vinuB3RE5OAJjD8i3oPSiQ9g0LUtqr4s eRPNHhjxJoB0THBJbszHrDE= X-Google-Smtp-Source: ABdhPJzgDtGueh8wbdJmfpRceyxONnmRb+CxopFDq8av+KX8KmvvxCwe5P1BV8E/6REUqa1zmbNfgg== X-Received: by 2002:a17:902:6ac1:b0:158:a295:ba71 with SMTP id i1-20020a1709026ac100b00158a295ba71mr37786212plt.49.1651223981264; Fri, 29 Apr 2022 02:19:41 -0700 (PDT) Received: from localhost ([192.161.60.140]) by smtp.gmail.com with ESMTPSA id k17-20020a628e11000000b0050d8d373331sm2399959pfe.214.2022.04.29.02.19.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 02:19:40 -0700 (PDT) From: Ihor Radchenko To: Alan Ruttenberg Subject: Re: ob-lisp determining package In-Reply-To: References: Date: Fri, 29 Apr 2022 17:20:31 +0800 Message-ID: <871qxg8cv4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=yantar92@gmail.com; helo=mail-pl1-x631.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651224139; 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=QH9JT6q4o1q4nYDNd2UWCeOtlPWbdfZzfjQnRC9ZCa0=; b=nzqnAKH+aYilxfrhYcGhmsnhm0LSfVFvGLkwhWREaQDaFZfPEJzX/3nweSKE98Alki0jBN MMYXeG6M5F0MqVPmCrB4WgeQcUqo51xNnHkBWT1lIWBjFXRO0gimtrszkcNqjUV9KnL4BC A8StWrJaJU8fOVJrJU5zCxb3GVbPSelY9gHFYnK670mgmzDoeAulKmkhkHhHTyZGmvQvPs KaCyFsWzlQ2pMSX47F1z6aCdCo7BDRAGQzC2MaDRKyyHC0OCOYcij9W4ciOnaxa47ClXXt 7TzU1REG2z/IgSxwbzCOehy0jbb1JiZ0cSoemo5pZgHtI0c3+6ZoSYBvwkT32g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651224139; a=rsa-sha256; cv=none; b=iQCgrE3mijyjDEKy2aWiLNGQasazwjdd9WCqotbQXWZ6UFq1nyzkYA0yFwWv8azgRfcdQd LCgQreNl6lanDZasQ7Z8CG69a/CfSG27oPLuSoOOSyfCsWBYjrU3yQnAInRQNrfPM7vgKL l9ljVOxnBFGVLITaqSlf0Zlle4mYSp5uCg9czQtcjBmrpT8eBzYUPW/hBEf2sIJSNhWeQR FzZFhTlDETkPrnBtPmn8UqQp4KryFLqsE2d0KDCE/DXq5tLJV2bjMIf671R8LKEdG0Utmq VbDNaaaNpH2h1no2UfjM7YRpJHZC3Z+TVkYidtEs/3cMiOR47HtMki82dUpptQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fwprOZSd; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -3.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fwprOZSd; dmarc=pass (policy=none) header.from=gmail.com; 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-Queue-Id: 484BE1DFD6 X-Spam-Score: -3.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: NFsOuwOzet3w Alan Ruttenberg writes: > I propose that the package determination be changed to > > (or (cdr (assq :package params)) (funcall org-babel-lisp-package-fn)) > > with org-babel-lisp-package-fn being bound analogous to how > org-babel-lisp-eval-function is: > > (require (pcase org-babel-lisp-package-fn > (`slime-current-package 'slime) > (`sly-current-pacakge 'sly))) > > This (approximately) seems to work fine in my emacs. However, I am using an > older version of emacs/org-mode and so am not submitted a patch, which > would be against slightly different code. Did you have a chance to test your changes against the latest Org? If everything works fine, could you prepare a patch? best, Ihor