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 ms8.migadu.com with LMTPS id aMChNVTVs2UBnAAAqHPOHw:P1 (envelope-from ) for ; Fri, 26 Jan 2024 16:52:53 +0100 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 aMChNVTVs2UBnAAAqHPOHw (envelope-from ) for ; Fri, 26 Jan 2024 16:52:52 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LLrejJso; 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-Seal: i=1; s=key1; d=yhetil.org; t=1706284372; a=rsa-sha256; cv=none; b=Jie54n6rmdDGxgWGo1KsJA3eE0+IL0+o52JcBUy2e7Wbz1N/z9MCrzm3L3GWmogMSQTib5 +kQigG7u4OxCRUcyREqnl62gkhkiNjtCM+wHpwuGL2e2XR746LqvH+1DGQBStXrH0UI4Ol fxhwRRBsejEkm35wjfRGlV7PIAfoSMYNRZJSDFLMTuWERaQ+YrxnIRNGv0ji+HKQAtr9PB 2zzAsa2RxZv3nrZlWIzP2XPSZnu4OrVV+ine1wLGaX8xG2eo7nDaSO4KqzoL5RKUN6SuFq UdHIn44+Qq7lP72ostaG1Z+GVp6mvR9F7M0mzfuzetlEoFwkK4diHG+vQOvFjg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LLrejJso; 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=1706284372; 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=QlhFUM4x7L5fa1sYrzO++Gw4dq5GJLPScP25iEa/dgE=; b=mH127RAJup4IuSRgF3NuyE/Wg5oQU2KRs191wVnAGYiUrBSu2rga3kdxNWUdyx9ST02dwq StuZIBqVPwAcpvfhWEEuWaCY5Gw5CMtc4I78Gvexp+5oWWynSWrvdSDFfHi+ipddDp+lXf KsH1rRjDeqe0Cawa8IEARryS8zy5vlUqBUt3n9ZjnngIZDNW4Ev00Pno16rR5keS5Vj/XK 5jtRg88kEB8URXJIa7Enh9ebo66t0ebWATzhAV34KyRpAxp+wW28CvbrK/ivw/MijHkKf/ CxEJ+pkp8DcWF9eF8JISGRU5sCg6azx9EEX+gpLt4lxmrsDJ8rqmDoqAQrVNMw== 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 7FBD0ABD1 for ; Fri, 26 Jan 2024 16:52:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTOUl-0004iC-9l; Fri, 26 Jan 2024 10:51:55 -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 1rTOUj-0004hz-Oj for emacs-orgmode@gnu.org; Fri, 26 Jan 2024 10:51:53 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTOUh-0002Cr-FR for emacs-orgmode@gnu.org; Fri, 26 Jan 2024 10:51:53 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 73640240029 for ; Fri, 26 Jan 2024 16:51:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706284306; bh=oPoJ8vJEVpyr+fRXmBXk3Klpf4z4JQI0n4INjC36E/s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=LLrejJso8+q333KuqqYxvLrsdbSAzqw1D56VsAhavCtEn8TWy0Rn/jIrNxeW4twu0 Bs5NKhkOS8kCxM7Gath9Qgc7CoIrpCZnRrPJLnW2s0Tv7YibPLMeHjZqSuvzPHtRYC PVbFHzL6rtik1qDJoMorkJT/C8QauOhkIgjafhr2x5oWT5ma44dX6a3pF0WfbeeUj3 8E1W0P4b/zhdGuHGkCaBxAh2b1/yjRVfHAeUE+8wlKOm/e+9eu31X5cqr9y+wo8PSt DJEDmyrSFT9t/VunYvvbVjYdcQ5iY9Z/TBdimgnToFtvfNUILTnJGZn9F1/VqFPVRD eBWH++6btLGLQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TM2Hj51YKz6trs; Fri, 26 Jan 2024 16:51:45 +0100 (CET) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] org-babel-tangle: Do not allow tangling into self In-Reply-To: References: <87le8zyfss.fsf@localhost> Date: Fri, 26 Jan 2024 15:55:14 +0000 Message-ID: <878r4cks2l.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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-Spam-Score: -9.16 X-Migadu-Queue-Id: 7FBD0ABD1 X-Migadu-Spam-Score: -9.16 X-TUID: YFH7K/QL0Gnx Rudolf Adamkovi=C4=8D writes: > Ihor Radchenko writes: > >> The attached patch makes Org throw an error in such scenario. > > This is a great feature (and it deserves a test, given it protects from > data loss). For what is worth, I remember making this error at least > twice in the past year. (Git saved me in both cases, fortunately.) Applied, onto main; after adding a test. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3Def23b4706 --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at