From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EKM4D69pZmZwyAAAqHPOHw:P1 (envelope-from ) for ; Mon, 10 Jun 2024 02:49:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id EKM4D69pZmZwyAAAqHPOHw (envelope-from ) for ; Mon, 10 Jun 2024 04:49:19 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EjjHlj3Z; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717987759; a=rsa-sha256; cv=none; b=Dx0BXspM+BeWsjVmvDfFFuka+pdF04DgdC8Lfk3Hd8NSXHbe2Jzj1igU6GsXE95jY+iURk Q6bFenLskEcZOQ5i9QePcpSNlg3Y0TOgcFJxVwkw0YboWuWRK9QUh2LUpLAVMdYlteaUnZ hmQ5UH0GbJn+2zITUCU/SMG0htWpbwnT6lspGJE0miS8hqRijLypWN02fCsZH2TztxvUmA W0+DoL7n6rVYmP0RHXog0+CXiXP+EEo8Nr133kRLPVWpwsBVNOMjQsKJzl15iMWE+bLaOa PUjof3SkMOMvnLHpeRorKNZjXUGodyj8mWOlFk1IRo+Axozf7wUyieBMMuJoEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EjjHlj3Z; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717987759; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=In68D36dyG8ga7oyn89EzP+j3hbR65qMURR7OsFG5RQ=; b=PRyi6Po9Wjnoo1rHSzgOGb3MoXM7UYqJHFNJSvKVpOfm8tqSwR7EWBpz8QXvgFgUBtkOjC qe9Zaftev5jFFuVjTLYk9BR3NOwWgkYp/cnpbb+k7DydQ0UDocx7QYu9jbIpJqCJdt0MdD vs0/tUHqX8PKtFXfkjLSHgwstkw1NQlXQs1igzgeMAQ/Dh9KVRs4x+yURZzuAbzlqsfOXY q0itZmklFpwEo2OZk+aOF6jHKt5DruB7o9h1TFy8gZvax/UkUNZuCZTiTNMyLJX8h7Y80l 2r/h3N3HiTDsKgHBjjEmGms+arrQnyB0rgH2yWFxdtGZFjVu/BSbEcf6x9OhiA== 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 081FF6F737 for ; Mon, 10 Jun 2024 04:49:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGV4y-0004hL-Kg; Sun, 09 Jun 2024 22:48:16 -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 1sGV4w-0004h4-OU for emacs-orgmode@gnu.org; Sun, 09 Jun 2024 22:48:14 -0400 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sGV4v-0007F6-9A for emacs-orgmode@gnu.org; Sun, 09 Jun 2024 22:48:14 -0400 Received: by mail-qt1-x844.google.com with SMTP id d75a77b69052e-440577f6753so609761cf.2 for ; Sun, 09 Jun 2024 19:48:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717987692; x=1718592492; darn=gnu.org; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=In68D36dyG8ga7oyn89EzP+j3hbR65qMURR7OsFG5RQ=; b=EjjHlj3ZLUL4vgkIi5aSTc3+7JatCHDkdUGPgGXjNMVjVc2oPG94h6/HIi9bAHeF3G OOk89Fv7MBL11UYzKqYN8KFAdsE4DuSnUD6Y7Zm5/ZGdZDshLq4neA5nByWOUcuqdaYF qOz7SWKR7SSXj0pqlrF3VRY5yMs3cpqkbOgXRUmsGiVLwNw+WM0PlMlbL7UVOYC3F/fg dUSoUKAIFTO3hNI8uPvCnv+ArG0fIjaZK+ljaH+1nbMVnXCZ5XuV/vnmL+pfAuYKMtE0 bqEQp+rMX92G6J6Q4ye373hyQPYQE0pqecN5KpOnhxJF19XEYvjHIEFBoIvS0P/KOctH fn8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717987692; x=1718592492; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=In68D36dyG8ga7oyn89EzP+j3hbR65qMURR7OsFG5RQ=; b=lpj9RvYFChBx/RhCwxVgL7FdcZVQST7yuD+ccrWfq60GhZO0bJITaqCfMqtyFb/hE1 6BYQuoVDxoZ22r32OB/sK4qipTiAzEqDCeJ2TqsKa2Vdn4OS7bItByFlPDuywNOVcu4A Z6B7Jm47Ng87ecor7Hr+oOqQiEdYr7CjaSJgUhTmMFJ4AvxGUKXkZkORiY+SkUjjBXSz SH+4HB8iy6KQ3zhoB7zSqHkuAswNfx1WT9vrxgXtWdmb1hFXzkLZnIkpx1HyOBt7P/34 TTOOw649G4rgn5F7o2GzqHmhdTsMmD5sspo7dAgY4sUxt8LH6RLRt8taAQJDhX42hih6 Cjpg== X-Gm-Message-State: AOJu0YxC3aveL6JCZKraTXRtQXwaRw20O7QAL39nq/o63qLqtgbZ+I38 Z1jTJ9XqTh7ZBvcSKBlI+anMfPoTX+m6UXjsL4CbNY8UuIuQ4OT0IjCtcz/x X-Google-Smtp-Source: AGHT+IFn4HYhSECJNc3mkKcWaJZhFir5F97vp6XojbolG2hgffJ/JI7HbhF+k3qRA1I/W5YgWtujyw== X-Received: by 2002:ac8:588d:0:b0:440:aedb:8c9c with SMTP id d75a77b69052e-440aedb8ed9mr21873531cf.6.1717987691940; Sun, 09 Jun 2024 19:48:11 -0700 (PDT) Received: from gnus (static-198-54-132-177.cust.tzulo.com. [198.54.132.177]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4405daf10a4sm15272031cf.13.2024.06.09.19.48.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 19:48:11 -0700 (PDT) From: Suhail Singh To: Org mailing list Subject: ob-shell: possibly missing initiate-session functions? Date: Sun, 09 Jun 2024 22:48:10 -0400 Message-ID: <87cyop3445.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::844; envelope-from=suhailsingh247@gmail.com; helo=mail-qt1-x844.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: , 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 X-Migadu-Queue-Id: 081FF6F737 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.67 X-Spam-Score: -8.67 X-TUID: oaazSJAqRHtl Currently (Org 9.7.3), org-babel-switch-to-session invokes org-babel-initiate-session which tries to invoke org-babel--initiate-session. On a related note, ob-shell defines org-babel-sh-initiate-session (and uses it within org-babel-execute:shell). However, there are no definitions for org-babel-shell-initiate-session nor org-babel-bash-initiate-session etc. This means that trying to use org-metadown (which invokes org-babel-switch-to-session) on shell and bash language session blocks results in the following errors respectively: #+begin_comment org-babel-initiate-session: No org-babel-initiate-session function for shell! org-babel-initiate-session: No org-babel-initiate-session function for bash! #+end_comment Is this a bug? If so, does org-babel-shell-initialize need to be patched to set up function aliases pointing to org-babel-sh-initiate-session ? FWIW, I have been using such aliases in my personal config for bash and shell language blocks and they seem to behave as expected. -- Suhail