From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 CLUEB/4PSWU0pAAA9RJhRA:P1 (envelope-from ) for ; Mon, 06 Nov 2023 17:10:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CLUEB/4PSWU0pAAA9RJhRA (envelope-from ) for ; Mon, 06 Nov 2023 17:10:38 +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 DB37024607 for ; Mon, 6 Nov 2023 17:09:46 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=TMU1wglB; dmarc=pass (policy=none) header.from=gmail.com; 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=1699286986; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Dgr02oh0jxeBtrLl9v6HjEIhkDWDxef9FLqHrvR57wM=; b=POpjnNx2coAIpGVKcc0+IRaSDZ3MMnnAnW2QGs6C+DD+qO5TM0A48hki4t0WUTVUAhVPWa ljN84ADo7rcHulreyLGELzvNcUyuaL1my2npmHKcap/coCGQRxsOO0NIfWFrO2oCooEldH C8AnJ9jhzSy3vQIkPuga+MbCRlarslqFkggZ6Bg7Z2JG1VwdaPBz7+/kUWO/QfLLMjqwOy Nbr9x8L6AfgqKlKebzH9ZqTy52a70CJ8BGQa/gUisBRe2Fzmjja0h+WfMOPSFRDHrpO0jE A+0bA+5SyWhOuK8KxVuylDKz1aLFmGGni5ey3m3dOesX4YwVE2TZCoUyEFL8uw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=TMU1wglB; dmarc=pass (policy=none) header.from=gmail.com; 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=1699286986; a=rsa-sha256; cv=none; b=i2yKXLeFjaGvDClGGgPSi1Rm8n+4MTZNYOJppcRgU3DyFThEKc1wy3TVm06vKPzkoPRSjw uY9uTDkiSRF7coZ1nRtQjtKjpfoXMKMvkLfZY/vi1ELxQdVxU1gayiJ2wuWRqi3kT1zQ2V GXK4qFGROqx8ze42Iq/u6gZA7zkjaHg88QGJD5A2R/iRsWZgnRxKTe7WhGEWqjq/+hlyb3 M1W3lC7LO8od6H5PXbHljv6dWdqLPag4YRfpvMjNQgDuqO2vwTTtb8c8W1+YTIIbtrhjxK 8nJ+ScYokRRDLqP3/NG9gQAv7dQyjw2I1ePbO0AfqBOvOe29AUGxB9xhnmpDcA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r029w-0005lp-Aw; Mon, 06 Nov 2023 11:09:04 -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 1r029u-0005lD-8Z for emacs-orgmode@gnu.org; Mon, 06 Nov 2023 11:09:02 -0500 Received: from mail-yw1-x1131.google.com ([2607:f8b0:4864:20::1131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r029s-0002yO-AQ for emacs-orgmode@gnu.org; Mon, 06 Nov 2023 11:09:02 -0500 Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-579de633419so55609417b3.3 for ; Mon, 06 Nov 2023 08:08:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699286938; x=1699891738; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Dgr02oh0jxeBtrLl9v6HjEIhkDWDxef9FLqHrvR57wM=; b=TMU1wglBDbmTDu/CB75OvJ6a6Q2Bv+9P4xEFWKeQW9IRjnL6ASGZLTFRS5CHywJYDK BQYfhUvYziH0r7WfuXolDxeXDjSCQwEwV//enMBoOG1mUfqdwHSng0bf8CH7Pkkm8grz TM1DJcagJr9/FIMNoV2mHuh5HrEp0Rv3qYkxSraacXrMhgPWBwNNo6EYN3/RzldLOqJy opxVn7bDHEsmd4lDjT0IGY8+3xq3F9C66ltFlaKc6p2MCt9/SNvgGX/X/ZA5yLG66l9y uCX5n96B8Nr4tKds75ugqaW9fOLDmsIfrb7WAKGs53T2GpiH4f+Aqrv1Gs0LFpxq+/dz +ybw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699286938; x=1699891738; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Dgr02oh0jxeBtrLl9v6HjEIhkDWDxef9FLqHrvR57wM=; b=C/1mfRfCFOqeoXlpnGDPaXd3ROXB49ukoFyAP3/Cp1pmsNhma7wVhHlrTDwn8vaTeL ayFl50eFQPkPEsJMhTYz2J0Dv9zcuwA10Srp6Mil+MoeXT3I3Rd9GNpnvSNDjnlWyPmE 1dhs0dM0MUOHRZbc8vqA514NCg+K/bH6dqDE0f3M7OjfLakoykcAfWTQYl4AazpuhQ9K /u6CpRal252FNGlHLkws/jhYyoDzl0Mf+t73GSl7mpseEUfYJVvdgV1OvABdujzKU/L4 ojjn3DxgtGyzWC78710HPsQOUOS16RoqX0PKQziGfU03Jemt25d6A9JUVMiRjA6nZnY5 EcYg== X-Gm-Message-State: AOJu0Yz1RstQ/y5uPEClqx+rvqeve4Xk1lzSQ+VTZbfA9PPwlLr/SUCP Cqnb6tMVhQPcDCz6gmy/AKwbUK/8qoi73jTn8QEXnHrhK61vYg== X-Google-Smtp-Source: AGHT+IHlknuDn/xYsSE3InIpTuNQxdk23pe5FlI2chi4YNMr3d0MRoUkFpzb7AX30gvgAaloymVSNQM0A4Q1C37p1Vo= X-Received: by 2002:a05:690c:fc8:b0:5a7:bbd1:ec21 with SMTP id dg8-20020a05690c0fc800b005a7bbd1ec21mr12874233ywb.0.1699286937768; Mon, 06 Nov 2023 08:08:57 -0800 (PST) MIME-Version: 1.0 From: Cletip Cletip Date: Mon, 6 Nov 2023 17:08:21 +0100 Message-ID: Subject: [BUG] Tangle with symbolic links don't work To: Org Mode List Content-Type: multipart/alternative; boundary="0000000000004c154c06097e1293" Received-SPF: pass client-ip=2607:f8b0:4864:20::1131; envelope-from=clement020302@gmail.com; helo=mail-yw1-x1131.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: -7.08 X-Spam-Score: -7.08 X-Migadu-Queue-Id: DB37024607 X-Migadu-Scanner: mx10.migadu.com X-TUID: 2MDRZCwSGPLR --0000000000004c154c06097e1293 Content-Type: text/plain; charset="UTF-8" Hello everyone, I'm reaching out to discuss a challenge I've encountered while working with Org-mode, specifically during the tangling process of code blocks. 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. Interestingly, when exporting documents to formats such as .tex, .html, or others, Org-mode respects the symbolic link, which is the desired behavior. However, this is not the case with tangling, which is quite perplexing. My Org mode version : 9.6.10 (9.6.10-n/a-g902975...) 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 ^^. Thanks in advance for your answer. --0000000000004c154c06097e1293 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello everyone,

I'm reaching out to discuss a c= hallenge I've encountered while working with Org-mode, specifically dur= ing the tangling process of code blocks.

The Issue:
I have an Org= file, test.org, from which I tangle code b= locks into test.py. The complication arises because test.py is a symbolic l= ink. Each time I perform the tangling operation, the symbolic link is unfor= tunately overwritten.

Interestingly, when exporting documents to for= mats such as .tex, .html, or others, Org-mode respects the symbolic link, w= hich is the desired behavior. However, this is not the case with tangling, = which is quite perplexing.

My Org mode version : 9.6.10 (9.6.10-n/a-= g902975...)

Proposed Solution:
I've identified a potential fi= x that involves a minor adjustment in the ob-tangle.el file:

Origina= l line (259):

(let ((file-name (car by-fn)))

Modified line:
(let ((file-name (file-truename (car by-fn))))

While this solu= tion appears effective at first glance, I haven't extensively tested al= l edge cases. I would greatly appreciate your insights on whether this is a= robust solution ^^.

Thanks in advance for your=C2=A0answer.
--0000000000004c154c06097e1293--