From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iMI4GGtGxGUtawAAe85BDQ:P1 (envelope-from ) for ; Thu, 08 Feb 2024 04:11:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id iMI4GGtGxGUtawAAe85BDQ (envelope-from ) for ; Thu, 08 Feb 2024 04:11:39 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=OMbzVBJE; 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=1707361899; a=rsa-sha256; cv=none; b=MXEBCitoKYfrgz+/67Cqyu1OivbQ2ykwd2CAZknQf2qG/Vo1gbWhxJZFe96Y1sSj0mJczN X88b0SGh3yDdL1MN2OjUYtgffZxpFa4aPsUSmMgvajebEkCp+bSByTf9XRUB8hgSlwNQ1H dZsz11JgN0Fr5ZSr1ezf5fp9k1CRe+Nc5kgb4+41A0r8BjC3YS1XJ9BCjsVwnmSRNz+agD qa6xWAlCFFebiIYGJCC4BKbHvxfAX5H+AfP05o2DbnijYYdBG1Ba6BmI+yAwTBDK1Zaqoe PoCq9Mof0ierRW9vcIppog1ecz44VlREQofIeVDN7Or6GGZ/mDc7eKlMx/lUyQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=OMbzVBJE; 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=1707361899; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=6TSz8BMiv4p81AftISVM5mU4BUbliQPFJfKi0VvrrgU=; b=Ox4xmd/mGInr7vnCEQx9C1Y/R6TIA68+Ag9mUP4oF/RLhulha95wxU8B2NAEam43iqraA9 uZO4cB9t9oNf4IrsKOWwBE5XaZcx5mbFGWKBF1fuNwFMxqjQCFv4TsWOgIShFr2gryqt3u jx2+qVfljJfCPwy9TKL2rQQUhhEVgMUWhPQG9j5PUnWz3OUNyxyZkxl5xmxWF6Cf3zy24f /TnUvErS28SaM0ienT+a53W3WaWCA4Uixiwf0LkqPxPR3U71qfQHAjqQ0u9/Qe1RN/Ie4n IXhkId4F0hMae75Am+aqNsatAupd8z8JN8j9+dHBsJQSI3VFIbDJlK3w72AZOA== 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 DBA617FF80 for ; Thu, 8 Feb 2024 04:11:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXume-000789-5W; Wed, 07 Feb 2024 22:09: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 1rXumc-0006ug-4H for emacs-orgmode@gnu.org; Wed, 07 Feb 2024 22:09:02 -0500 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXumW-0004ef-9U for emacs-orgmode@gnu.org; Wed, 07 Feb 2024 22:09:01 -0500 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1d70b0e521eso10838505ad.1 for ; Wed, 07 Feb 2024 19:08:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707361734; x=1707966534; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=6TSz8BMiv4p81AftISVM5mU4BUbliQPFJfKi0VvrrgU=; b=OMbzVBJE3CAyoB/JhZYdsZxkLx1zjHEiKwmsrrhkjcRrIUVMrsYuaawFyY6/LY2ERo 50VPFDP7eoOnB6WTeGdnriMlCl69+X5H9rbe+pWaa0j9QGLext+8q6N3RxS+v/awrAmL EsN6qII4x3gMk/se8Dr5aTCXv/n1EGlEMqT2bZVKNq+YgG5FwcPc2m4xZ4QeHYbOwoJI 2exYRaIacDmSGEv5EI9MxEB58Erz3hUNCBfuGRK19+EG2rHEYVMyiNzLnWBm6qVEpqW0 EtnOn5IGlR21MipJ1PbNOf9tbAD4kArhAQq2HaU1a6l1mhgi6lKEa/qJv00L/VMKr7cO p9Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707361734; x=1707966534; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6TSz8BMiv4p81AftISVM5mU4BUbliQPFJfKi0VvrrgU=; b=h82gjxXwrB+6JffqIUgity9v+pLFwluQavZqeUcJyvluaZabJDScBEG1tn2ODIddva 5Zp4I3zxz/BhIIIsiBZtK5a0KiPdYDzlsyBLw1/mYBiqGnKUb4+LQ5AnFc9zCxxsIELw K5b60bj4SBFtX7Zt6zsaBzu3lxdXT5kLAjOWsmQKV+ueO9QulAAr0aB55NZrnflNwnzV tCiIvb5tbBGG4d+vLbobEN/3LL2hx6pC1L7YOIIUjD9zvbxJpKLW5xV6X0t21nmSrzCm Si3a1S1C+35GUIUzhh9+pDd3uANGPCMC2X/QNq9JP7lA3xpLj5cv+4cnqyyxfYmM0tPP O77Q== X-Gm-Message-State: AOJu0YxF8T9FygLduI54PUTo1HE7YTXsvdZkjTCKnTh8oNy0GQ02ugoj lnyV7Ec0HsDImKI8p5iTVNlykfqRpKwNOLglp2ifFZ+ztws4LEOf X-Google-Smtp-Source: AGHT+IEbOWackgNQluWnywLN/jljmBvgvIi7nzEW98sad37qzCDJqM8ijZm5ycEHvkFuWC/Hgmq4+g== X-Received: by 2002:a17:902:d4c5:b0:1d7:5943:21b8 with SMTP id o5-20020a170902d4c500b001d7594321b8mr8781645plg.16.1707361733711; Wed, 07 Feb 2024 19:08:53 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXmePcK2IKCkj/Q/q6K8LXnOLXqSUs6yEC+a+CODz1bfgesxKsdCvFyK9WwYConmWMkuGcnEo4Bi82aF2EBKT232mCE05M= Received: from localhost (157-131-78-143.fiber.dynamic.sonic.net. [157.131.78.143]) by smtp.gmail.com with ESMTPSA id g23-20020a1709029f9700b001d8c8980527sm2206673plq.139.2024.02.07.19.08.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 19:08:52 -0800 (PST) From: Jack Kamm To: Ihor Radchenko Cc: Nasser Alkmim , emacs-orgmode@gnu.org Subject: Re: Async Python src block behavior with :dir header property In-Reply-To: <87mssdg00o.fsf@localhost> References: <87il3a55bg.fsf@gmail.com> <8734udvjai.fsf@localhost> <86plxhely9.fsf@gmail.com> <8734udoejo.fsf@localhost> <86y1c5cztv.fsf@gmail.com> <875xz9o4nj.fsf@localhost> <87plxg95u4.fsf@gmail.com> <87msskmm47.fsf@localhost> <87mssi8ht2.fsf@gmail.com> <87plxdmtq3.fsf@localhost> <87bk8x81g3.fsf@gmail.com> <87y1c019a7.fsf@localhost> <877cjj915y.fsf@gmail.com> <87r0hr9f3b.fsf@localhost> <871q9q84id.fsf@gmail.com> <87mssdg00o.fsf@localhost> Date: Wed, 07 Feb 2024 19:08:51 -0800 Message-ID: <87v86z7iv0.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=jackkamm@gmail.com; helo=mail-pl1-x631.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, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -7.51 X-Migadu-Queue-Id: DBA617FF80 X-Migadu-Spam-Score: -7.51 X-TUID: DJ66iJHw+KBg Ihor Radchenko writes: > +(defun org-babel-session-buffer (&optional info) > + "Return buffer name for session associated with current code block. > +Return nil when no such live buffer with process exists. > +When INFO is non-nil, it should be a list returned by > +`org-babel-get-src-block-info'. > +This function uses org-babel-session-buffer: function to > +retrieve backend-specific session buffer name." > + (when-let* ((info (or info (org-babel-get-src-block-info 'no-eval))) > + (lang (nth 0 info)) > + (session (cdr (assq :session (nth 2 info)))) > + (cmd (intern (concat "org-babel-session-buffer:" lang))) > + buffer-name) On executing any python session block I am getting the following error which I think is caused by the above: Debugger entered--Lisp error: (void-variable buffer-name) Also, make shows a byte-compiler warning about this: Compiling /home/jack/src/org-mode/2024-01-async-file-results-dir/lisp/ob-= core.el... =20=20 In org-babel-session-buffer: ob-core.el:785:15: Warning: reference to free variable =E2=80=98buffer-na= me=E2=80=99