From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OKHsNJ/zbmDZrQAAgWs5BA (envelope-from ) for ; Thu, 08 Apr 2021 14:14:23 +0200 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 ICn7Lp/zbmADaAAA1q6Kng (envelope-from ) for ; Thu, 08 Apr 2021 12:14:23 +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 62E22857E for ; Thu, 8 Apr 2021 14:14:22 +0200 (CEST) Received: from localhost ([::1]:55282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUTYC-000784-Az for larch@yhetil.org; Thu, 08 Apr 2021 08:14:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUTXA-00077s-Ft for emacs-orgmode@gnu.org; Thu, 08 Apr 2021 08:13:16 -0400 Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]:37778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUTX7-0004Pd-3x for emacs-orgmode@gnu.org; Thu, 08 Apr 2021 08:13:16 -0400 Received: by mail-ot1-x333.google.com with SMTP id t23-20020a0568301e37b02901b65ab30024so2038281otr.4 for ; Thu, 08 Apr 2021 05:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddoherty.net; s=google; h=references:user-agent:from:to:subject:date:message-id:in-reply-to :mime-version; bh=Ar8wK6oOI/skRTV5xzDgKJ28Qx2CcEHOeVOifDxEahU=; b=HQgPF28YWa1Kyxc4v9oQnKxFJuwVHPzX0jT9tYI/ipjSIjMwlDMjA9WlGweLMWKL8m NMOfaSdIU8dnlDIr7wTRisK0YUL6XIwylKpfSlpL26RjJcudZiOSgFZrSyKC35L6D/Us /ELcqEEelJ38Vo5q8qxkCs70spqVgjWesEnTs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :message-id:in-reply-to:mime-version; bh=Ar8wK6oOI/skRTV5xzDgKJ28Qx2CcEHOeVOifDxEahU=; b=PvFaz8030n9mgWrUn+1utjqiXhggOExr9hMZxDK4gzCACWhKcRsmWFLKeBlU7+ogWA A0+QrbSYYAtrICApp/4u33sRdS1nFbJeORDQswocC9BYtPqwMmw4mPU2MqOaEaDVGrhe aNMXLUPVVywdINrYgadZ59cRzYq5WsF2vm+XwssR9D6nq7Gk26DRq76iE4K4omyjs2IE OKBjkNS1xlRC41szCT717aeP1+DaNdNSFQLVQT5gicjjBiIZL01dvCE04xweQIaRSnAu g7nQ6PU/5/zJBnCGVmEDN5ElNMafvM/6poLHbFGUMNFiYUHRYyPA/tjfU0zbVsu750cU hNjQ== X-Gm-Message-State: AOAM531zKceCskkvPI2M5SSxlXlFM9HwUPjsUkaHYxucXe/11IBwxBLU VNMU/h2X6S0m9BTgNIahL+ZEWNMU9WC19w== X-Google-Smtp-Source: ABdhPJxOUQh7rJlc7m8zvcRB4l9R06Rk5jzQw/uF5pNKzYuxb3NmckjcHydzeJiVtDXX8Bbr15wzlg== X-Received: by 2002:a05:6830:1694:: with SMTP id k20mr7365843otr.241.1617883990811; Thu, 08 Apr 2021 05:13:10 -0700 (PDT) Received: from saturn.ddoherty.net ([2605:a601:ac43:6d00:896e:5606:f59e:f388]) by smtp.gmail.com with ESMTPSA id w72sm4913106oie.0.2021.04.08.05.13.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 05:13:09 -0700 (PDT) References: <8735w3kshh.fsf@ddoherty.net> <87blaq6glc.fsf@alphaville.usersys.redhat.com> User-agent: mu4e 1.5.8; emacs 28.0.50 From: "Daniel E. Doherty" To: emacs-orgmode@gnu.org Subject: Re: Bug: Display Inline Images from Subdirectory [9.4.4 (9.4.4-33-g5450d6-elpaplus @ /home/ded/.emacs.d/elpa/org-plus-contrib-20210322/)] Date: Thu, 08 Apr 2021 06:57:00 -0500 Message-ID: <87k0pdj7p0.fsf@ddoherty.net> In-reply-to: <87blaq6glc.fsf@alphaville.usersys.redhat.com> X-Keywords: CategoryForums, Org-Mode MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::333; envelope-from=ded@ddoherty.net; helo=mail-ot1-x333.google.com 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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.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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617884062; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Ar8wK6oOI/skRTV5xzDgKJ28Qx2CcEHOeVOifDxEahU=; b=nTzTKqgO9dKUHoOJKmqJySrlwNLeBe7ej/7i2rNAmiVQz2NcpMJpyYzZlJZ4AZwx20h6fQ Xd/O/QOu04esS9OIN20GD2nvxW7q1KzmvAhLjKNz00HAfCNR+tDay2I4YrOTpvzozbojm9 NYOC+hUo/jDpGtDwGiVCRjcjoRlzwgM5VfUSZ1vHNPB8bvBOLpYsCpwPXUDbB0RvmeBgA+ pGr7xNpqzusBOUfLn03+sYme31jescNmDuwiLC2vLeDR5BEPr7YuBkPi4xPg4LoCzB9jfN spJZ0spIvJg/w1PFXhvx7D25HJaQXv6SH8nUN/4Ykp7WlC1Y26RHgRsoEaq3pA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617884062; a=rsa-sha256; cv=none; b=G5XloTD/8VexJcnIPZCR/J07UgEsPbS0OicwfLk1Kx2CSa1qp5koDyyp+mGUoX1A64viGd aQ1iJqe+pgZ5MbICj7unxYLEBs+Rv+eUCPGHEjethj25qPAyyqh9IIN+W9T3Jaq49EyrEi xn8BxlA/DbIgiVFXLR3Sl1zbBSPN3xcWZGc7rKeWkD9EgHhpYYEgfGgP9JaeesxBo4YfwQ qj9Jze379A7T+u72UKhOvakUekEsosTvP/IWeG3qljZfKQKI+MfBhllgaJWBJOGNhpC6SP wkv/9WmwmPYSxDJORZeiAGP3qsD7L4k5WjVDtMRJZhcZT60CBFb1Z78p3fjHwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ddoherty.net header.s=google header.b=HQgPF28Y; 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-Migadu-Spam-Score: -2.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ddoherty.net header.s=google header.b=HQgPF28Y; 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-Migadu-Queue-Id: 62E22857E X-Spam-Score: -2.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: QH4M/NwWZ4WF On Tue, Apr 06 2021, Nick Dokos wrote: > > FWIW, this works fine for me: Org mode version 9.4.4 > (release_9.4.4-231-gf46925 @ /home/nick/elisp/org-mode/lisp/) > > The only things I had to do was 1) to make the above into a tree by > adding a headline (otherwise, I guess org-mark-subtree would complain: > Not in a subtree) and 2) create the dot subdirectory. Nick, Thanks for trying this out. I tried this again using emacs -Q with both emacs27 and emacs28, and I still get the same result, i.e., it produces the link but does not display it inline. Both versions supported display of SVG graphics files. ,----[ Org and Emacs Versions ] | Org version: Org mode version 9.4.4 (9.4.4-33-g5450d6-elpaplus @ /home/ded/.emacs.d/elpa/org-plus-contrib-20210322/) | | GNU Emacs 28.0.50 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2021-04-02 | | and | | GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2020-09-19 `---- I did the following: 1. Start emacs with the -Q flag 2. Load the file inline.el (shown below) 3. Create a directory 'dots' in the current directory 4. Open the file inline.org (shown below) 5. Run C-c C-c on the dot src block in inline.org and confirm execution of the block 6. Org creates the SVG file, but does not display it. 7. If I remove the ':dir dots' header argument, the image /does/ display inline. ,----[ inline.el ] | (org-babel-do-load-languages | 'org-babel-load-languages | '( | (dot . t) | (emacs-lisp . t) | (ruby . t))) | | | (setq org-startup-with-inline-images t) | (require 'subr-x) | (defun ded:org-babel-inline-display-subtree () | "Redisplay inline images in subtree if cursor in source block with :result graphics." | | (when (org-in-src-block-p) | (let (beg end) | (save-mark-and-excursion | (org-mark-subtree) | (setq beg (point)) | (setq end (mark))) | (when-let ((info (org-babel-get-src-block-info t)) | (params (org-babel-process-params (nth 2 info))) | (result-params (cdr (assq :result-params params))) | ((member "graphics" result-params))) | (org-display-inline-images nil nil beg end))))) | | (add-hook 'org-babel-after-execute-hook #'ded:org-babel-inline-display-subtree) `---- ,----[ inline.org ] | * Supreme Court | ** Blau v. Lehman, 368 U.S. 403 (1962). | #+begin_SRC dot :file lehman.svg :cmdline -Kdot -Tsvg :results graphics | digraph lehman { | Thomas [shape=circle]; | TideWater [shape = box, label="Tide Water\nSecurities\n(Issuer)"]; | Lehman [shape = box]; | Thomas -> TideWater [label="Director"]; | Lehman -> TideWater [label="Shareholder"]; | Thomas -> Lehman [label="Partner"]; | } | #+end_SRC `---- If others could try this out, I would appreciate it. -- ==================================================== Daniel E. Doherty ded@ddoherty.net