From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 uA4mBFvbfmPtIgAAbAwnHQ (envelope-from ) for ; Thu, 24 Nov 2022 03:47:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yChDA1vbfmMzCAAAG6o9tA (envelope-from ) for ; Thu, 24 Nov 2022 03:47:55 +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 CBB441B4C2 for ; Thu, 24 Nov 2022 03:47:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oy2GN-0004nM-05; Wed, 23 Nov 2022 21:46:55 -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 1oy2GK-0004n9-44 for emacs-orgmode@gnu.org; Wed, 23 Nov 2022 21:46:52 -0500 Received: from pb-smtp21.pobox.com ([173.228.157.53]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oy2GH-0008Qv-D8 for emacs-orgmode@gnu.org; Wed, 23 Nov 2022 21:46:51 -0500 Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id B66881DB9E7; Wed, 23 Nov 2022 21:46:44 -0500 (EST) (envelope-from wtd@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=xwT9HoKMItxjeYppd/RBAEi26jY1DUcvwM+zGn M4/Bw=; b=k8a0296cf8SShccMIivmmdkE44TQOAB4mL+izMWSbMzMAF5aWPPkS7 9H5Iu3Ay+xm/K3bVf78BhPlBALPaGV27SfUe6xu44Mo/GKRXTmqK+dlCoaV1NZXp MvoYtW/2HyFBTfW1rdPoXyfAkqmvx2SoXk6DdulJgdNDScdFlyLyI= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id AF6981DB9E6; Wed, 23 Nov 2022 21:46:44 -0500 (EST) (envelope-from wtd@pobox.com) Received: from shell3.miskatonic.org (unknown [199.103.62.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id C16781DB9E5; Wed, 23 Nov 2022 21:46:41 -0500 (EST) (envelope-from wtd@pobox.com) Received: by shell3.miskatonic.org (Postfix, from userid 1000) id AB7E5120473; Wed, 23 Nov 2022 21:46:39 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by shell3.miskatonic.org (Postfix) with ESMTP id A53E21203DD; Wed, 23 Nov 2022 21:46:39 -0500 (EST) Date: Wed, 23 Nov 2022 21:46:39 -0500 (EST) From: William Denton X-X-Sender: wtd@shell3.miskatonic.org To: Ihor Radchenko cc: emacs-orgmode@gnu.org Subject: Re: Images generated by R code blocks do not display In-Reply-To: <87zgchaybb.fsf@localhost> Message-ID: References: <87zgchaybb.fsf@localhost> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Pobox-Relay-ID: 39DD6F36-6BA2-11ED-95E9-B31D44D1D7AA-56320186!pb-smtp21.pobox.com Received-SPF: pass client-ip=173.228.157.53; envelope-from=wtd@pobox.com; helo=pb-smtp21.pobox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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.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=1669258074; 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=mA65YLQZJ+N6iyT1PEkzUjnC+QQweZZLShQiztvtLNg=; b=aJvMksH9nTFbPSIEACadeCoXgQS2f9su32nRQJ4bGtiZ8QTVJeErNRdstIIkpp/7UkbskZ l36jUOK8smPMx5G6UNCTftas33DhbOsRLTzjZChu+QYnzPTmtHI8tbToFYZzYhKOawLZhv LZBgs1M679f9ZFYQOXMuikJuASaIpeRj35wBccT5P75hLl51isFuAdhNuPXDtP7ChvmLwJ tayFxU8sQsVNmro+SbxKGoxUSevKVOhaVbhHdUQHkC+usxFE3sA2vdHOyVMj50kOWyN8u2 XHBnJs1IwHsDHtNUTqUOolXa6kKeur8SOxC9kST86aJy0mOlfNrV6rxR4EJByw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669258074; a=rsa-sha256; cv=none; b=I1kUx3u2UwMgJ2CtxXJEy2CyNO6eUpJjlYOh4e1efbojGTqLotUKTXsKMBDCyA3SJRyNe+ lGDzPbxjxQgogk2fOimph2jexbLjqXNhkfUvpsuSV2IFWTl4RjGHd4nfoz/4k8O0RXXlyz XkZkrogNUfutdosl5loom6hlmv0EOAriOgntEXCaYLlHUIgh+SV7o7trQmJKKlrbXjt5zQ +2Qg9HZ9Wca0OrbhmqyB5JYStbMkycwOh028JqhaAD6wPFw+C68tccZQMd+PNzjcK5IucF T33GLZlGsCth3fbbBKwRO/bOUdj8kDRPaFrP+NPTv/lJL+gVpkGEqVPbzoTcVQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=k8a0296c; dmarc=pass (policy=none) header.from=pobox.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.20 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=k8a0296c; dmarc=pass (policy=none) header.from=pobox.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: CBB441B4C2 X-Spam-Score: -8.20 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1NVWXfwMWPEj Thanks for looking at this. You've fixed the org-toggle-inline-images problem, but the image generation and display problem is still there for me. Here's a one-liner shell block that generates an image with Imagemagick, so no extra Emacs packages necessary: # ----- #+begin_src sh :results graphics file :file /tmp/colour.png convert -size 300x300 xc:#002b36 /tmp/colour.png #+end_src # ----- But the image doesn't appear right away: + C-x C-f (load this file) + C-c C-c (to execute) + Say yes to "Evalute this sh code block on your system?" + #RESULTS block appears (good) but image does not show + But: C-c C-x C-v does work to toggle image display (fixed!) This is the simplest way I could think of to generate an image with minimal dependencies, so I hope this boils the problem down in a helpful way. The image should appear immediately in the buffer, shouldn't it? Thanks, Bill On 24 November 2022, Ihor Radchenko wrote: > William Denton writes: > >> In Emacs: >> >> + C-x C-f (load r.org wherever it is) >> + C-c C-c (to execute the R code) >> + Say yes to "Evaluate this R code block on your system?" >> + #RESULTS block appears (good) but image does not show >> + C-c C-x C-v (to toggle image display) >> + image appears >> + C-c C-c (to execute R code again) >> + Say yes to "Evaluate this R code block on your system?" >> + image disappears >> + C-c C-x C-v says "Inline image display turned off" >> + C-c C-x C-v says "Inline image display turned off" (and so on) >> >> Expected behaviour: Images should appear when this code block is run or rerun, >> and C-c C-X C-v (org-toggle-inline-images) should toggle the setting, not keep >> it off. > > I am currently not able to test third-party packages in clear > environment, but I think I know what could have caused the problem. > > I think I fixed the issue on main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=d4522dd4d > > Can you try the latest main and see if the problem persists? > > -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada