From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +Bi5NUOLtmO3HgEAbAwnHQ (envelope-from ) for ; Thu, 05 Jan 2023 09:33:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +N2tNUOLtmPIVAEA9RJhRA (envelope-from ) for ; Thu, 05 Jan 2023 09:33:07 +0100 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 86367A3E7 for ; Thu, 5 Jan 2023 09:33:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDLfQ-00045P-CS; Thu, 05 Jan 2023 03:32:04 -0500 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 1pDLfB-00040U-2y for emacs-orgmode@gnu.org; Thu, 05 Jan 2023 03:32:00 -0500 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 1pDLf8-0000iu-It for emacs-orgmode@gnu.org; Thu, 05 Jan 2023 03:31:48 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2CD4D240452 for ; Thu, 5 Jan 2023 09:31:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672907504; bh=MNneWxEvcl14lFJf2lJ0t4JJzUCzw0vo+TeAMR/quks=; h=From:To:Cc:Subject:Date:From; b=irahpPxoWnCEklrUVyTaj9zdjtx2YgsF35YYxnLSHcK6L/xIDwOOC1gsZD1L4FhLo ERLpAF54x2dmZWXuF9JvnKeH03mQm7TQkVSUKsWHyNpI4bLFUwffiTejbQbtOsJmxE n/JEY0WtAlnvbdjd9lvPPmzSmvSWkFbvCMXAIVB2isBj7gj/CcGVgqkBwv7qbIm/c7 JciZn8ZVYdMc7kRMb+4tH7ymUeTX40v/A30gkSkV7OkIZrFtBahpqfmoHFv/3/XXRD lbo31rgVJNHgeJSgAlGqYzD9K0JNiAo1qgQvEFBV31DGNgjU4O7BvfyhyXHcg84l4p 0WS8hnwJ2hAFg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nnfp72Brqz6tmJ; Thu, 5 Jan 2023 09:31:43 +0100 (CET) From: Ihor Radchenko To: Matt Cc: emacs-orgmode Subject: Re: Refactor org-babel-shell-initialize? (was Re: ob-shell intentions and paperwork (was Bash results broken?)) In-Reply-To: <87h6x8kluc.fsf@localhost> References: <878rj7s0ti.fsf@localhost> <1853354beb4.fce54d8d902653.6359367327256505471@excalamus.com> <18555580d75.d7b471f9370716.1497263973038999899@excalamus.com> <87edsiv54k.fsf@localhost> <18561866f8c.f22a62b3866025.8634474263936272339@excalamus.com> <87r0wfafzu.fsf@localhost> <18570c77eb9.119e6407e40169.7047396916380100893@excalamus.com> <87h6x8kluc.fsf@localhost> Date: Thu, 05 Jan 2023 08:32:15 +0000 Message-ID: <874jt5idps.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; 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, 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672907587; 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=UadOnbN+VCZ4w20uq/DCp21/MlgId2OZPOPWTFfMKHA=; b=k0VZXmwTQkrZvnyF9BhQVyyYgnLfkji6MMQ+B+rBLH5kzw8xZNbgQqJBF1Z8YJVVLUuwQT MYtGfjM88VcsrDdOvzDtNfqjAYinCVbFmNhbVNFoovn/gac7ysU2vrjPiNZsdALRVSezpj KKVp6wJ4wv/1xyvCmRPa5NKzZM+mhQilJ2/XbVJvsuMRcp4tGpI7wKtHPSDA/+ewufOTBM WYDT3IkSkLhBQiRm/ScRVw31Z7Ki8MZVvkwkhZJScHS2r/QOXPi+Q8EjH0L4mYi7XvPTAp KETmFApa7BRgxwmf7/oPtzxqS1dshnZCLco2Xz0BMqM1cSpU/WVPfsRn6LfrOw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=irahpPxo; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672907587; a=rsa-sha256; cv=none; b=I6Ra86ulNWQ/CV/FU6l0bZu0MAxuzJotTnLfndwTs8iFDvZIOql0hBo+o+B39qS2Ki46UH OjUuJw6FzmG1OcZlDAyAimTml8D6yX9YXrOzladR3EWkKzdLK84v2cpNxIMlIDgQQcdE3w DmOOJJBqBFd/Y3Q/rsGz4P8G00FqAk/+7/dFIfuLXQ9yfrvVSn0H6Toboxv7Hx0w6ys6cF cY9vQrH4zGOlHzr9SOS6tIIjZvyloe9rOpNbMoH/JfG2RawQclFTRENaTk9/NKclcJRq2y Ph049wO+ILuXb1LNZQX+KlPEe8WUZ9y8jEVEwOiXs7MKnOKvLLvj358zMNSA2g== X-Spam-Score: -4.50 X-Migadu-Queue-Id: 86367A3E7 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=irahpPxo; 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"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.50 X-TUID: s0ZXm1se24s0 Ihor Radchenko writes: >> Is there a way to see the definition of`org-babel-execute:csh' using the current `org-babel-shell-initialize', that is, when generated by a function? > > https://github.com/Wilfred/helpful displays the function code in such > scenario. Probably, I need to raise this problem on emacs-devel. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60568 >> (alist-get "csh" org-babel-shell-set-prompt-commands nil nil 'equal) >> >> Then, it will return the prompt associated with "csh". > > Good point. Would you mind making a patch? Fixed on bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=93339de71 >> >> I'm curious your thoughts about removing the `:set' function from `org-babel-shell-names' and using `add-variable-watcher' instead. In my explorations, the watcher gets called when using customize, as well as when a new shell is added to `org-babel-shell-names' using `add-to-list'. > > I have never seen using variable watcher for this purpose. > I suggest asking on emacs-devel first to hear what they think of it. https://yhetil.org/emacs-devel/87a62xiewa.fsf@localhost/T/#u -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at