From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UGxBAsDbsGagbwAAqHPOHw:P1 (envelope-from ) for ; Mon, 05 Aug 2024 14:03:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id UGxBAsDbsGagbwAAqHPOHw (envelope-from ) for ; Mon, 05 Aug 2024 16:03:44 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=lDpq80rD; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722866623; 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=aoP+M57t51AZSBV8lUGhTqe974BOsnjbYBtXVtqRbPw=; b=HMyrm7cw5lKBfGCcZwDwDaMCRC5yv/ULlFKjfNoAwpEBZx6La2BF1m87F1+YkyFw0WNElR iatKzkf19z0IFD4zgbc36khjAISo68wC4H/LRly5SKUQsYYd3sdxSFnlIiqRuCdpx/Wq+X 5TFxyvzRPuJPLRYV8f3wKcrs1vnTq9SjOxuOSQlzTYPeIu/IpPOUaoiiHZC66EJU3/FtQU V4TigOKtZ22pmoG8sCT+OeKp3+KBzlRea2E8Nr9XrH5hBHPz06GOgsD9vm5Tf+eKne635T NtstjZMsyEkYs9XQQ5RsB53hcMDNKlvwu4WxpKODUk7ylyiXRgFFZ6bT5jlK6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=lDpq80rD; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722866623; a=rsa-sha256; cv=none; b=AbRYlO5Lvgwob4t6lnc/7iq7hZYY0rOFAP0AT3oyxp07OOgrAcRYAeOmzYpUT0ERsK2cJi KzPe2G2OXGNVevmWiIoNpoDT+OMXWuHyPM/4iuGQJ2jCIayhZFpHhdkdfXKK1nO668h4we yytS5AXyPZj6mE1taJCNn713G1RYSp7GsJQ3myqSN7nvlhNF8+iWJZf/bgUvuTW0F9oupd TIhhCchqNmjeDmO1wBR8g2mL7QNmzf1RnUpwwbQ8fh+H29BhCvYkKYAxRycs29M6LNwc3X SmgQH2iqYoXiauHgze9WSRwY/+2rbzKf08MamvOvm548GoO8uNzUErks5PO2Og== 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 B7D3D74652 for ; Mon, 5 Aug 2024 16:03:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sayIR-0004SJ-C5; Mon, 05 Aug 2024 10:02:47 -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 1sayIP-0004Rt-LX for emacs-orgmode@gnu.org; Mon, 05 Aug 2024 10:02:45 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sayIN-0000oi-Hs for emacs-orgmode@gnu.org; Mon, 05 Aug 2024 10:02:45 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A2E12240104 for ; Mon, 5 Aug 2024 16:02:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1722866559; bh=v9JZ4KyNchQIgE5ErVjO7aNJTTKHOUFeUGn6F5IrwJ4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=lDpq80rDHcKn+3t3h2AgbVkivC2+//D09w3SgWPGNvf9bNQEP2eCc49SdkzTY3NBe bXTXHaFvJ5z5kxpayi/mJ5rWaQ5VkpxrDoAQuTGXIfPIGnLYzpEVpjHcnud8Fwk9dW HADDPnVdpWFMv4/WQfrvy7oeDPAegLQllO3d+RHq/LgUa+r6pwaoear6tiV6dbKs6A e3whsHn3MCQQ2bKPLgg1jCOBSOyoq9nqqHLLsd7Go2EYRUrU1AzAnUQ7jrQB1wU3ol XFGreYlFNzvw9XCvw7NpXZX6sH4/cCFDnj2tPcukev/v4zx9POWAzWl/IRvlDzi31q oEO6C6/ju1iiw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WcynB6HDvz6tw8; Mon, 5 Aug 2024 16:02:38 +0200 (CEST) From: Ihor Radchenko To: Dilip Cc: "emacs-orgmode@gnu.org" Subject: Re: [BUG] Cannot tangle src block in capture buffer [9.7.6] In-Reply-To: <2dijBN1CGUPtmZzcNXZAe54y8u0pC8V_DYIBCL4rSR1eh2s8TFJGW5V3q7pkiCRFtEHYXy66CU7F6kK3NN_VAX-R_RbAXptG0b5vOlUQsi8=@protonmail.com> References: <2dijBN1CGUPtmZzcNXZAe54y8u0pC8V_DYIBCL4rSR1eh2s8TFJGW5V3q7pkiCRFtEHYXy66CU7F6kK3NN_VAX-R_RbAXptG0b5vOlUQsi8=@protonmail.com> Date: Mon, 05 Aug 2024 14:03:50 +0000 Message-ID: <87y15bcbi1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -8.15 X-Migadu-Queue-Id: B7D3D74652 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -8.15 X-TUID: 3eiyBE1mVSvP Dilip writes: > You get ~Wrong type argument: stringp, nil~ error when you > =org-babel-tangle= on a source block in capture buffer. > > To reproduce: > > 1. set a template > (setq org-capture-templates > '(("t" "Test" entry (file "/tmp/debug.org") > "* TODO %?\n %i\n %a"))) > > 2. Create a source block (C-c C-, s) add :tangle header > 3. Tangle it. (C-u C-c C-v C-t) > > In fact,at the same time with capture buffer active if you go the file > (/tmp/debug.org) and do tangle on so far written src block it tangles > properly. That's because capture buffer is an indirect buffer and indirect buffers are technically not associated with any file. We should probably fix handling indirect buffers across Org mode. Confirmed. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at