From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 uLU7KUAORmOnMgAAbAwnHQ (envelope-from ) for ; Wed, 12 Oct 2022 02:45:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mEuZKEAORmNsMgEAG6o9tA (envelope-from ) for ; Wed, 12 Oct 2022 02:45:52 +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 44B682BDD1 for ; Wed, 12 Oct 2022 02:45:52 +0200 (CEST) Received: from localhost ([::1]:53974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiPsc-0005K4-Sn for larch@yhetil.org; Tue, 11 Oct 2022 20:45:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiPrw-0005Js-Vp for emacs-orgmode@gnu.org; Tue, 11 Oct 2022 20:45:08 -0400 Received: from [2409:8a28:603a:44b0:52d2:f5ff:fe16:c591] (port=62018 helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiPru-0001wd-Kb for emacs-orgmode@gnu.org; Tue, 11 Oct 2022 20:45:08 -0400 Received: by Mac-mini.local (Postfix, from userid 501) id D7D1467BAE4B; Wed, 12 Oct 2022 08:44:58 +0800 (CST) References: <875ygtqw77.fsf@localhost> <87fsfvul02.fsf@localhost> User-agent: mu4e 1.8.9; emacs 29.0.50 From: "Christopher M. Miles" To: Ihor Radchenko Cc: Chris Clark , emacs-orgmode@gnu.org Subject: [PATCH] Fix void variable error `cider-buffer-ns` when specifying :backend header argument Date: Wed, 12 Oct 2022 08:40:55 +0800 In-reply-to: <87fsfvul02.fsf@localhost> Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2409:8a28:603a:44b0:52d2:f5ff:fe16:c591 (deferred) Received-SPF: softfail client-ip=2409:8a28:603a:44b0:52d2:f5ff:fe16:c591; envelope-from=numbchild@gmail.com; helo=Mac-mini.local X-Spam_score_int: 25 X-Spam_score: 2.5 X-Spam_bar: ++ X-Spam_report: (2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MSGID_MULTIPLE_AT=1, NML_ADSP_CUSTOM_MED=0.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL_NO_RDNS=0.001 autolearn=no 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: , Reply-To: numbchild@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665535552; h=from:from:sender:sender:reply-to: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; bh=2bbGjYMSilZfcoOL+yC8eP5Znl2AtY7wlH+Kna+6TuA=; b=em46JzIwCCibREO9BOLgozbrJ8/yvpr1pz2MociJQRCnLO7V6V4+gXLN9WBpW/BjiyO7O/ FWqUWB8UM4ufFKH6kO1eXX6vyMpe1IrmtyT/eNJwEBykjWzNPYjlmPIvThA97XhUAh6fsq z+Ws9PMHtl7KrhUlzEZjQbZkXqYmKCXcpYvrDEAVm+s1xkF2otWxcxvyAyLlQ+wRpGCXP1 f3V6uhqGIUd5B9DAk3LnBDxyTJDC6/pTN2cXjmAkYsW8+2RYd54/pxzRo/Ojd+O2D+OEf7 Mi1qfG9mW1eLIwem3bfWV5J0KuoXARqVKY6fh5k796haO4ToMXU4qID4oL70yA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665535552; a=rsa-sha256; cv=none; b=BlB/k313XOFmF/PCeE73+gcGHubO15fR1kwZKEdCi3K/p5//rXb0QQ+1/iXDouaTTFlsZz LqD3+MhAbjrDRxZHljLrtt9buqhBcKICAJVhA6con7xhmTNhLdOV/ySKXCAp8dc6KNoCAc 49FqlB2xuvR54hlsDXoNQv7tPFBNTMysUO4nrH0bl0/Vm2CZ+RRtGRP4lKbbsfcbVPDR8I BIHgpfVbQp1dc+WEtzul+XQZFJdnm9USWjs42tHKO0yMzCrHCqPxSh5tl4zEprp/7VDQ7w PoVRpi1suSTsCd4nWh4z2KGXyoTE0jwgPh1JEKJESryjHd57bl3leJnxOrsjlA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 0.40 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 44B682BDD1 X-Spam-Score: 0.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: yKe+qKJteiSH --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain After updated to latest commit, I found error, Reproduce: When I specified the `:backend` header argument: #+begin_src clojure :backend babashka (+ 2 4) #+end_src I got error: #+begin_example void variable: cider-buffer-ns #+end_example Here is the patch fix upper issue. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-lisp-ob-clojure.el-Fix-backend-override-not-work-wit.patch Content-Transfer-Encoding: quoted-printable From=20245fc50b2eae115144c83ad97c1f9490f525b062 Mon Sep 17 00:00:00 2001 From: stardiviner Date: Wed, 12 Oct 2022 08:32:50 +0800 Subject: [PATCH] lisp/ob-clojure.el: Fix :backend override not work with `org-babel-clojure-backend' * lisp/ob-clojure.el (org-babel-expand-body:clojure): When The source block specified header argument :backend, the global option `org-babel-clojure-backend' value is default 'cider, the `cider-buffer-ns` is not void error. =2D-- lisp/ob-clojure.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/ob-clojure.el b/lisp/ob-clojure.el index d6f860e98..a6a463b83 100644 =2D-- a/lisp/ob-clojure.el +++ b/lisp/ob-clojure.el @@ -104,8 +104,10 @@ (defun org-babel-expand-body:clojure (body params) "Expand BODY according to PARAMS, return the expanded body." (let* ((vars (org-babel--get-vars params)) + (backend-override (cdr (assq :backend params))) (ns (or (cdr (assq :ns params)) =2D (if (eq org-babel-clojure-backend 'cider) + (if (and (not backend-override) + (eq org-babel-clojure-backend 'cider)) (or cider-buffer-ns (let ((repl-buf (cider-current-connection))) (and repl-buf (buffer-local-value =2D-=20 2.37.2 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express without mi= sunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmNGDgoACgkQG13xyVro msPaHAf+JMsOWxd8POVYhlyMq18TV/ebHISWX+IH5RdKTZu2OtHNgiAlDXOJhqeS 1lOly91bXVNWQSflZ237L49hkWQIoNMEJGNVf7hVRYgb1dLAkBRFetuyUXuY5HGF GsAHnshIODczKg89i7i5Q+wJZQMSOnx6SpABJyl/v0mpA8eRaP+5tcDLFXEwnezE DxM1jZLHQ/1ufPfuhDpHkH5nm19zTjDPHJK6dEdWyaah36zXKtz8GzLXCSUWzKR0 BLRODMH7P07e9mJ1VXEeWzVlXFHqaaHMMzx9DpuQSFgHLDGgvUGudAjKm4dT22OU oI8TfL4ll//XERLckmeooK/E7Bix3g== =Bg61 -----END PGP SIGNATURE----- --==-=-=--