From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 uBoFHr4Dq2XzVAAA62LTzQ:P1 (envelope-from ) for ; Sat, 20 Jan 2024 00:20:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uBoFHr4Dq2XzVAAA62LTzQ (envelope-from ) for ; Sat, 20 Jan 2024 00:20:30 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="e/U0Hzv+"; dmarc=pass (policy=none) header.from=posteo.net; 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=1705706430; 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=N1SzmKBVm33cB58/+ULS05XYc5prAd6UGRQbwy3zRvQ=; b=dQpu1BicmDhtZA1saVji9nSsrYP9q6AI+xIn+SDMTLMHbB/NmI8F8e/evmIhUyVPbes/53 83JnFLqUgCalAQUsbII6LjLWR6jq6nStKD07GJ8qBS7vP/1FGyyNgfCqTeuOrzFsZhbJYw tDqzZp7YBN/EmPfRo0EwBKar1nT8ryfGHFs3a2QH5HxGg3RkaNbLcNl2h94iiN0CQsdVCX LfLsHmv9Vkfl0cAFMnsrpNeovk3cwGKWKuGhMIFibdkIn3CVoiiKa2SdTXQ3643ZtJT79R rAIxqjmnMy1TttNefbVYV7FWUMUOmRglv5hwd/ce1uzD1Jf6U3rfVrZHbF7F/Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705706430; a=rsa-sha256; cv=none; b=vDBV9esF+1A3q4Ir/7SPKAD4x2lT7SzZVo8mi1vd+H2lLf35s8jP2obzhvjWGXBjQszO8k e2n4XzKWS1Ua8pm9k21aKdWEJVQc6CCOnQcPWRLlZn7ned4OcA7RqRvXs4i7zqrvqTeDuc 7ZcsDPmdyUebQgTRMQ54X34apHI974n+uxQMYVEaeLXbaKVA4H7MiuCa8+d4USZv73epUH 7tD/y4zYb5GC38xp0eWcIh2x3rnIpMWqt5x1z8BToDQShVCrK43/FUI0kz3hVarbEVbZS8 IcJ290hHI8yY+jLr2HI80itSfl7pm39ioJaej8IDdwEADFzSE4l0Mt1PE6Hasg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="e/U0Hzv+"; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 366586F160 for ; Sat, 20 Jan 2024 00:20:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQy4P-0005aX-TD; Fri, 19 Jan 2024 18:14:43 -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 1rQy4K-0005Y8-Dn for emacs-orgmode@gnu.org; Fri, 19 Jan 2024 18:14:36 -0500 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 1rQy4H-0005XX-T5 for emacs-orgmode@gnu.org; Fri, 19 Jan 2024 18:14:35 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A76C8240103 for ; Sat, 20 Jan 2024 00:14:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705706069; bh=Unb8DDA+59PyWBGStohSZe+tS6YXYnYLeoGtc30RkbI=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Cc:Subject:Message-ID:From; b=e/U0Hzv+79IS/h58XixMWkDvDnDUUAtYUXykPmjAjz6caWNGXHNiKPBuROzolJp8d yTKH+FIwDhHezrDAH+bvrNZtIDfWF7CYKjca5VmivSX2Mv5BDFNLdPC9/eKh62Xkv7 P3662KBUBYuIfisjHTw9rSTIUo1qoLX7c4ew2jIxkqbd9U19Sg/LcJlX1wmOIgSpMv A3ONvet8oRHcIoL1Lx693dFBis2PsNt0yjF6F7WsZ+rVloNeACRiZ/GXfIs3p8tdx6 Q2XRzsDWWI6cDm9FwQ+HmT4L+7uIe60i48O6xy3IEnuqqyoR120QIk86jGUXUy95ia Ugd98+obhL5Gw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TGwRn2MMxz9rxF; Sat, 20 Jan 2024 00:14:29 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 19 Jan 2024 23:14:29 +0000 From: gerard.vermeulen@posteo.net To: Ihor Radchenko Cc: Emacs orgmode Subject: Re: [PATCH] Make command org-babel-detangle work interactively In-Reply-To: <877ck573jh.fsf@localhost> References: <4e7b198382642ed3572e3fe42e6d1abc@posteo.net> <877ck573jh.fsf@localhost> Message-ID: Received-SPF: pass client-ip=185.67.36.66; envelope-from=gerard.vermeulen@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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Migadu-Spam-Score: -9.65 X-Spam-Score: -9.65 X-Migadu-Queue-Id: 366586F160 X-TUID: 3KHifVPkPtn0 On 19.01.2024 16:20, Ihor Radchenko wrote: > gerard.vermeulen@posteo.net writes: > >> org-babel-detangle is an interactive command but >> M-x org-babel-detangle always replies "Detangled 0 code blocks" >> This patch makes org-babel-detangle prompt for a source code file. >> >> Obviously, I got bitten by this. > > I suspect that you may have some misunderstanding about how > `org-babel-detangle' works. Its docstring says: > > Propagate changes in source file back original to Org file. > > So, it is expected to run from the tangled file; not from the Org file. Yes, I misunderstood this and I see that my patch breaks this. I think there is a typo in the docstring: "original to" must become "to original" so that it ends with "back to original Org file".