From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id YMcwNEYRSWVAowAAG6o9tA:P1 (envelope-from ) for ; Mon, 06 Nov 2023 17:16:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YMcwNEYRSWVAowAAG6o9tA (envelope-from ) for ; Mon, 06 Nov 2023 17:16:06 +0100 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 43E585605D for ; Mon, 6 Nov 2023 17:16:06 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=L2AD2xlW; 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=1699287366; 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=6p8ZB9H86RqXfI5q/0hrsnusJGvAvecBQRtrkr0/G8s=; b=BbSAnLRmNjmVtRSt+zvF/wVOSPH9UdzDr2GKlYsEX2k1uzSyHS7RHQYkWb3Hq2ozNkCFZp /XCdpESqXabCQty14HmV7aikv7s20yWECHvEQkapzFP5tp9nLYvam6pUt7nJWC6IVAqOI/ AZefwwDUG3H/6kMspJjKymKRKyQXN+8q6yy6nMhn78xmQ3qzE8xCoGRnJ+5ZPVWQei5FK+ vjN8SkKolvnsNxQIJNoXJz7DIEHIC6nTRwc26JiOXjh8FDc1oVx2Et4XC2OGZicI0+9Jzx sfKl9CYQSS3x4/3GkmAO/6WvMhvMrpsPlPF6u3i+hZYnnbUJ538LD9uQyj4kdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=L2AD2xlW; 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=1699287366; a=rsa-sha256; cv=none; b=LN2gPwM6vopuAZ3eWGBhUTgCI/92oFPCjvgjjoTXIOpg6xtNTWpajB5QnnIWFgjz6bnzlT chtWUuF5hO8TGLZGLCS5bLBZgxXj3z3tbDvvMAlb+Eq8JjXyUMLQOZRNrq9c9Sv0cN21/R 0jrBorlxSVj2YLY+pfNhzpkA54L3EYTXVBB1Q+SEuQXe9ao8ierUTSjNHy+23WH7H5pL0+ T64TTQEeQq5aKFPRX19x58UJyYjrKcOz6SIKX/t/S8fFv9s7sppu2DD9CUd2Y/Ze5pkUAL qIExKfrZn2bLYk0tHYM2qeCpkZXJJeulQU2Y2gqicUDk3fniHkv/jJ4Bu7jMbQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r02GB-0003na-9q; Mon, 06 Nov 2023 11:15:31 -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 1r02G4-0003lJ-W0 for emacs-orgmode@gnu.org; Mon, 06 Nov 2023 11:15:25 -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 1r02G0-000442-36 for emacs-orgmode@gnu.org; Mon, 06 Nov 2023 11:15:23 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 52AB1240106 for ; Mon, 6 Nov 2023 17:15:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1699287317; bh=M85rBFqPbkQI5rqA1Kmf9F2FJNOP/TRVDPdwBOdOT88=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=L2AD2xlWR9ggBXy4B7OJGIPFFhRqthOr30BVZs7XZ20GHhx6PtN4k2dXQW8DjA3PV Cg5L5j030mYnBAo8cTDNYvDIDfrJzApgc0avjyzT7ZukH7K0kuhevDp4CB1YFKdMEJ QJb1lpYETukAH+o86sB8mJTeFzc0GoAITbc8KDKgQ155iPQWS2G+OOmSdYb3D6d0D0 x/yIrwNUf5L6UyhqfYib9hdFTGIB7HzTRmgNz4sI0aCzhYa6xpkJ9wzoezirmzp2Lp 92cDRIG30oYpslA4sEmUshkSr7Wi4wZdZwW5TwJkbNitYze0PUfakzJq3V7UpicriH 1WOj/Of3owAyw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SPGfD3mhjz9rxS; Mon, 6 Nov 2023 17:15:16 +0100 (CET) From: Ihor Radchenko To: Cletip Cletip , Max Nikulin Cc: Org Mode List Subject: Re: [BUG] Tangle with symbolic links don't work In-Reply-To: References: Date: Mon, 06 Nov 2023 16:17:08 +0000 Message-ID: <87wmuu3lh7.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_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-Spam-Score: -6.95 X-Spam-Score: -6.95 X-Migadu-Queue-Id: 43E585605D X-Migadu-Scanner: mx13.migadu.com X-TUID: z2lIrrA/mLph Cletip Cletip writes: > The Issue: > I have an Org file, test.org, from which I tangle code blocks into test.py. > The complication arises because test.py is a symbolic link. Each time I > perform the tangling operation, the symbolic link is unfortunately > overwritten. > ... > Proposed Solution: > I've identified a potential fix that involves a minor adjustment in the > ob-tangle.el file: > > Original line (259): > > (let ((file-name (car by-fn))) > > Modified line: > > (let ((file-name (file-truename (car by-fn)))) > > While this solution appears effective at first glance, I haven't > extensively tested all edge cases. I would greatly appreciate your insights > on whether this is a robust solution ^^. Looks reasonable. Max, do you see any pitfalls using `file-truename'? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at