From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oA5KDGe55WT+zgAASxT56A (envelope-from ) for ; Wed, 23 Aug 2023 09:46:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aNIdDGe55WSWIAAAauVa8A (envelope-from ) for ; Wed, 23 Aug 2023 09:46:47 +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 2E51466BF8 for ; Wed, 23 Aug 2023 09:46:46 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Jtjd2QUv; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692776806; 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=Qb32E8cAm6+yoTIOarFZ3VcsVW8WiMSoOWYkhB5/3Kg=; b=Ca9R+22gB+l4pY6EXWya13sf+KYtMbVKBQrBgLqv9rV0zpFfVDa02BWtZ20whzh5hj68zF yHkR/4P5aqRExgBH8uAlciDNEIrNzfgISg9mUopANBA4mTAo0tHhCtsZ3+BBXEGRhShtgM t4k1sn8L3SXQ3HrgMayl6tU63+VLNoDDGTPR7gDtiDKMQMT5h44K0ksM83hMPF24vxHnXZ 4aNg72l/Iu6QFG2KtDmdOaN7Tfu8xDt6bQQOhIel6CaHOYjLEc/D+vl0+/qKk3E0+Igg42 j35nQczwZF9LbPzarzQOx785Ig1oaJm0gQse/SRDtVeEhb1BNl8H1GEIWLdpow== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692776806; a=rsa-sha256; cv=none; b=FqT8XZgc11lWWlK0ZFLHutKXF8IX7BkEbUI7GsX8IrkbTxLxPII4jerQQAVLfUtwgG+nRY Noe57B/3BozVlPM5/cOgEiICs+1cAKF5Jhg7vGFem/trxKShY7ydgVy0BjB/giWpkSPonX r0i4UHL6jha9GryYVumkejvLWVMhIQBtDHGSJnATfga0UkE0LEg4IcTveeOgTXN4MuzgUs jxZYqCImt/x8A2220QVzitf+gqEaPepm574VHORykfuj/ni2VMj/cEOH90S+p3/AOSbZPM Heu2oMgBwcXPaFwNSyL7LpXMccuqnYgVsNfo/I+289eRb6q6St22Z8fOKykC5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Jtjd2QUv; 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"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYiYq-0003Qp-En; Wed, 23 Aug 2023 03:45:52 -0400 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 1qYiYl-0003QN-2P for emacs-orgmode@gnu.org; Wed, 23 Aug 2023 03:45:50 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYiYi-0002TY-Ut for emacs-orgmode@gnu.org; Wed, 23 Aug 2023 03:45:46 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id ED484240105 for ; Wed, 23 Aug 2023 09:45:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692776743; bh=Ev0jOgY6Q0myOGuE2KsZdhDrVTO/XjeKrv1Gg9eLOsc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Jtjd2QUvHcF6upPqRZYn1v8Ep9dSZJBs5oeztoJ2tdkH4X4RXVmf2indIXRuDOEpL hkE2bJ484eFUaTgfpDpuWidqW1n+qmV4co4obpphZ2wScoMAR9rpUIV94NsCwT4NGt c1OVIF94wdCG3jI6pjVCakbKpPGPjmonUWjp9FDd+TrMnEBlp3upZyrdBVfirY85sD If933WgU4ndDcaPO4LU/uxFKflXG6DKhlbdpWExFMJR3MyajkgAm3sdkEHB0UicSZN brn9osDEFVzM5PQ3DmsrZ2P89hwQCOUW3xirIbNBqbRnwKUnWOntJ6TvowezG7+PIB VePErBnftgpRA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RVytt2v9kz6tw3; Wed, 23 Aug 2023 09:45:42 +0200 (CEST) From: Ihor Radchenko To: Shervin Safavi Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] bug fix with inline figure generated by org-octave [9.7-pre (release_9.6.7-662-gb89bc5)] In-Reply-To: References: Date: Wed, 23 Aug 2023 07:46:08 +0000 Message-ID: <87edju8am7.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 X-Migadu-Spam-Score: -9.11 X-Spam-Score: -9.11 X-Migadu-Queue-Id: 2E51466BF8 X-Migadu-Scanner: mx1.migadu.com X-TUID: 4ucDtyDyekmS Shervin Safavi writes: > In "ob-octave.el" line 94, instead of > > (format "print -dpng %S\nans=%S" gfx-file gfx-file)) > > should be > > (format "print -dpng %s" gfx-file)) > > otherwise, the figure is not saved (and thus an empty inline figure will > appear). Thanks for the report and for the suggestion! May you please explain us a bit why having ans=filename is a problem? Looking at https://docs.octave.org/v5.2.0/Printing-and-Saving-Plots.html, it should be enough to call print. > I already test it with MATLAB and can confirm it. > > By the way, it is my first bug report/fix for org-mode, so apologies if > I miss something in my report. It would be nice to provide an example demonstrating the problem. Sometimes, what happens on your machine may not happen for other people. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at