From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OLtBNL2t5GSaIQEASxT56A (envelope-from ) for ; Tue, 22 Aug 2023 14:44:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0HkyM72t5GR61gAAG6o9tA (envelope-from ) for ; Tue, 22 Aug 2023 14:44:45 +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 5FEF156C23 for ; Tue, 22 Aug 2023 14:44:45 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=pc12mpmG; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692708285; 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=vfiixq8BrUX/wgrtUaKVhfORF9fy1hAxeb5NxCe4azQ=; b=TdZf9KIW3kc/Br0zPvkYWVFE2NlXc/+yqBh9OLjBO+jrpTJIrpPWeV3bNoQtxHpzxtnLwa OYgukGPRmFKoa088C/FM7mauXHldFQPdXSvdyX2D7eMh7UZ2MRCHmwtA50iXkPveIikSY8 7jka5K/rA8+YLa7pqdss4CtuJsT0IIwojoUj+D/1dJ4+jddryRChLsLTgG2HKeZa7aPzw2 IKa6QNyMl9JGYbxmY/3flY/CGZwDlMHx14yKtes/zv1niuXpxwSTjjmqaNdGRUby1ouisD Y87FX5mC//8lQU19bsySyDSN0XNU9JlMQDpYgXkMjsTX/Dqeaxw0p+anrFZUeQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=pc12mpmG; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692708285; a=rsa-sha256; cv=none; b=TbyVdWtmt4lxSiMFlEAvQgXd5+p3wur+vr/tBKOS6xa1lQBf1nIVpGkNF7r7PPL8t3sjlL dusknfsgEmlvtfSxxcqc3KAomRFiDM+8DdUg+WGuO5XzazoJnoLR2d5GXP6KgJ24zqeQfO wbdM2qUe59FnFfKNTJhHpzp6iu/F3xmwO9SnxD8NfxEyJs1ZNOF++QX6yU3we6h4SB7A7y iTVFq3oHmN4IcFHPcLoi1F8prlOd+y8hfDnJgiH7ZtT6/uCqYnd0atPOIVzThiJT7XTdW7 cyGQZ5Ejk/f7zVb5U6jro+vyG7xZxoRWNHL+7i2YNgMncrsug8E6rq43MTkCfQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYQjk-0002yP-MM; Tue, 22 Aug 2023 08:43:56 -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 1qX60V-0008PW-DK for emacs-orgmode@gnu.org; Fri, 18 Aug 2023 16:23:43 -0400 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qX60S-0008Bz-QE for emacs-orgmode@gnu.org; Fri, 18 Aug 2023 16:23:43 -0400 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b9a2033978so20618941fa.0 for ; Fri, 18 Aug 2023 13:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692390218; x=1692995018; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=vfiixq8BrUX/wgrtUaKVhfORF9fy1hAxeb5NxCe4azQ=; b=pc12mpmGC6bpx1PVmwx98xV1SwgnJIq/rWV1SX0QDBraI/f24yXxCKv/4v6+2/OAr6 Mp1zJqEEIMhBd4DZaRimdT1WZbNqSVI7daeUC1z7Rvi6pA/TyZ5CE6hxmCpTd1Kw1OMy rvLbHKVTpcZUF7aWsndw2jWrpeWR8fmvNiUXosvcVkNYCSiiKfX/mkVr3BB0NqHnG6AN GkToZNgwdmzivr2NvUBwb5jb+eQOLlNzDNiFVJby19VHN6/bK577aUFu5QWmnf/L57k7 sslU0TYTX+5Ek1F96qmP7iVVPD/fNJ+A0dvBNK41JsZJj7TPssv65eed3HZlwg93xbTK dCRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692390218; x=1692995018; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=vfiixq8BrUX/wgrtUaKVhfORF9fy1hAxeb5NxCe4azQ=; b=hlbsk64LtwpMT4MXpY/guoZdACwmfb6p7nTfBsTSv3Sap0rz+Wh+PF+93Nsp9AYhP6 ipNJbi/gsZxNjluJEAzHhHUqZCZ+OaN809rHcry3WGrKc5UfAv2WHdna+dDsE7vTeko+ zYA3yZZ4uwIf2U0ZC4J6eFXd1swmw62NN4oLoyLLqokQwm6hkjO0+H7s/soh948bGwFx jxqVjnhJx3QBEYKBR/oRFs7S7LcTwcKoyJA/4igcUba0XYWB0vVp/oQsKqNMdwfxbwmv XxmDUBaCT5r1ArvEAJpUzp8CFwWUWumEjyaq71d0tPXhWAucpcERCLOkp2KQFGYOFCCP aBlQ== X-Gm-Message-State: AOJu0YwJOLcKwBxYRBU+3HJMtCHXm7vB1nTx7Fgyq1JyRPyPkey+GXwJ /TFf7MHTFte2uWU1/gcKVSJeINRlorQqNYtiPLD/EabIb7aw6A== X-Google-Smtp-Source: AGHT+IFLNsV2jkRbXJ3cv0elR6a/Jm2dzi8weXxUKX3ajr3qpcl4Y+5DpSWtd2qgCZF2as2yEwWGzYL0tEF9/5+vZFY= X-Received: by 2002:a2e:8e97:0:b0:2bb:aaab:b42f with SMTP id z23-20020a2e8e97000000b002bbaaabb42fmr170103ljk.49.1692390217652; Fri, 18 Aug 2023 13:23:37 -0700 (PDT) MIME-Version: 1.0 From: Shervin Safavi Date: Fri, 18 Aug 2023 22:23:00 +0200 Message-ID: Subject: [BUG] bug fix with inline figure generated by org-octave [9.7-pre (release_9.6.7-662-gb89bc5)] To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000be9dce0603384de3" Received-SPF: pass client-ip=2a00:1450:4864:20::229; envelope-from=neuroprinciplist@gmail.com; helo=mail-lj1-x229.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, 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-Mailman-Approved-At: Tue, 22 Aug 2023 08:43:54 -0400 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -8.57 X-Spam-Score: -8.57 X-Migadu-Queue-Id: 5FEF156C23 X-TUID: sg/icp8ivaMq --000000000000be9dce0603384de3 Content-Type: text/plain; charset="UTF-8" Hi there, First, thanks for maintaining this awesome tool. 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). 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. Best wishes, Shervin Emacs : GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-08-16 Package: Org mode version 9.7-pre (release_9.6.7-662-gb89bc5 @ /home/ssafavi/.ssemacs.d/classicemacs/straight/build/org/) current state: ============== (setq org-archive-location "archive/%s_archive::" org-noter--doc-goto-location-hook '(org-noter-djvu--goto-location org-noter-nov--goto-location org-noter-pdf--goto-location) org-link-elisp-confirm-function nil org-ref-cite-onclick-function '(closure (t) (_) (org-ref-citation-hydra/body)) org-bibtex-headline-format-function 'org-bibtex-headline-format-default org-export-with-sub-superscripts '{} org-ref-insert-cite-function 'org-ref-cite-insert-ivy org-log-done 'time org-babel-after-execute-hook '(scimax-align-result-table org-display-inline-images scimax-rm-backslashes scimax-jupyter-ansi) org-agenda-skip-scheduled-if-done t org-persist-after-read-hook '(org-element--cache-persist-after-read) org-ctrl-c-ctrl-c-hook '(scimax-org-image-toggle-image-CcCc scimax-radio-CcCc) org-link-make-description-function '(lambda (link desc) (plist-get org-store-link-plist :description)) org-ref-open-pdf-function 'my/org-ref-open-pdf-at-point org-export-before-parsing-hook '(org-attach-expand-links org-babel-jupyter-strip-ansi-escapes) org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-latex-title-command "" org-ref-bibtex-assoc-pdf-with-entry-move-function 'rename-file org-archive-hook '(org-attach-archive-delete-maybe) org-speed-commands '(("Outline Navigation") ("n" org-speed-move-safe 'org-next-visible-heading) ("p" org-speed-move-safe 'org-previous-visible-heading) ("f" org-speed-move-safe 'org-forward-heading-same-level) ("b" org-speed-move-safe 'org-backward-heading-same-level) ("F" . org-next-block) ("B" . org-previous-block) ("u" org-speed-move-safe 'outline-up-heading) ("j" . org-goto) ("g" org-refile '(4)) ("Outline Visibility") ("c" . org-cycle) ("C" . org-shifttab) (" " . org-display-outline-path) ("s" . org-toggle-narrow-to-subtree) ("k" . org-cut-subtree) ("=" . org-columns) ("Outline Structure Editing") ("U" . org-metaup) ("D" . org-metadown) ("r" . org-metaright) ("l" . org-metaleft) ("R" . org-shiftmetaright) ("L" . org-shiftmetaleft) ("i" progn (forward-char 1) (call-interactively 'org-insert-heading-respect-content)) ("^" . org-sort) ("w" . org-refile) ("a" . org-archive-subtree-default-with-confirmation) ("@" . org-mark-subtree) ("#" . org-toggle-comment) ("Clock Commands") ("I" . org-clock-in) ("O" . org-clock-out) ("Meta Data Editing") ("t" . org-todo) ("," org-priority) ("0" org-priority 32) ("1" org-priority 65) ("2" org-priority 66) ("3" org-priority 67) (":" . org-set-tags-command) ("e" . org-set-effort) ("E" . org-inc-effort) ("W" lambda (m) (interactive "sMinutes before warning: ") (org-entry-put (point) "APPT_WARNTIME" m)) ("Agenda Views etc") ("v" . org-agenda) ("/" . org-sparse-tree) ("Misc") ("o" . org-open-at-point) ("?" . org-speed-command-help) ("<" org-agenda-set-restriction-lock 'subtree) (">" org-agenda-remove-restriction-lock) ("P" . org-set-property) ("d" . org-deadline) ("m" . org-mark-subtree) ("S" . widen) ("k" . scimax-org-kill-subtree) ("q" . scimax-avy-org-headline) ("T" . org-teleport)) org-noter--pretty-print-location-for-title-hook '(org-noter-djvu--pretty-print-location org-noter-nov--pretty-print-location org-noter-pdf--pretty-print-location-for-title) --000000000000be9dce0603384de3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi there,

First, thanks for maintaining this awesom= e tool.

In "ob-octave.el" line 94, instead of

(form= at "print -dpng %S\nans=3D%S" gfx-file gfx-file))

should b= e

(format "print -dpng %s" gfx-file))

otherwise, th= e figure=C2=A0is not saved (and thus an empty inline figure will
appear)= .

I already test it with MATLAB and can confirm it.

By the wa= y, it is my first bug report/fix for org-mode, so apologies if
I miss so= mething in my report.

Best wishes,
Shervin

Emacs =C2=A0:= GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo = version 1.16.0)
=C2=A0of 2023-08-16
Package: Org mode version 9.7-pre= (release_9.6.7-662-gb89bc5 @ /home/ssafavi/.ssemacs.d/classicemacs/straigh= t/build/org/)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D
(setq
=C2=A0org-archive-location "archive/%s_archive::&qu= ot;
=C2=A0org-noter--doc-goto-location-hook '(org-noter-djvu--goto-l= ocation
=C2=A0 =C2=A0 org-noter-nov--goto-location
=C2=A0 = =C2=A0 org-noter-pdf--goto-location)
=C2=A0org-link-elisp-confirm-functi= on nil
=C2=A0org-ref-cite-onclick-function '(closure (t) (_) (org-re= f-citation-hydra/body))
=C2=A0org-bibtex-headline-format-function 'o= rg-bibtex-headline-format-default
=C2=A0org-export-with-sub-superscripts= '{}
=C2=A0org-ref-insert-cite-function 'org-ref-cite-insert-ivy=
=C2=A0org-log-done 'time
=C2=A0
=C2=A0org-babel-after-execute= -hook '(scimax-align-result-table org-display-inline-images
scim= ax-rm-backslashes scimax-jupyter-ansi)
=C2=A0org-agenda-skip-scheduled-i= f-done t
=C2=A0org-persist-after-read-hook '(org-element--cache-pers= ist-after-read)
=C2=A0org-ctrl-c-ctrl-c-hook '(scimax-org-image-togg= le-image-CcCc scimax-radio-CcCc)
=C2=A0org-link-make-description-functio= n '(lambda (link desc)
=C2=A0 =C2=A0 =C2=A0(plist-get org-store= -link-plist :description))
=C2=A0org-ref-open-pdf-function 'my/org-r= ef-open-pdf-at-point
=C2=A0org-export-before-parsing-hook '(org-atta= ch-expand-links
=C2=A0org-babel-jupyter-strip-ansi-escapes)
=C2= =A0org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-ba= bel-header-arg-expand)
=C2=A0org-latex-title-command ""
=C2= =A0org-ref-bibtex-assoc-pdf-with-entry-move-function 'rename-file
= =C2=A0org-archive-hook '(org-attach-archive-delete-maybe)
=C2=A0org-= speed-commands '(("Outline Navigation")
=C2=A0 =C2=A0 = =C2=A0("n" org-speed-move-safe 'org-next-visible-heading)
= =C2=A0 =C2=A0 =C2=A0("p" org-speed-move-safe 'org-previous= -visible-heading)
=C2=A0 =C2=A0 =C2=A0("f" org-speed-move-s= afe 'org-forward-heading-same-level)
=C2=A0 =C2=A0 =C2=A0("b= " org-speed-move-safe 'org-backward-heading-same-level)
=C2= =A0 =C2=A0 =C2=A0("F" . org-next-block) ("B" . org-prev= ious-block)
=C2=A0 =C2=A0 =C2=A0("u" org-speed-move-safe &#= 39;outline-up-heading) ("j" . org-goto)
=C2=A0 =C2=A0 =C2= =A0("g" org-refile '(4)) ("Outline Visibility") (&q= uot;c" . org-cycle)
=C2=A0 =C2=A0 =C2=A0("C" . org-shi= fttab) (" " . org-display-outline-path)
=C2=A0 =C2=A0 =C2= =A0("s" . org-toggle-narrow-to-subtree) ("k" . org-cut-= subtree)
=C2=A0 =C2=A0 =C2=A0("=3D" . org-columns) ("O= utline Structure Editing") ("U" . org-metaup)
=C2=A0 = =C2=A0 =C2=A0("D" . org-metadown) ("r" . org-metaright)= ("l" . org-metaleft)
=C2=A0 =C2=A0 =C2=A0("R" . = org-shiftmetaright) ("L" . org-shiftmetaleft)
=C2=A0 =C2=A0= =C2=A0("i" progn (forward-char 1)
=C2=A0 =C2=A0 =C2=A0 (ca= ll-interactively 'org-insert-heading-respect-content))
=C2=A0 =C2= =A0 =C2=A0("^" . org-sort) ("w" . org-refile)
=C2= =A0 =C2=A0 =C2=A0("a" . org-archive-subtree-default-with-confirma= tion)
=C2=A0 =C2=A0 =C2=A0("@" . org-mark-subtree) ("#= " . org-toggle-comment)
=C2=A0 =C2=A0 =C2=A0("Clock Command= s") ("I" . org-clock-in) ("O" . org-clock-out)
= =C2=A0 =C2=A0 =C2=A0("Meta Data Editing") ("t" . org= -todo) ("," org-priority)
=C2=A0 =C2=A0 =C2=A0("0"= ; org-priority 32) ("1" org-priority 65) ("2" org-prior= ity 66)
=C2=A0 =C2=A0 =C2=A0("3" org-priority 67) (":&= quot; . org-set-tags-command)
=C2=A0 =C2=A0 =C2=A0("e" . or= g-set-effort) ("E" . org-inc-effort)
=C2=A0 =C2=A0 =C2=A0(&= quot;W" lambda (m) (interactive "sMinutes before warning: ")=
=C2=A0 =C2=A0 =C2=A0 (org-entry-put (point) "APPT_WARNTIME"= ; m))
=C2=A0 =C2=A0 =C2=A0("Agenda Views etc") ("v&quo= t; . org-agenda) ("/" . org-sparse-tree)
=C2=A0 =C2=A0 =C2= =A0("Misc") ("o" . org-open-at-point) ("?" . = org-speed-command-help)
=C2=A0 =C2=A0 =C2=A0("<" org-age= nda-set-restriction-lock 'subtree)
=C2=A0 =C2=A0 =C2=A0(">= ;" org-agenda-remove-restriction-lock) ("P" . org-set-proper= ty)
=C2=A0 =C2=A0 =C2=A0("d" . org-deadline) ("m"= . org-mark-subtree) ("S" . widen)
=C2=A0 =C2=A0 =C2=A0(&qu= ot;k" . scimax-org-kill-subtree) ("q" . scimax-avy-org-headl= ine)
=C2=A0 =C2=A0 =C2=A0("T" . org-teleport))
=C2=A0org= -noter--pretty-print-location-for-title-hook '(org-noter-djvu--pretty-p= rint-location
=C2=A0 org-noter-nov--pretty-print-location
= =C2=A0 org-noter-pdf--pretty-print-location-for-title)
--000000000000be9dce0603384de3--