From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oFU7EPl27GJYsAAAbAwnHQ (envelope-from ) for ; Fri, 05 Aug 2022 03:48:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aCk2EPl27GKZMwEAauVa8A (envelope-from ) for ; Fri, 05 Aug 2022 03:48:41 +0200 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 EF7D624348 for ; Fri, 5 Aug 2022 03:48:40 +0200 (CEST) Received: from localhost ([::1]:52616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJmS7-0004VT-RW for larch@yhetil.org; Thu, 04 Aug 2022 21:48:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJmR3-0004V4-A5 for emacs-orgmode@gnu.org; Thu, 04 Aug 2022 21:47:33 -0400 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:45572) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJmR1-0002D6-Ox for emacs-orgmode@gnu.org; Thu, 04 Aug 2022 21:47:33 -0400 Received: by mail-pj1-x1029.google.com with SMTP id p14-20020a17090a74ce00b001f4d04492faso1442436pjl.4 for ; Thu, 04 Aug 2022 18:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=sYXh6uHxG+HArHG6tD2jL9emWvURR5Dun+NhGIMYPSk=; b=f8XUXfGM5QyF6WWUG31Qk5YzYH0fatWxuNvfUl0x7raPPXKiDfdihG5Tf34l9C9irp ezDRGXvkb/vpwwAyb/az2Flb0JXUUaZKqHXhTpuuYyg+PV41aUI9tPa31fEoTL+YXTsD Bzb61vaG2NH7AI52y7kG2dK+za62ElrwoeWip9HbxUarCStKP6Jrh8HvRxDQyH+uRvRZ CuMj66KAkOSwhi84tTES8scuDCoYbVtyhQDHDOGoClRVzBaYL/lBPNCpsALtGAElWO8K EIaHzYzQ9iKS9ldwHgedU8NUBOwrNplKTgN1DMvggIqZyBxaVCxwJrz1QWsLFv2pBAlf kWRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=sYXh6uHxG+HArHG6tD2jL9emWvURR5Dun+NhGIMYPSk=; b=YtbbOWuZlkvZCQqcZ1eP/xU00YmcN+70wEtd/TGWzN0A/r/4CT9lc9Sdeuw1hZx1yo lb4YdRW1yY/VuLH1+tFqpRh1BgtmUuUZw0+jZvf+MOR0GyfVeez1tXotYUXI7q/L5XyY mvs3GG2o6hX76tGg9iHT3yxIW2lb09t+yCIcXtK8jfomUJo4Wu4CEvIcdklZDaHfUKKK Qz/dV6UXq3MmB3hU+L5kOBBonfHGnLeyhH+yzxmVYxyHNkGK0Z3Pq5eEgafbyBzLYfTg o8NNn1Yhxcj07p0KZ4yQLVGB7BMnKgXt8dD+U0Cam6POFEqGU8Lrdg+kv4pAK8NGTT0F QwEA== X-Gm-Message-State: ACgBeo2M8vPGFcJDA5SgBLO3Dt1n9l6xr3qVrL2LUEw2SFJE15dL7n9a UTmtOBL0Q5Ii6HrSxKvUPMp9Uvqmv5E= X-Google-Smtp-Source: AA6agR6IcbHE48hvEmnBbZshHUI8qGDvfBpnMT5TlulbJ4qbEgv7iHWiA9M8XRHYnUaQkEue8iEkqQ== X-Received: by 2002:a17:90b:2791:b0:1f3:c48:19d5 with SMTP id pw17-20020a17090b279100b001f30c4819d5mr4918742pjb.219.1659664050165; Thu, 04 Aug 2022 18:47:30 -0700 (PDT) Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id u7-20020a170902e80700b0016d231e366fsm1679609plg.59.2022.08.04.18.47.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 18:47:29 -0700 (PDT) From: Ihor Radchenko To: reza Cc: "emacs-orgmode@gnu.org" Subject: Re: Internal link to resulting image from source block In-Reply-To: <0102018269e0c5a8-804eb3c2-47b4-45e5-9efc-87a2aa56cc0e-000000@eu-west-1.amazonses.com> References: <56e1e299-b04d-0b01-7dec-564207d4484a@housseini.me> <01020182658e20e8-67e349b2-0f8b-457a-89ac-8242af01ff94-000000@eu-west-1.amazonses.com> <87mtckhgxq.fsf@localhost> <032306dd-7465-fdfd-b6c1-0bd82b662370@housseini.me> <0102018269e0c5a8-804eb3c2-47b4-45e5-9efc-87a2aa56cc0e-000000@eu-west-1.amazonses.com> Date: Fri, 05 Aug 2022 09:48:37 +0800 Message-ID: <87bkszpiiy.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1029.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, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659664121; 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=sYXh6uHxG+HArHG6tD2jL9emWvURR5Dun+NhGIMYPSk=; b=cszLRb/eZIXwbtnCKHrM/GGZTSZw1cTpeaTBh8cGNu2v947ZWheFOEMzowQHHJP6lSokxl R2CZMK85D0rhtrZeDdGgSejCwGPtDdumrvEv0l9Bp+oh3rN4nKdNuzl0bos6usT/2dOtaY EJXqUidzbQ/Ec4r6vGbouljqBv1VOivnD9DlWS2DPnbsLbLEOD3dE079sWRz22+OTmEe0V Zm7xYxKbDy6yGwBggTut7LMMq/y6bXzKGnDyhRFQbWpvouOtXJUPlJDQjkmvW2wHI+vunz 11RkJiMRtbLOivbUP8a/uKr2yqBHHq1QH6QmdRf/TY75f93swjLAVNx0mXhKXQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659664121; a=rsa-sha256; cv=none; b=laSqWonkZjZVF2xPMnYedRhSA8B0DkpAuMca6F1WBk2wUzTUsoVTXIBx7YSDyL6qDwBBx3 PWLv1Hgs3WXSRp9rBecw4DTG9svBuUy5iaEYEGO5D6UTywm9XNlfAHO0sZu1mANmjRQKin ZEMRtSygv1I7oB+/5+ij8u5YqEKrRqWHnehi3z/qN4g2YgiGRiigSCWx46VaTLmxcZl8ny KwBDWhi0WtY+YqDVa8+kuim/kv74y4Uh2xpTojNb1ul8IcHFeJmXWEUreLpW1ikcm/63do y/gVE0ogb5JToMXFVgLPHBlV0snKgAPRf48OLRdjcqClFVqAQN6KvTGZ7j5FPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=f8XUXfGM; 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" X-Migadu-Spam-Score: -8.21 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=f8XUXfGM; 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" X-Migadu-Queue-Id: EF7D624348 X-Spam-Score: -8.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: hoFQjrvf8/lu reza writes: >> They way to work around the problem is providing explicit name anchor to >> the results block: >> >> ------------ >> #+name: html transformation >> #+begin_src plantuml :file img/transformation-html.svg :exports results :mkdirp yes >> file org >> file html >> org -> html : org-html-publish-to-html >> #+end_src >> >> #+name: html transformation result >> #+RESULTS: html transformation >> [[file:img/transformation-html.svg]] >> >> Now I want to include an internal link to this figure with [[html >> transformation result]]. This works now. >> ------------ >> >> Though I do agree that the current behaviour is not intuitive in this >> specific scenario. When a user provides :exports results, it would make >> sense to inherit all the affiliated keywords, including #+name and >> possibly various #+attr_* to the results of evaluation. >> >> On the other hand, inheriting may be tricky. I can imagine situations >> when such inheritance is not desired and a user actually prefers to >> state the results keywords manually. >> >> I am not sure what would be the best way to handle the situation at hand >> while not breaking the other :exports variants. > > Shall I file a bug report? As a beginner I assumed that the name tag > gets carried over to the result and I still think it is a sensible > solution, but I could imagine that is perhaps not a very explicit behavior. This email is already a bug report :) However, we cannot just blindly carry over the name tag to the result. Consider a case when you have ":results both" in your src block. Where should the [[html transformation]] link refer to? The src block? The resulting image? Best, Ihor