From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id WMyLGLgTxWUkfwAAe85BDQ:P1 (envelope-from ) for ; Thu, 08 Feb 2024 18:47:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id WMyLGLgTxWUkfwAAe85BDQ (envelope-from ) for ; Thu, 08 Feb 2024 18:47:36 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=GDLdf9ty; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707414456; 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=UHUcolgTnSxkttfqHvjwrZ/au2kbKCnvihJd8YU7GOA=; b=QuloZcYEKY2mEqyyTFPCyc14VdjobaOKkCPNSFOHi5GF+Uzpc6x2PBtDUDrBXgDxAozOY1 f4hTwTdHH1A7FFci0tLftsnZrG3uhBc53aXrr0jL/yZDRjNfsqWdaH1xyEAcrGv9I4P2hs HYXjr9p/xEtiFxdmdzXVTTk8zIonAVNMxumYBnKRMHdwE6LqFSlpvYKKuMLA2JFxov8Kgt z1dEhfIPRNaMoS3v2wuCk+FnN+MmF5OrjynWyPYKgQSuJq7pnez2dUnTdx16U3AqI+Qsol iEH9UQDzU3q+HlDWWYYZKEKSi+vIgIEwiJLQdYT5WVmwR76EcrdD42ODFDuN+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=GDLdf9ty; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707414456; a=rsa-sha256; cv=none; b=Zdd32KkJhVlgVnYvFVGnYxs5aBTOEUJcUW1wCn1jqyWi/O2LNISlvYEXOtPm2WdQSh+Hay OzIo/cto4QS0zz/vmSDzUJlIT2OHxJP1F0/6QUbbPZndb3k0cxkqUWckysuupPjU0iQMbS 22rqTjk/XMy5F4OFzVBsZXrQfKqj1Q8z416zE1t+gdHNPN7GYvIEbosZzE7TH4PPsfI6fg ecXuG1gZ6UIBGzn7HFT448t2k/AjW8B4Ov6eJdqLGFUQkHUoSlBjgFI1Q6St0ta52pI0Sa Qjrvb3gkY3evGW7IKkuDo4QeIvuehTKuxLZSll7+IUsCgtd/XlTJV+Li7U9PHA== 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 45DE33F61D for ; Thu, 8 Feb 2024 18:47:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rY8U4-0004Lz-LZ; Thu, 08 Feb 2024 12:46:48 -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 1rY8Ty-0004LC-KQ for emacs-orgmode@gnu.org; Thu, 08 Feb 2024 12:46:42 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rY8Tx-0001R4-6N for emacs-orgmode@gnu.org; Thu, 08 Feb 2024 12:46:42 -0500 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-33b5cdbbe4dso258687f8f.0 for ; Thu, 08 Feb 2024 09:46:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707414398; x=1708019198; darn=gnu.org; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:from:to:cc:subject:date:message-id:reply-to; bh=UHUcolgTnSxkttfqHvjwrZ/au2kbKCnvihJd8YU7GOA=; b=GDLdf9tyYy3+Nluny0hXduaIF89ewLUxG1ierAieDfu2MtnL0UQmoJUOEQpI7AiU3k AlooEKmR4jdt9UmGDnHzLDoFmYoTSHhhF95518sbOkXmlihxK/7PXr4+oW1Q4pjhnT86 AStRln9fy/9OurStLUXe+I7dQf7mp5LzCmUv578qoO3TOmA8hRyz8MkL2ahV/Hu07p3l Ro8N6TVmvMgUjcg7MhcHDZKftVGRKxolaNMf3rWJ+9MHYNTAKzHH2ZFQtBzT+Y/xXT4A MLcnz+2wsw3Xcf14GlJHEIKfVNrneKAF3pIg18CLjrJxqeFSEjTlUHJB6Baatrjyz+wY nxtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707414398; x=1708019198; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UHUcolgTnSxkttfqHvjwrZ/au2kbKCnvihJd8YU7GOA=; b=tXWHY5na1ZRH75vbgTaFoiFUDFEijSxdvzrSTbofatc/M2PmwRz2Zy7MiJiLBTILpN T2utqLET3vRiXoFB1bvzxsTq3h7GRMp7hdmjqMdo0fbVXKXtqwy8StHjatrUc0HbV9Au ukx/zSPevVdLMDyFnliN9Fn3NzmIZk1bzz3lcOIGlwKTKCGh4WaSZM0ZfGgsk3A1XqL1 ZN8zTQEQwRPRJuWZ5TdO0zMELA41cSLVCT7Zz7nq76PcFMmWZQ2hRgqLnovsY0MCQrjr 1Wq4gvXq7LjiHs69e/AbKwyDtuzsGWSkzusVd3K7mWR3YxjQ6ru6J/mosIsBi8wht8SG UxBA== X-Forwarded-Encrypted: i=1; AJvYcCWdDcfBRbOsGTV18+MEl/etnH5KAGHg7gHOXyn08S1FEXZJc1ifTWNZdkefTi3LQP53cDWFv4ZGtwkfMfzQxZkyMvLfizs= X-Gm-Message-State: AOJu0YwrUnnzB2TKm4hvJrl5wayXcJQ3+qClDN3Z2PhWsCB/TOiSeIVV 0gBvMJwJI06DJQDhGAhI2SeVNs6IeQPByJ3dSH9wIzsrojogf5puijgJaHCr X-Google-Smtp-Source: AGHT+IEzGN9kyFOrCyn8CxD1W4/pvkCnRk2WPVOfinFOefOMxHBikC9lrjJGQ1s4DewQerxcYHgPFQ== X-Received: by 2002:adf:f790:0:b0:33b:376b:812b with SMTP id q16-20020adff790000000b0033b376b812bmr168296wrp.40.1707414397626; Thu, 08 Feb 2024 09:46:37 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUK/E7keSkH5LqpeoUQHmBXaehY9gZpj8mvTJWkZqisvpKrhwaTkhOGxqS3i5psiims+iKhLzieQ8i7nZ/jrqYKTR2p5hhe2KQXKRDGY3FCaeUO8Db7agyCYg== Received: from keynux ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id bv7-20020a0560001f0700b0033b525dbc70sm2888058wrb.79.2024.02.08.09.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 09:46:37 -0800 (PST) Message-ID: <65c5137d.050a0220.25897.369a@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Thu, 08 Feb 2024 18:46:35 +0100 From: Bruno Barbier To: Ihor Radchenko , Jack Kamm Cc: Nasser Alkmim , emacs-orgmode@gnu.org Subject: Re: Async Python src block behavior with :dir header property In-Reply-To: <87plx7ynai.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> <87v86z7iv0.fsf@gmail.com> <87plx7ynai.fsf@localhost> Date: Thu, 08 Feb 2024 18:46:35 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=brubar.cs@gmail.com; helo=mail-wr1-x42e.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, MSGID_FROM_MTA_HEADER=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-Spam-Score: -4.59 X-Migadu-Queue-Id: 45DE33F61D X-Spam-Score: -4.59 X-Migadu-Scanner: mx11.migadu.com X-TUID: wNG4ZpqsfmRb Ihor Radchenko writes: > Jack Kamm writes: > >> 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) > > That's a mystery. It looks like 'when-let*' doesn't accept symbols without values; it needs real bindings. The form `let*' assigns nil when there are no values, but, with `when-let*', assigning nil would make the whole `when-let' fails. Here is the expansion when using a symbol without a value, which explains both the void-variable error and the compiler message: #+begin_src elisp :results scalar (macroexpand-all '(when-let* (new-var) 7)) #+end_src #+RESULTS: : (let* ((new-var (and t new-var))) (if new-var 7)) Bruno