From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oIU/Dm9N216+PgAA0tVLHw (envelope-from ) for ; Sat, 06 Jun 2020 08:01:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MC8jCm9N215XCAAA1q6Kng (envelope-from ) for ; Sat, 06 Jun 2020 08:01:51 +0000 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 51C57940539 for ; Sat, 6 Jun 2020 08:01:50 +0000 (UTC) Received: from localhost ([::1]:55336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhTm1-0005t6-8R for larch@yhetil.org; Sat, 06 Jun 2020 04:01:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhSD1-0001Ro-6H for emacs-orgmode@gnu.org; Sat, 06 Jun 2020 02:21:35 -0400 Received: from mail-dm6nam10on2101.outbound.protection.outlook.com ([40.107.93.101]:62672 helo=NAM10-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhSCz-0008HV-KN for emacs-orgmode@gnu.org; Sat, 06 Jun 2020 02:21:34 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EiVnO5avIbxnRPxzNCMwzqSDIJZfPai5SwKpobIx9gTeCcPxwkYKlSfza9W8dRFN4maqZJl9PCXpq53SB2aBsiUdZnbiyCUuRcnFf4Ul07YTxIjWqA0LknGwNIAocKViOZt6njSKCscp5mZor0SCAu5opRIFjyMzWBtkK0Z+JOaCf1ybyF8B5DrRMuj3NHD5/Xnd4xBweOto+ln9wWqK67u3EcpiVBT8G3JODNqER9ZTmon3MvRfw4aIlfVpIz0je13YtumoYfzv41GEoITsONwUG17YDKZKcDFz44h5yaHCbPEMFpYrLMsY2WQxFpA6Tz4uLj1kVgcIHxxWrLiv1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eyU5TqMD5vPuGEoigCt3cEHJckHTVVbR/ltIjfbamRU=; b=mi1+l/ogdzNHtyKcg/qq3XO6nrgqCH12gA/yloP2IglEGkfQuv5Vz0w4oNedr1ipBfZfL+LCtCzh5wLm+dkUAozgwlYIShbCwk6l94L571rb5NppD86gUu83JZVoCK5ckYkwaL/XdASTksd1McFP0ExVRduc4yfWYVwSYYSTBIRYA8GVIkZJSIetn/f4vDXZSYNl5L0G1ao/8/seqNvUUFECu+FnA2gbMulbWUQ9q46gHnT376ndIB5Zvp9yoH70E0CO3GsdEKdWt2R59s68sGSxvj+RKzfgQ0kmAteXnFk1R8PJ0JYuFKIxGSPAZd3iPaiW/ttYPloQxFJpY7Lkjg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ucmerced.edu; dmarc=pass action=none header.from=ucmerced.edu; dkim=pass header.d=ucmerced.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=merced.onmicrosoft.com; s=selector1-merced-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eyU5TqMD5vPuGEoigCt3cEHJckHTVVbR/ltIjfbamRU=; b=ECN2wPq9FwMyWA2Ejj26T8ZJU+EHxEmZDisb9IC7mX/cKkVpy2NzDztNvjbi9arI2GqoGGF77SphFgK8n/V6LJTpmkHLsdMG44Q6rBBp6fWbDH+C1XB3PvsaOMD6BzHSGBP3Rk4MpWyF6p304xWLnkthAywxqP9y8BnFnPgizQg= Received: from BYAPR06MB5638.namprd06.prod.outlook.com (2603:10b6:a03:a8::26) by BYAPR06MB6037.namprd06.prod.outlook.com (2603:10b6:a03:ce::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Sat, 6 Jun 2020 06:06:27 +0000 Received: from BYAPR06MB5638.namprd06.prod.outlook.com ([fe80::d1f7:96b4:19d7:1cdc]) by BYAPR06MB5638.namprd06.prod.outlook.com ([fe80::d1f7:96b4:19d7:1cdc%7]) with mapi id 15.20.3066.019; Sat, 6 Jun 2020 06:06:27 +0000 To: emacs-orgmode@gnu.org From: Jeremias Gonzalez Subject: org-babel-tangle not using relative links Message-ID: <6fb12326-52d3-7177-eff5-62603261b388@ucmerced.edu> Date: Fri, 5 Jun 2020 23:06:26 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Thunderbird/79.0a1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BY5PR04CA0019.namprd04.prod.outlook.com (2603:10b6:a03:1d0::29) To BYAPR06MB5638.namprd06.prod.outlook.com (2603:10b6:a03:a8::26) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2601:203:4000:91d0:60a1:7098:6a8c:17bb] (2601:203:4000:91d0:60a1:7098:6a8c:17bb) by BY5PR04CA0019.namprd04.prod.outlook.com (2603:10b6:a03:1d0::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18 via Frontend Transport; Sat, 6 Jun 2020 06:06:27 +0000 X-Originating-IP: [2601:203:4000:91d0:60a1:7098:6a8c:17bb] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 96e5fdb5-199d-48ae-6929-08d809dfbfbd X-MS-TrafficTypeDiagnostic: BYAPR06MB6037: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 04267075BD X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: x9YbTWp10Ds59JkUJ9XhI3RdkDQONp2TL/A0p0x2OK6M9kxVs4nAi0PUktOrMgdMHHsLpIM+m/gycraHXtUXMITCP/i/u/vjR5ty8KKfPf7Djk8WxHQCEk2B933shafg+kIkGDocqDaPlAiH55+++8F926QMjPub8GDJJIEwN/1w1+rFJTPmIhEsh9UFA5A2FM55fVlWj1Xm6jqoyi8KdKQwEp1tBuaKL5R5OkNh0v876KsWQ8GBYVTPOOPGHtBBnF3Hubhh5t4snQsPFxAz4ZL7XaV4t+al8M5c9whN9GznhGr82YOtZ/nDBYB6TKn7SVs7TkBj7zpORWbqPv1AJkyJSHiULLYJ8fh/rLRWdqxZd/4dfoHhpD/6Rsv6iEmcSkNHSe4l53jOe4+O1Wq9mfZr89Ph9qVNYgzggicof0QxP1s3UoSAeuibp5JVYhFU0DU4YDIIlYrCyQvrgaBTfg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR06MB5638.namprd06.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(346002)(136003)(39850400004)(396003)(376002)(6486002)(66946007)(36756003)(2906002)(8936002)(6916009)(31696002)(52116002)(75432002)(786003)(86362001)(478600001)(8676002)(316002)(83380400001)(5660300002)(966005)(31686004)(2616005)(186003)(16526019)(66476007)(66556008)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: hXefQd+6OQzs90+gH+LqGHthgPP69by6wvPOVw8kme5Oe/focezj7BphIRSTrH/Kkl5nJL8CURJyBhjcX6lUeZ2k8eKt3PhpMY55dSZloqHOeqRbOlcQJQwo7Q7z9JPhEeBuTzX1RmgtncVpP7EIfEN5/Ylpw4NVAMVg6DGx01Nlr4fbTpUwfdXqc71sKXOgK3lMclkPB9nqrFF3o3sMe9PlZkx0FixwQnQpxhdLe+cDJKQPyBKQojE799rO1pJE2gPeHbM1tQpS0rhKGnWq0gIeSaiQKMH9tEneZL8+eWgvAO5/u8WTF2dgjr4R7CYMFQa/IBzMWSB4dIfeAmAPQwaHdYa12/df0wkQ9oyCgTJw651z5p04ZegafYFSYyx/iQEe4ZTHaSkOsr5zw+D67E3m8zrPT2cSNsOi/quLMd61DeQYwL/WvLaMx8Ulgj3tieIYIaWyvkq5nM0fVeoaWF+96OYgtbleJ3VIqmGasRcFzIQZBlmw/QrN6pjqobG1zln3StaDrOVjBDLSl0YXajCrkWrhP2PKkbSGFaPAasdkgBPBWk+r4M44QF9jPWo1 X-OriginatorOrg: ucmerced.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 96e5fdb5-199d-48ae-6929-08d809dfbfbd X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2020 06:06:27.4472 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f4dfe9a3-ca78-4998-b7a7-e6d0692eace6 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OG/I0H3ID9YKjhEoOXzWt5RHkaUHplDoEQOF7FtUgVZnoAYIs44VlR4M8J3OTgZfa390cuYJ4pwqryJmUJe1LlgFeG/0Lc7NZKJhgOsH7PQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR06MB6037 Received-SPF: pass client-ip=40.107.93.101; envelope-from=jgonzalez49@ucmerced.edu; helo=NAM10-DM6-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/06 02:21:31 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] 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, DKIMWL_WL_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Sat, 06 Jun 2020 04:00:57 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=merced.onmicrosoft.com header.s=selector1-merced-onmicrosoft-com header.b=ECN2wPq9; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -2.21 X-TUID: nMwetSxg3zy7 I cannot seem to be able to make org-babel-tangle respect the setting of org-babel-tangle-use-relative-file-links to t. Here is my process after launching "emacs -Q" (the default for org-babel-tangle-use-relative-file-links appears to be true in this configuration): 1. Write example org file named test.org with the following basic contents, making sure that the top line is refreshed with C-c C-c: #+PROPERTY: header-args :tangle test.py :comments link * My top level Here is my description #+BEGIN_SRC python print("This is my code") #+END_SRC 2. Run M-x org-babel-tangle on the org file, which produces test.py with the following contents: # [[file:d:/mytest/test.org::*My%20top%20level][My top level:1]] print("This is my code") # My top level:1 ends here As can be seen in the first line, it uses an absolute file path containing my org file and py file, rather than the expected relative one. I looked through the ob-tangle.el file to try and see why this is the case, and it looks like there's some negative boolean result in this if statement in the org-babel-tangle-single-block function which causes it to skip over the code that would make use of the relative path: (if (and org-babel-tangle-use-relative-file-links (string-match org-link-types-re link) (string= (match-string 0 link) "file")) (on the online copy of the code, this is the region under consideration: https://code.orgmode.org/bzg/org-mode/src/master/lisp/ob-tangle.el#L475 I have not yet tried the most recent development copy because I do not see considerable difference in the relevant lines compared to the version of ob-tangle.el I have, but I can try the development copy as a next step) Here is the additional bug reporter output, on my Windows 10 64 bit computer. Emacs : GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29 Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ c:/Useful Programs/emacs-26.3-x86_64/share/emacs/26.3/lisp/org/)