From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id COClJkPyi2PUcQEAbAwnHQ (envelope-from ) for ; Sun, 04 Dec 2022 02:05:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OPChJkPyi2ONmAAA9RJhRA (envelope-from ) for ; Sun, 04 Dec 2022 02:05:07 +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 E7D44E971 for ; Sun, 4 Dec 2022 02:05:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1cXf-0004vP-Ng; Sat, 03 Dec 2022 19:07:35 -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 1p1cXc-0004v3-8x for emacs-orgmode@gnu.org; Sat, 03 Dec 2022 19:07:32 -0500 Received: from love.tolo.nu ([2a02:750:7::116]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1cXR-0002Cs-Bg for emacs-orgmode@gnu.org; Sat, 03 Dec 2022 19:07:32 -0500 Received: from nils.tolo.nu (unknown [172.18.0.3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by love.tolo.nu (Postfix) with ESMTPS id E8A964021D11 for ; Sun, 4 Dec 2022 01:07:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=toloe.se; s=mail; t=1670112434; bh=l6egfwGha1vgWIQHms3Xidtt4mIelEdhmDhjao6zeSk=; h=From:To:Subject:Date:From; b=Fez6X4e13k2YP4e/HHBmS+vwrfnnae5JdJ7acqZUn45348QaeTzuj6Ws7f2gnpACh HOUUgKq5PrjP0dJO34TVJ/wUOwfUfGCHyE0UylXhc+JHF/sdedtqt5rec9txvGy9jt 9za61muEyNQWoTlWpS62WjgK5aqcVmuNSJSaG/XY= Received: by nils.tolo.nu (Postfix, from userid 1000) id 6B6A44C26A7; Sun, 4 Dec 2022 01:07:14 +0100 (CET) User-agent: mu4e 1.8.11; emacs 30.0.50 From: Johan =?utf-8?Q?Tol=C3=B6?= To: emacs-orgmode@gnu.org Subject: [BUG] (org-babel-result-to-file) adds the relative path even if attachment link is generated [9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/)] Date: Sun, 04 Dec 2022 00:54:22 +0100 Message-ID: <875yesnia6.fsf@toloe.se> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2a02:750:7::116; envelope-from=johan@toloe.se; helo=love.tolo.nu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670115907; 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=wHIla2gs48xk65VRCS79t0JUCjKaBcXuNFHs6RULiRo=; b=nIsDj0zr8nd7bWwG29KkwyDTv0i91tD6/jFMSIg92M3GtJLjSAHjN63QI0R/o9in7yi0eP z9/6kj2QbDo/WBcH1N2CG5yY7dYVYtUiYSRidVbl4fFLhwZcxi8E8R9tQHDe5aX5phcDf1 GB4vayG49PItUu0PU5LkuO4my7cqbpkcSu773p6onG5Oyw4BYzCeYaW67mR+5LR/HwxAAK kmP/LUm0cBheN3AHY9TzEvNG7/h3wJECZgUyBLpk1OQTlenWfa8DJsIvs2BuoO8ehSuM7h sCTKP/r6wVgvplwgnqkBpWNmvRwh8XI/6r26oHSUYbo3zvdWwntpPtfreNP4Lw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670115907; a=rsa-sha256; cv=none; b=EhhoyY8lUcpZQg4qeQSY6QoPZpR7PwwgMkPnJWCu7lN7NwHZ/DBhg5qWZvdGCvyDutJgvL XaOvlVVVVmffalWEu26ljh3bhkV3Vv7xKhJmuQS8MNW0Or+Xa6Un8n+bgNtRDMXTmLLb84 41iyU56WO6Vni/JbRH37My4fkzc0o6ZVhHvg9kCpQOWPCtuvpFiDGxKL0aBanjCHIDDorb sO5nuGT56RBVarGvJE9GF8bnIhGqK/idMqxxR0uOd9yo+w5y6Dk1amWjBRJCHdoxGBI532 noLFh6SORMIh8FNmEzwzYsWrdIyOjQMD65sdvgHJJfNkpXrW8HvtE1MfvZa9Tg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=toloe.se header.s=mail header.b=Fez6X4e1; dmarc=fail reason="SPF not aligned (strict)" header.from=toloe.se (policy=none); 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" X-Migadu-Spam-Score: 4.94 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=toloe.se header.s=mail header.b=Fez6X4e1; dmarc=fail reason="SPF not aligned (strict)" header.from=toloe.se (policy=none); 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" X-Migadu-Queue-Id: E7D44E971 X-Spam-Score: 4.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5DCX6eINcSDz Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ With org 9.6 I am having an issue where the following generates a result with an attachment link that includes the original path to the file. I expect the link to be relative to the attachment directory. * Test :PROPERTIES: :DIR: build :END: #+begin_src R :results output file graphics :file build/test.png plot(1) #+end_src #+RESULTS: [[attachment:build/test.png]] The expected result is: #+RESULTS: [[attachment:test.png]] My ob-core.el has in the org-babel-result-to-file function (on line 2712): (file-relative-name result-file-name) I changed it to: (file-relative-name result-file-name attach-dir) and got the expected result. Johan Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.35, cairo version 1.17.6) of 2022-12-01 Package: Org mode version 9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/) -- Johan