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 ms13.migadu.com with LMTPS id oJ/nFHsniWe2iAAAe85BDQ:P1 (envelope-from ) for ; Thu, 16 Jan 2025 15:36:27 +0000 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 oJ/nFHsniWe2iAAAe85BDQ (envelope-from ) for ; Thu, 16 Jan 2025 16:36:27 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=chen-becker.org header.s=google header.b="np/K9y3/"; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1737041787; 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=0YXAJFJtAK9Nf3c1y4RWQM1Yyp40F5/jDpJ0CTI7xtY=; b=HkmCz8Z2dLDhbCgjjmFmgDOwSmTyL+FUFMwEbiZUgvom47VkddvLa8LqNxZf+issB3Qu4L bVRcbyv3QjM3X4Y/ontk816eyyubj86XHNBHZjjcyxm8ElNY76l/kDJDhWog7UMp3pOa5y WHHQTzpbyH69FpviR2vfaNU2nwkFPgPPMdJoMlGr6ubaBnXW017IWiomcq1WXb5nX9DgbZ lLEfw055VAXF+whHDDiDaiTyxKyGDK78w4Ti5EGwgWVZYqZuV0FIzXMiejLvst9eEDUasS Cpm4AU27O4qFUhXbSAjaYpKDvBDSIyLBx2cOYuUSblMB9PeXEdNmpETh5N7hVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=chen-becker.org header.s=google header.b="np/K9y3/"; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1737041787; a=rsa-sha256; cv=none; b=U+GUMlZ7N3d8eer4Hu6+PuwOwc5pfcy6MgAuRRhdKf05WsRgto+6AwBVbiWEi4/W70hnHJ qWNFk0EykV+HLSuo3kwC74z1Z3rrcJ+XU6gw/JZbRCKe++1fa3ZLCMT28ang92HNYvUdw3 dw9qn6l62meMnkh8DbECtVANbSAXxZ3xueTE3M6ZhrUo5jITMYxhnPWcPGcbR96b1oaYHI 4+IeQX/gG7+48deRXewx3oIivhuobh1ymjeKNQ7ZZ8sOiGUglLBop3xL/VKaw4h6IloLLr RDOLtvESHQhfEGLJAeODZrBZ/cM7apq8vD9OKILS6Xnr30r6mMWy4U0vycdGeQ== 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 D1FB89753F for ; Thu, 16 Jan 2025 16:36:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tYRu5-0006G0-DJ; Thu, 16 Jan 2025 10:35:29 -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 1tYRu3-0006FM-Pw for emacs-orgmode@gnu.org; Thu, 16 Jan 2025 10:35:27 -0500 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tYRu1-0003Tf-S4 for emacs-orgmode@gnu.org; Thu, 16 Jan 2025 10:35:27 -0500 Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-467a63f5d1cso10218401cf.0 for ; Thu, 16 Jan 2025 07:35:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-becker.org; s=google; t=1737041724; x=1737646524; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0YXAJFJtAK9Nf3c1y4RWQM1Yyp40F5/jDpJ0CTI7xtY=; b=np/K9y3/HAm2lein+LmdXVfJwP8ugdfhmeYCXr9+XfCdbTXq00/4yp8XKdIf38KDGk +ZrDUc7ndPXgiBdf9QcyEgukkkNEZDGRqRBAYSYAFn15YUdWIdqf3wQb69WiNa4EKxyz 0Lln6EEAhvo0Y9sRQ3QbmGp70E53KBD0d1/bv9QuKF1Z9w+mWyHWQFR0tcW3HVjg5HgC 5ZTEdNsciDxe0so8t/n8G9ZziFXu6nzn0/TfUxm0CkQHMRR8pcXd1mxgZb0zmc5OLM87 cohe8I6X3qxIg8+7irCLqtu8ujdQCKn0RfVwV2iLKBFbp+WwAT2NzadpMDQ6OmjRfUW5 MSwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737041724; x=1737646524; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0YXAJFJtAK9Nf3c1y4RWQM1Yyp40F5/jDpJ0CTI7xtY=; b=nTKJ+glsUSbAN/45jeg9WtHyIAd6kjY3Emz83v4df07leHMtUiG39QP+x+eiY2vx3Z M7v2YQgLZU4ZxiKlk3C2+uYqYDIAJBp8juch/LDrSPFoZVrLGqTuadkj3/xRuLkRGC8k L/ipAMDYp7B5rlyT0weHO6bKk4XAiOv7qTB99i9iDQZVm8NGRVNfAQb6zAO+cshR9fZM 9vG7jyZ5TXrkCKmxhHmoXj2HCyrMtPI0WDYj2rydLkp07CCiZK7eAIkHalakneVqMWau lzkytXC0NCCUj2xLv6zzVDgHf9+1EK8tGrlmXdqaFvo1AH1H+cQ527GCuJYxUuhCiZt6 hn5w== X-Gm-Message-State: AOJu0YydzzaQYhJCeFtESDqiW7iFIt17Ma80q6sIvKrxW5P8fIaiwCtF wYV2sYwCvCEU6LbtBfFrJw1qoPZvbvj9C0GZod+9my1Cf8zfYzroJeWpwxak/u6c8rDXW94fdaP O77NdqoDwLxLqZUhWPWvjhwmaARprRJg23guxzgF5lWzs1xFe X-Gm-Gg: ASbGncuPRdM1sSepqsOlS0Is/cYVgp0vt8CQVx41fvuz/9oiscWSNkb2Ts/iI5qpX8m +qRMKLJ+h8kFAXsWbnl4LPKGxq0JfGPzO1w4= X-Google-Smtp-Source: AGHT+IFM6Sgv1bILNt4gGoA57QTKCBJht/ZpEuHPDhAMks3jGHjVq9BqXeHrrNsWcv3NClmEEdinvt4+XhYZhAsILUE= X-Received: by 2002:a05:622a:15c8:b0:467:67db:ef72 with SMTP id d75a77b69052e-46c71028f78mr580781961cf.27.1737041723793; Thu, 16 Jan 2025 07:35:23 -0800 (PST) MIME-Version: 1.0 References: <2dijBN1CGUPtmZzcNXZAe54y8u0pC8V_DYIBCL4rSR1eh2s8TFJGW5V3q7pkiCRFtEHYXy66CU7F6kK3NN_VAX-R_RbAXptG0b5vOlUQsi8=@protonmail.com> <87y15bcbi1.fsf@localhost> <877c7zede2.fsf@localhost> <874j2z7a8u.fsf@localhost> <87ttatigrx.fsf@localhost> <87msfxd81c.fsf@localhost> <87sepox9oy.fsf@localhost> <87wmey7hmb.fsf@localhost> <87v7uhe0tg.fsf@localhost> <878qrcdmmt.fsf@localhost> In-Reply-To: <878qrcdmmt.fsf@localhost> From: Derek Chen-Becker Date: Thu, 16 Jan 2025 08:35:12 -0700 X-Gm-Features: AbW1kvZ-O3g2MaCUI-mbjpcgJ9zy2P_VTeZaTdpFFOw0IGP4kRsWb24jwbZThgY Message-ID: Subject: Re: [BUG] Cannot tangle src block in capture buffer [9.7.6] To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000e83897062bd48afd" Received-SPF: pass client-ip=2607:f8b0:4864:20::835; envelope-from=derek@chen-becker.org; helo=mail-qt1-x835.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -5.69 X-Spam-Score: -5.69 X-Migadu-Queue-Id: D1FB89753F X-TUID: J3jNaSaDv0hA --000000000000e83897062bd48afd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 15, 2025 at 10:13=E2=80=AFAM Ihor Radchenko wrote: > Looks like I was not clear enough in my last comment. > > The latest version of your patch exceeds 20LOC and cannot be accepted > unless you have FSF copyright assignment. > Sorry, that was clear in your previous comment. I am working on the assignment form right now but I expect that to be a solved problem and I want to continue to contribute to Org mode anyway, so I wanted to parallelize that with continuing on the patch. If you would like me to stop working on the patch until I have the copyright assignment taken care of, I can do that, too. > > (let ((org-capture-templates '(("t" "Test" entry (here) "* Test > > Header\n\n"))) > > (base-filename (buffer-file-name))) > > > > (org-capture nil "t") > > This one is awkward. > You can create an indirect buffer explicitly instead of relying upon > implementation details of org-capture. > Thanks for pointing that out, I'll fix it. > I recommend using `org-babel-effective-tangled-filename' instead. > This is more future-proof against possible changes in the way file name > is computed. > I'm sorry, I don't quite understand. Do you mean I should change the function name `org-base-buffer-file-name' to `org-babel-effective-tangled-filename' or something else? Thanks, Derek --=20 +---------------------------------------------------------------+ | Derek Chen-Becker | | GPG Key available at https://keybase.io/dchenbecker and | | https://pgp.mit.edu/pks/lookup?search=3Dderek%40chen-becker.org | | Fngrprnt: EB8A 6480 F0A3 C8EB C1E7 7F42 AFC5 AFEE 96E4 6ACC | +---------------------------------------------------------------+ --000000000000e83897062bd48afd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, Jan 15, 2025 at 10:13=E2=80=AFAM Ihor Radchenko <yantar92@posteo.net> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex"> Looks like I was not clear enough in my last comment.

The latest version of your patch exceeds 20LOC and cannot be accepted
unless you have FSF copyright assignment.

Sorry, that was clear in your=C2=A0previous comment. = I am working on the assignment form right now but I expect that to be a sol= ved problem and I want to continue to contribute to Org mode anyway, so I w= anted to parallelize that with continuing on the patch. If you would like m= e to stop working on the patch until I have the copyright assignment taken = care of, I can=C2=A0do that, too.
=C2=A0
>=C2=A0 =C2=A0 =C2=A0(let ((org-cap= ture-templates '(("t" "Test" entry (here) "* T= est
> Header\n\n")))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(base-filename (buffer-file-na= me)))
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0(org-capture nil "t")

This one is awkward.
You can create an indirect buffer explicitly instead of relying upon
implementation details of org-capture.

=
Thanks for pointing that out, I'll fix it.=C2=A0
=C2=A0
I recommend using `org-babel-effective-tangled-filename' instead. This is more future-proof against possible changes in the way file name
is computed.

I'm sorr= y, I don't quite understand. Do you mean I should change the function n= ame `org-base-buffer-file-name' to `org-babel-effective-tangled-filenam= e' or something else?

Thanks,

Derek

--
=
+------------------------= ---------------------------------------+
| Derek Chen-Becker=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
| GPG Key available at <= a href=3D"https://keybase.io/dchenbecker" style=3D"font-family:monospace,mo= nospace" target=3D"_blank">https://keybase.io/dchenbecker and=C2=A0 =C2=A0 =C2=A0 =C2=A0|
| https= ://pgp.mit.edu/pks/lookup?search=3Dderek%40chen-becker.org |
| Fngrprnt: EB8A 6480 F0A3 C8EB = C1E7=C2=A0 7F42 AFC5 AFEE 96E4 6ACC=C2=A0 |
+----------------------------------------------------= -----------+

--000000000000e83897062bd48afd--